Get started
Models and model ids
In short: A model id is the exact name you send in the model field; this page lists each id with its request formats and rates, and shows how to list your key's models.
On this page
A model id is the exact, lowercase name you send in the model field of any request: qwen-qwen3.8-27b:free works, Claude Sonnet does not. One key and one balance cover every model below.
Current models
Rates are in US dollars per 1 million tokens. “Formats” says which request formats the model accepts natively: OpenAI means /v1/chat/completions and /v1/responses, Anthropic means /v1/messages. Click an id for the full spec sheet: context window, maximum output, modalities and plan coverage.
The same table, with filters and comparisons, is on the models page. Rates there and here come from one file, so they always match.
Free and discounted models
Free models share one daily request allowance, and discounted models are billed at a temporary lower rate.
The free lane shares one allowance: 100 requests a day for every account, the same key and the same endpoints as paid models, called by the id ending in :free and refilling at 05:30 IST (00:00 UTC). Past it a request returns 429 with code daily_limit_free; only an owner grant, a coupon or a paid subscription raises that number, and no account is uncapped. An id with no priced twin bills $0 per token; an id that mirrors a priced model is billed at that model's usual rate against your balance, even though it is listed here without a rate. The sign-up credit pays for priced ids first; once it is gone, the ids that bill $0 keep their daily requests.
How do I list models from code?
GET /v1/models returns the models your key can call right now. It is free and does not count against any limit, so it is also the quickest way to check that a key works.
curl -s https://api.oneaiapikey.com/v1/models \
-H "Authorization: Bearer $ONEAIAPIKEY_API_KEY"import os
from openai import OpenAI
client = OpenAI(base_url="https://api.oneaiapikey.com/v1", api_key=os.environ["ONEAIAPIKEY_API_KEY"])
for model in client.models.list():
print(model.id)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.oneaiapikey.com/v1", apiKey: process.env.ONEAIAPIKEY_API_KEY });
for await (const model of client.models.list()) {
console.log(model.id);
}The response is the OpenAI list format. Each entry carries supported_endpoint_types, which tells you which request formats the model accepts:
{
"object": "list",
"success": true,
"data": [
{
"id": "qwen-qwen3.8-27b:free",
"object": "model",
"created": 1626777600,
"owned_by": "custom",
"supported_endpoint_types": ["openai", "anthropic"]
}
]
}The list is filtered for you:
- If the key has a model list (see per-key settings), only those models appear.
- Models that are not available to your account, or not yet priced, are left out.
How do I get the list in Anthropic’s format?
To get the list in Anthropic’s format, send both x-api-key and anthropic-version and the same route answers in Anthropic’s format, which is what Anthropic SDKs and Claude Code expect:
curl -s https://api.oneaiapikey.com/v1/models \
-H "x-api-key: $ONEAIAPIKEY_API_KEY" \
-H "anthropic-version: 2023-06-01"
# {"data":[{"id":"qwen-qwen3.8-27b:free","created_at":"…","display_name":"qwen-qwen3.8-27b:free","type":"model"}],
# "first_id":"…","has_more":false,"last_id":"…"}How do I choose a model?
Start with a balanced model and move up only when quality is the bottleneck; these points help:
- Start with a balanced model such as
qwen-qwen3.8-27b:freeorgpt-6-luna:free. Move up to a flagship only when quality is the bottleneck. - Use a fast model for sub-tasks: classification, summaries, commit messages and agent sub-steps.
z-ai-glm-5.3-flash:freecosts a fraction of a flagship. - Output tokens cost more than input tokens on every paid model, often four to five times as much. Asking for shorter answers saves more than trimming the prompt.
- Long, repeated prompts (agents, RAG, chat history) get cheaper with prompt caching.
When a model id fails
A failing model id returns one of four responses, each with its own fix:
| Response | Meaning | Fix |
|---|---|---|
404 with code model_not_found |
No model has this id | Copy the id from the table above or from GET /v1/models |
503 with code model_not_found |
The model is not available to your account or plan right now | Pick another model, or try again shortly |
403 “This token has no access to model …” |
The key has a model list without this model | Edit the key, or use a key without a model list |
400 with code model_price_error |
The model is listed but not open for requests yet | Pick another model; it will appear in GET /v1/models once it is open |
All error bodies are on the errors page.