Loading API Integration Guide...
A quick start guide to using your API key and endpoint.
Use the following base URL for all your API requests. We recommend using the one marked below.
https://apic1.ohmycdn.comRecommendedCloudflare CDN - Cloudflare CDN global enterprise acceleration with Argo Smart Routing
https://api.ohmygpt.comUS Direct - Main backend direct service
https://c-z0-api-01.hash070.comAsia Optimized CDN - Asia region optimized backend service
https://cn2us02.opapi.winAsia Network Optimized CN2 GIA - Asia region optimized backend service
Please Note
The recommended endpoint is based on network latency tests from the browser to the endpoint and does not represent the actual response performance of the endpoint. Please choose the best endpoint according to the geographical location of your server.
All API requests must be authenticated with an API key. Include your key in the Authorization header as a Bearer token.
Note: Replace
YOUR_API_KEYwith your actual key. You can manage your keys here.
Here is a full example of how to make a chat completion request using cURL. You can copy and run it in your terminal to test your API key and endpoint configuration.