Docs
One key and one base URL for OpenAI, Anthropic and Z.AI models. The model picks the provider; the endpoint sets the response format.
Quick start
The base URL is https://api.modelproxy.org/v1. Get a key in your dashboard and send your first request:
curl https://api.modelproxy.org/v1/chat/completions \
-H "Authorization: Bearer mp-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-luna","messages":[{"role":"user","content":"Hello"}]}'
The same base URL works with the standard openai SDK: just set base_url. Setting up an agent? Start with Common settings; step-by-step guides for each tool follow.
Keys and authentication
Keys are created and revoked under API keys. The full key is shown once, right after it is created; the list keeps only its prefix. A revoked key stops working immediately.
Both authentication headers work the same way; use whichever your client sends:
Authorization | Bearer mp-your-key — used by the OpenAI SDK and most clients. |
|---|---|
x-api-key | mp-your-key — used by the Anthropic SDK. |
If both headers are sent, Authorization wins. Spend per key is shown under Usage.
OpenAI-compatible endpoint
curl https://api.modelproxy.org/v1/chat/completions \
-H "Authorization: Bearer mp-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-5.6-luna","messages":[{"role":"user","content":"Hello"}],"stream":true}'
Good to know:
- For Codex models,
max_tokensis removed before the upstream request; spend is capped by a server-side kill switch. - Prompt caching is done by the provider automatically: cache-control parameters (such as
prompt_cache_retention) are removed, and cache-read tokens are reported inusageand billed per the catalog. response_formatwithjson_schemais supported;json_objectmode is not translated — usejson_schema.- If a model does not accept a forced
tool_choice, the valuerequiredand a specific function are translated toauto, and the requirement to call a tool is passed to the model as text. The request runs rather than being rejected; support is reported incapabilities.forced_tool_choiceof the/v1/modelsresponse.
Anthropic-compatible endpoint
curl https://api.modelproxy.org/v1/messages \
-H "x-api-key: mp-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"claude-fable-5","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'
Good to know:
- Extended thinking is supported, but with a forced
tool_choice(typeanyortool) thethinkingparameter is turned off — upstream rejects that combination. cache_controlis passed through natively.- On a cross-provider request (another provider's model on this endpoint), parameters are translated through a shared internal format: streaming, tools, images, system messages and reasoning are kept;
json_objecthas no equivalent.
Image generation and editing
POST /v1/images/generations creates an image from a text description; POST /v1/images/edits changes one or more input images. Both take the same key and base URL as the text endpoints and serve only image models: a text model on these routes, or an image model on a text endpoint, is refused with 400 before anything is charged.
curl https://api.modelproxy.org/v1/images/generations \
-H "Authorization: Bearer mp-your-key" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2","prompt":"a watercolor lighthouse at dawn","quality":"low"}' \
| jq -r '.data[0].b64_json' | base64 --decode > lighthouse.png
import base64
from openai import OpenAI
client = OpenAI(base_url="https://api.modelproxy.org/v1", api_key="mp-your-key")
result = client.images.generate(
model="gpt-image-2",
prompt="a watercolor lighthouse at dawn",
quality="low",
)
with open("lighthouse.png", "wb") as image:
image.write(base64.b64decode(result.data[0].b64_json))
An edit takes 1 to 5 input images in image/png, image/jpeg or image/webp, each at most 20 MB decoded and 8192 pixels on its longer edge: as files in image or image[] fields of a multipart/form-data form, or in JSON as data: URLs in base64 in images[].image_url. Remote image URLs are refused and never fetched. The whole request stays within the request body limit under Limits and errors.
curl https://api.modelproxy.org/v1/images/edits \
-H "Authorization: Bearer mp-your-key" \
-F "model=gpt-image-2" \
-F "prompt=add a red sailboat on the sea" \
-F "image[]=@lighthouse.png" \
| jq -r '.data[0].b64_json' | base64 --decode > edited.png
base64 < lighthouse.png | tr -d '\n' > lighthouse.b64
jq -n --rawfile image lighthouse.b64 \
'{model: "gpt-image-2", prompt: "add a red sailboat on the sea", images: [{image_url: ("data:image/png;base64," + $image)}]}' \
| curl https://api.modelproxy.org/v1/images/edits \
-H "Authorization: Bearer mp-your-key" \
-H "Content-Type: application/json" \
--data-binary @- \
| jq -r '.data[0].b64_json' | base64 --decode > edited.png
Values gpt-image-2 accepts, from its catalog record:
size | auto only: the provider chooses the dimensions, up to 8294400 pixels with the longer edge at most 3840 and a ratio of at most 3:1. An explicit WIDTHxHEIGHT is refused. The answer's size is the returned image's own dimensions. |
|---|---|
quality | low, medium, high, auto |
background | auto, opaque, transparent |
n | 1 |
output_format | png |
Controls you leave out take these values: auto size and quality, an opaque background, one png image.
The answer carries each image in base64 in data[].b64_json and its token counts in usage, which are charged at the model's rates in the model table. response_format accepts only b64_json: no image URL is returned.
Refused with 400, naming the field: stream and partial_images unless turned off, mask, input_fidelity, style, output_compression, a response_format other than b64_json, a moderation other than auto, any value outside the lists above, and unknown fields.
Available balance
Use an API key with GET /v1/available_balance. Session cookies do not authenticate this endpoint. Both Authorization: Bearer and x-api-key are accepted; Authorization takes precedence, including when it is invalid.
Personal keys return the current personal balance, already reduced by open requests. Organization keys require one model from the catalog and return the member’s remaining allowance for that model in the current UTC month. Open requests across all of that member’s organization keys count against it. The same rule applies to owners, managers and members. Personal keys reject model.
An organization response with status no_limit has a null amount: no model spend limit applies. It does not mean unlimited funds. A finite allowance is independent of the organization’s balance and does not guarantee that an inference request can be funded.
curl https://api.modelproxy.org/v1/available_balance \
-H "Authorization: Bearer $MODELPROXY_API_KEY"
curl --get https://api.modelproxy.org/v1/available_balance \
-H "x-api-key: $MODELPROXY_ORG_API_KEY" \
--data-urlencode "model=$MODEL_ID" \
--data-urlencode "currency=RUB"
currency defaults to USD regardless of page preferences. Only exact USD, RUB or CNY is accepted. Amounts are strings: six decimals for USD, two for RUB/CNY. Conversion rounds the absolute amount up once to the next minor unit and restores its sign. This display rounding does not authorize spending.
as_of is the database transaction time in UTC; it is an observation, and availability can change immediately. resets_at is the next UTC month boundary for organization keys, otherwise null. USD has fx: null. Converted responses identify the published rate and its original dates; a retained older rate can still be used. The money observation and rate publication need not change together or match across replicas.
Errors: 400 invalid_request_error for invalid, empty or repeated currency/model values (error.param names the field); 401 invalid_api_key for missing, invalid or revoked keys or inactive membership; 403 organization_disabled; 404 model_not_found for an unknown or unavailable model; 503 fx_unavailable when the selected published rate is missing or invalid, even for no_limit. Arithmetic failure returns 500 internal_error. Responses are private, no-store. Fill MODEL_ID from the model catalog. The responses below are examples.
{
"scope": "personal",
"status": "balance",
"available_balance": "8.000000",
"currency": "USD",
"model": null,
"as_of": "2026-11-16T12:00:00.000000Z",
"resets_at": null,
"fx": null
}
{
"scope": "organization",
"status": "limited",
"available_balance": "3150.00",
"currency": "RUB",
"model": "gpt-5.6-luna",
"as_of": "2026-11-16T12:00:00.000000Z",
"resets_at": "2026-12-01T00:00:00Z",
"fx": {
"snapshot_id": "00000000-0000-0000-0000-000000000001",
"generation": 142,
"published_at": "2026-10-21T10:00:00Z",
"effective_date": "2026-10-21",
"fetched_at": "2026-10-21T10:00:00Z",
"source": "example-rub",
"rate": {"numerator": "90", "denominator": "1"}
}
}
{
"scope": "organization",
"status": "no_limit",
"available_balance": null,
"currency": "USD",
"model": "gpt-5.6-luna",
"as_of": "2026-11-16T12:00:00.000000Z",
"resets_at": "2026-12-01T00:00:00Z",
"fx": null
}
Common settings
These guides were checked against official sources on August 27, 2026. Third-party tools change their installation and settings format between releases: if a command does not match, check the tool's own documentation.
Every agent needs two values: the base URL and a key. Create the key under API keys; it is shown once, so save it right away.
| OpenAI-compatible | Base URL https://api.modelproxy.org/v1. The key goes in the Authorization header as a Bearer token. |
|---|---|
| Anthropic-compatible | Base URL https://api.modelproxy.org — without /v1: the client appends /v1/messages itself. |
Keep the key in an environment variable so it never ends up in configuration files in your repository:
export MODELPROXY_API_KEY="mp-your-key"
One request checks the key — it returns the list of available models:
curl -s https://api.modelproxy.org/v1/models \
-H "Authorization: Bearer $MODELPROXY_API_KEY"
401 means a wrong or revoked key, 402 an insufficient balance; other codes are under Limits and errors. Values for the model field are under Models and pricing.
Claude Code
Anthropic's terminal agent. It talks to an external provider only in the Anthropic Messages format, so the base URL is given without /v1.
1. Install
curl -fsSL https://claude.ai/install.sh | bash
claude --version
2. Configure
export ANTHROPIC_BASE_URL="https://api.modelproxy.org"
export ANTHROPIC_AUTH_TOKEN="mp-your-key"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-5-5"
claude
ANTHROPIC_DEFAULT_HAIKU_MODEL moves Claude Code's background requests — generating the session title and processing pages fetched through WebFetch — to the inexpensive Claude Haiku 4.5. Without it, a client on a third-party address runs them on the session's main model, at that model's price. Auto-mode action checks always run on Claude Sonnet 5. The variable does not change the session's own model: that is still chosen with /model or --model.
The response length limit comes from the catalog: current Anthropic models allow 128000 output tokens, so Claude Code's default (64000) works without changes. On a model with a lower limit the service answers 400 and states its exact limit — lower CLAUDE_CODE_MAX_OUTPUT_TOKENS to that value.
The same values can go into ~/.claude/settings.json, in the env block. Do not commit a file containing the key: use .claude/settings.local.json for project settings.
3. Model
The client does not validate the model name; it is passed through as is. Pick a model with the /model command or at launch:
claude --model claude-fable-5
4. Check
The /status command inside claude shows the base URL and which variable the key came from. A one-off non-interactive run:
claude --bare -p "Reply with one word: OK"
Common errors
400 about max_tokens | More than the model's limit was requested — lower CLAUDE_CODE_MAX_OUTPUT_TOKENS or choose a model with a higher limit. |
|---|---|
| 401 | The key went into the wrong header: ANTHROPIC_AUTH_TOKEN is sent as Bearer, ANTHROPIC_API_KEY as x-api-key. If unsure, use ANTHROPIC_AUTH_TOKEN. |
| The key is ignored | ANTHROPIC_API_KEY needs a one-time confirmation; if it was declined, turn it back on with /config → “Use custom API key”. |
| Conflict warning | Both the variables and a saved claude.ai login are set. Run /logout or unset the variable. |
| 400 about beta fields | Set CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1: the client stops sending experimental parameters. |
| Empty response with 200 | HTML came back instead of JSON — usually a proxy sign-in page or a wrong base URL (an extra /v1). |
Codex / Codex CLI
Codex is a family of OpenAI products: the agent in the ChatGPT app, the IDE extension, cloud Codex and the terminal Codex CLI. Only the CLI and the IDE extension read a custom provider, from a shared settings file; cloud Codex runs entirely on OpenAI's infrastructure.
Codex talks to an external provider over a single protocol, the OpenAI Responses API; the wire_api = "chat" value has been removed from the client. ModelProxy serves Responses at https://api.modelproxy.org/v1 alongside Chat Completions and Anthropic Messages.
1. Install
npm install -g @openai/codex
codex --version
2. Configure
The key is read from the environment variable named in env_key — it does not go in the file itself:
model = "gpt-5.6-luna"
model_provider = "modelproxy"
[model_providers.modelproxy]
name = "ModelProxy"
base_url = "https://api.modelproxy.org/v1"
env_key = "MODELPROXY_API_KEY"
wire_api = "responses"
Any provider name works except the reserved openai, ollama and lmstudio. The model_providers block is read only from the user's ~/.codex/config.toml; in a project file it is ignored.
3. Model
The model value from the file can be overridden for one run; the full list is under Models and pricing.
codex --model gpt-5.6-luna
4. Check
export MODELPROXY_API_KEY="mp-your-key"
codex exec --skip-git-repo-check "Reply with one word: OK"
Common errors
| The client does not start | `wire_api = "chat"` is no longer supported — the value was removed from Codex. Keep responses. |
|---|---|
| 401 | The variable named in env_key is not exported in the environment where codex runs, or the key was revoked. |
| The settings do not apply | The provider name matches a reserved one (openai), or the block is in a project file instead of ~/.codex/config.toml. |
404 on /responses | The /v1 suffix is missing from base_url: the client appends /responses to it itself. |
| File edits are not applied | A non-interactive run does not approve actions on its own — set approval_policy and sandbox_mode for your task. |
Verified: August 28, 2026, codex-cli 0.150.1: the client completed a file-editing task through /v1/responses.
Cursor
There is currently no reliable way to point Cursor at ModelProxy. In the editor (Cursor IDE) it relies on an undocumented setting; the terminal Cursor CLI has no such option.
Editor (Cursor IDE)
Your own key is set only in the interface: Cursor Settings → Models. Officially it accepts OpenAI, Anthropic, Google, Azure OpenAI and AWS Bedrock keys, and each key goes to its own provider.
Sending requests to ModelProxy also needs an overridden base URL. That setting is not in Cursor's official documentation: it is known from user reports, which also say it breaks the built-in Anthropic models.
Official limitations:
- Your own key works only with chat models. Autocomplete (Tab) stays on Cursor's models.
- Requests go through the Cursor cloud, so the address must be publicly reachable:
api.modelproxy.orgworks, a local proxy does not. - There is no separate field for an Anthropic-compatible address.
- The Zero Data Retention policy does not apply with your own key.
Cursor shows no connection check: with a wrong key, requests simply stop working. To see whether a key is live, use the request from Common settings.
Cursor CLI — cannot be connected
The installer curl https://cursor.com/install -fsS | bash installs agent and cursor-agent — one program, and none of its settings lead to ModelProxy.
The trap is the -e, --endpoint flag and the CURSOR_API_ENDPOINT variable: they set the address of Cursor's backend, not of a model provider. The client's very first request goes to POST /auth/exchange_user_api_key to exchange a Cursor account key.
~/.cursor/cli-config.jsonhas no provider or base URL fields — only interface and permission settings.- The only third-party integration is AWS Bedrock (
agent bedrock), not an arbitrary OpenAI-compatible address. - Cursor staff confirmed on the forum (2026-01-17) that the CLI signs in only through a Cursor account.
Verified: August 27, 2026, cursor-agent 2026.08.25-3e8eec8. Symptom when trying to connect: 404 on POST /auth/exchange_user_api_key.
Kilo Code
A VS Code extension and a terminal client sharing one settings file. Works over the OpenAI-compatible protocol.
1. Install
npm install -g @kilocode/cli
2. Configure
In the extension: Settings → Providers → Custom provider, API type “OpenAI Compatible”, base URL https://api.modelproxy.org/v1, key — your mp-…. The same as a file, ~/.config/kilo/kilo.jsonc:
{
"$schema": "https://app.kilo.ai/config.json",
"model": "openai-compatible/gpt-5.6-luna",
"provider": {
"openai-compatible": {
"options": {
"apiKey": "{env:MODELPROXY_API_KEY}",
"baseURL": "https://api.modelproxy.org/v1"
},
"models": {
"gpt-5.6-luna": {
"name": "ModelProxy",
"tool_call": true,
"limit": { "context": 128000, "output": 16384 }
}
}
}
}
}
3. Check
kilo run --auto "Reply with one word: OK"
Common errors
| The key was not substituted | {env:…} substitution works only in the global config; in a project file it stays unexpanded. |
|---|---|
| No models found | Auto-detection queries /v1/models with the key — if it did not work, describe the model by hand, as in the example. |
| 404 | The /v1 suffix is missing from baseURL. |
Pi
A minimalist terminal agent. It supports both OpenAI- and Anthropic-compatible providers.
1. Install
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
2. Configure
The file ~/.pi/agent/models.json is strict JSON; comments are not allowed. $MODELPROXY_API_KEY means “read from the environment variable”:
{
"providers": {
"modelproxy": {
"baseUrl": "https://api.modelproxy.org/v1",
"api": "openai-completions",
"apiKey": "$MODELPROXY_API_KEY",
"models": [
{ "id": "gpt-5.6-luna", "contextWindow": 128000, "maxTokens": 16384 }
]
}
}
}
For the Anthropic-compatible channel, set "api": "anthropic-messages" and the base URL https://api.modelproxy.org.
3. Check
pi --model modelproxy/gpt-5.6-luna --no-session -p "Reply with one word: OK"
Common errors
| The config is not read | A stray comma or a comment in models.json: the format is strict JSON. |
|---|---|
| 404 | The /v1 is missing from baseUrl in OpenAI-compatible mode. |
| The server rejects parameters | Restrict them with the model's compat block — for example, turn off the developer role. |
omp.sh
The omp terminal agent (“oh-my-pi”), a fork of Pi with its own tool set. It is configured with an OpenAI-compatible provider.
1. Install
curl -fsSL https://omp.sh/install | sh
omp --version
2. Configure
The file is ~/.omp/agent/models.yml. The apiKey field can name an environment variable, so the key itself stays out of the file:
providers:
modelproxy:
baseUrl: https://api.modelproxy.org/v1
api: openai-completions
apiKey: MODELPROXY_API_KEY
models:
- id: gpt-5.6-luna
name: ModelProxy
contextWindow: 128000
maxTokens: 16384
3. Check
omp models
omp -p "Reply with one word: OK" --model modelproxy/gpt-5.6-luna
Common errors
| The provider did not load | A YAML error, or one of baseUrl/api/apiKey is missing. Check with omp models. |
|---|---|
| A different key is used | Priority: the --api-key flag, then models.yml, then a saved login, then environment variables. |
| The model cannot be selected | The model must be declared in the models list, with the required id field. |
Hermes Agent
An autonomous agent by Nous Research. It supports both protocols: chat_completions and anthropic_messages.
1. Install
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
2. Configure
The file is ~/.hermes/config.yaml; Hermes keeps secrets separately, in ~/.hermes/.env, so the config names only the variable:
providers:
modelproxy:
api: https://api.modelproxy.org/v1
key_env: MODELPROXY_API_KEY
transport: chat_completions
model:
default: gpt-5.6-luna
provider: custom:modelproxy
3. Check
hermes doctor
hermes -z "Reply with one word: OK"
Common errors
| The installer stops | The installer builds native modules and sometimes falls back to cloning over SSH, which fails in a clean environment. Install build-essential and retry — the command is idempotent. |
|---|---|
| 404 on auxiliary tasks | Context compression and image parsing use the OpenAI format. With transport: anthropic_messages, give them a provider in the auxiliary section — or use the OpenAI-compatible channel. |
| Tool calls arrive as text | A sign that the selected channel does not parse tool calls; check transport. |
| Cut-offs on long contexts | Set context_length on the provider. |
OpenClaw
A personal assistant that runs as an always-on gateway to messaging apps. The model connects through its own provider; both protocols are supported.
1. Install
npm install -g openclaw@latest --allow-scripts=openclaw
2. Configure
The file ~/.openclaw/openclaw.json is JSON5 (comments are allowed). Every model must be listed explicitly in models, or the agent refuses to use it:
{
agents: { defaults: { model: { primary: "modelproxy/gpt-5.6-luna" } } },
models: {
mode: "merge",
providers: {
modelproxy: {
baseUrl: "https://api.modelproxy.org/v1",
apiKey: "${MODELPROXY_API_KEY}",
api: "openai-completions",
models: [
{ id: "gpt-5.6-luna", name: "ModelProxy",
contextWindow: 128000, maxTokens: 16384 }
]
}
}
}
}
3. Check
openclaw agents list
openclaw agent --local --agent main --message "Reply with one word: OK" --json
Common errors
| “model not allowed” | The model is not listed in the provider's models array. A valid key is not enough. |
|---|---|
| “Pass --to …” at launch | No agent is given: take the ID from openclaw agents list (main by default) and pass it as --agent main. |
--local run does not start | The state directory is held by a running gateway: stop the daemon or start with a separate --profile. |
| The address is rejected | Addresses on a local network need request: { allowPrivateNetwork: true }; the public api.modelproxy.org does not. |
What not to do with your key
- Do not commit configuration files containing the key: almost every agent can read the key from an environment variable — use that.
- The key is shown once. If it leaks, revoke it in your dashboard — revocation takes effect immediately — and create a new one.
Models and pricing
USDPricing currency
The values the model field accepts and their prices per 1M tokens — the same as in the table on the home page. The table updates automatically from the service catalog and lists only models callable right now, the same set GET /v1/models returns. Text models are called on the text endpoints described above: the model picks the provider, the endpoint sets the response format. Image models serve only the image routes.
| Model | ID | Price per 1M input tokens | Price per 1M output tokens |
|---|---|---|---|
| Anthropic | |||
| Claude Fable 5.2 | claude-fable-5-2 | $1.60 | $8.00 |
| Claude Fable 5 | claude-fable-5 | $1.00 | $5.00 |
| Claude Fable 5.1 | claude-fable-5-1 | $1.00 | $5.00 |
| Claude Opus 4.5 | claude-opus-4-5-20251101 | $0.375 | $1.875 |
| Claude Opus 4.6 | claude-opus-4-6 | $0.375 | $1.875 |
| Claude Opus 4.7 | claude-opus-4-7 | $0.375 | $1.875 |
| Claude Opus 4.8 | claude-opus-4-8 | $0.375 | $1.875 |
| Claude Opus 5 | claude-opus-5 | $0.375 | $1.875 |
| Claude Opus 5.5 | claude-opus-5-5 | $0.30 | $1.50 |
| Claude Sonnet 4.6 | claude-sonnet-4-6 | $0.225 | $1.125 |
| Claude Sonnet 5 | claude-sonnet-5 | $0.15 | $0.75 |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | $0.15 | $0.75 |
| Claude Haiku 4.5 | claude-haiku-4-5 | $0.075 | $0.375 |
| Claude Haiku 5.5 | claude-haiku-5-5 | $0.0075 | $0.0375 |
| OpenAI | |||
| GPT-6-Astra | gpt-6-astra | $1.00 | $5.00 |
| GPT-6.2-Astra | gpt-6.2-astra | $0.80 | $4.00 |
| gpt-image-2 | gpt-image-2 | Text input $0.50 Image input $0.80 | Image output $3.00 |
| GPT-5.6-Sol | gpt-5.6-sol | $0.40 | $2.00 |
| GPT-5.6-Terra | gpt-5.6-terra | $0.20 | $1.20 |
| GPT-6-Sol | gpt-6-sol | $0.20 | $1.00 |
| GPT-6.1-Sol | gpt-6.1-sol | $0.20 | $1.00 |
| GPT-6.2-Sol | gpt-6.2-sol | $0.20 | $1.00 |
| GPT-6.1 Terra | gpt-6.1-terra | $0.10 | $0.50 |
| GPT-5.6-Luna | gpt-5.6-luna | $0.02 | $0.12 |
| GPT-6-Luna | gpt-6-luna | $0.01 | $0.05 |
| Codex Auto Review | codex-auto-review | not published | not published |
| Z.AI | |||
| glm-5.1 | glm-5.1 | $0.14 | $0.44 |
| glm-5.2 | glm-5.2 | $0.14 | $0.44 |
| glm-5.3 | glm-5.3 | $0.14 | $0.44 |
| glm-5-turbo | glm-5-turbo | $0.12 | $0.40 |
| glm-5 | glm-5 | $0.10 | $0.32 |
| glm-4.5 | glm-4.5 | $0.06 | $0.22 |
| glm-4.6 | glm-4.6 | $0.06 | $0.22 |
| glm-4.7 | glm-4.7 | $0.06 | $0.22 |
| glm-4.5-air | glm-4.5-air | $0.02 | $0.11 |
| glm-5.3-flash | glm-5.3-flash | $0.015 | $0.05 |
Prices are published separately from availability: a model can become callable before its rate is published, and then its row reads “not published” instead of a price. Charges follow the tokens actually used, each component rounded up to a millionth of a dollar (1 µ$).
A model still being checked or disabled by the operator does not appear in the table: an unknown or disabled ID returns 404 model_not_found.
Limits and errors
There are no fixed request limits per key. The maximum request body size is 10 MB.
| 402 | Insufficient balance — top up under Top up in your dashboard (USDT on the Tron network / TRC-20). |
|---|---|
| 404 | model_not_found: the model is unknown or disabled. |
| 429 | The provider's capacity is exhausted; retry after the time given in the Retry-After header. |
| 503 | The channel to the provider is completely unavailable. |
On a network error before the first byte of the response, the request is retried automatically, up to 3 attempts.