All the best AI models in OneKey
Why give it a try
One key for all models
Switch between providers without separate accounts and integrations.
OpenAI and Anthropic compatible
Use /chat/completions, /responses, /messages and other endpoints with OpenRouter-style provider/model identifiers.
Transparency and privacy
Costs, statuses, models and request IDs are visible. Contents are never stored.
No hidden fees
Every token counts: transparent input and output rates, pay only for actual usage.
3 lines to your first request
Create an API key
Registration takes less than a minute.
Set the base URL
Keep the familiar OpenAI SDK interface.
Send your first request
Pick any model from the catalog.
curl https://api.onekey.gg/v1/chat/completions \
-H "Authorization: Bearer $ONEKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.onekey.gg/v1", api_key="sk-...")
reply = client.chat.completions.create(
model="claude-opus-4-8",
messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://api.onekey.gg/v1', apiKey: 'sk-...' })
const reply = await client.chat.completions.create({
model: 'claude-opus-4-8',
messages: [{ role: 'user', content: 'Hello!' }],
})
console.log(reply.choices[0].message.content)Frequently asked questions
Do I need to change my existing code?
No. OneKey is compatible with the official OpenAI SDK: usually it is enough to change only the base URL and the API key.
Which models are available?
The catalog gathers models from OpenAI, Anthropic, Google, Meta, DeepSeek, Mistral and other providers.
How does billing work?
A single balance for all models: requests are charged by actual usage for input and output tokens. The final amount of each request and the transaction history are visible in your dashboard, and every key has a configurable spend limit.