API Integration

A quick start guide to using your API key and endpoint.

Select Your API Endpoint

Production-ready API endpoints covering multiple geographic regions.

OpenAI Format/chat/completionsAll Models
Claude/messagesNative Support
https://apic1.ohmycdn.comRecommended
Cloudflare CDN

Cloudflare CDN global enterprise acceleration with Argo Smart Routing

Enterprise-grade|24/7 Maintenance
https://api.ohmygpt.com
US Direct

Main backend direct service

Enterprise-grade|24/7 Maintenance
https://c-z0-api-01.hash070.com
Asia Optimized CDN

Asia region optimized backend service

https://cn2us02.opapi.win
Asia Network Optimized CN2 GIA

Asia region optimized backend service

Please Note

Recommended tags are based on your browser speed test, not actual server performance. Please choose according to the server's geographic location.

Activity Endpoints

For Claude series resource packages.

Claude Series Resource Package
https://apic1.ohmycdn.com/api/v1/ai/openai/cc-omg
Low Priority Maintenance|Suitable for personal use; not recommended for commercial services.

Resource Package Usage Guide

Get your API key from the following location /apis/keys

Insufficient Balance Error?

If you haven't used the resource package correctly before, please note that when your balance is negative, you cannot use the resource package.

Solution: Top up to a positive balance to unlock frozen API access.

Unable to fetch model list (v1/models returns empty results)?

  1. Visit /apis/re-routes Set up redirection: ClaudeChatCompletions → Claude Code ChatCompletions
  2. Change the endpoint from /apis to any endpoint of
  3. When using Claude models, they will be automatically redirected and deducted from your resource package balance.

What's next?

API Access - OhMyGPT