Unified API Key
One key for every model. No separate applications or credential management per vendor.
TokenOcean provides a single API key to access GPT, Claude, Gemini, DeepSeek, and other leading models. No need to integrate each vendor SDK separately — one entry point for routing, metering, and billing.
Get Started{"id": "cmpl-123456","object": "chat.completion","created": 1700000000,"model": "gpt-4","choices": [{"index": 0,"message": {"role": "assistant","content": "Hello! How can I help you today?"},"finish_reason": "stop"}],"usage": {"prompt_tokens": 12,"completion_tokens": 9,"total_tokens": 21}}
GATEWAY CAPABILITIES
Unified authentication, routing, and observability — so your team can focus on product logic instead of maintaining multiple model integrations.
One key for every model. No separate applications or credential management per vendor.
Access text, image, and speech models through the same interface and gateway policies.
Automatically select the best node by load, latency, and cost for high availability and low latency.
Intelligent circuit breaking and automatic retries with seamless fallback when a node fails.
Track consumption by API key, model, and project — with export and reconciliation support.
Data isolation, access control, and audit logs built for compliance and enterprise requirements.
Get started in three steps and access hundreds of AI models
Generate an API key in the console to obtain your access credentials
Point your SDK base_url to the TokenOcean gateway endpoint
Send requests just like the official SDK — no changes to your application logic
03 — QUICK START
OpenAI SDK compatible — change base_url only to access every supported model.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://gateway.tokenocean.net/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "user", "content": "Hello!"}
]
)
print(response.choices[0].message.content)