DocumentationModels & pricing
Ask AI

Take the docs with you

Ask ChatGPTOpen a new chat ↗Ask ClaudeOpen a new chat ↗Ask on GeminiCopy prompt, then paste in Gemini ↗View llms.txtDocumentation index ↗

External chats receive links to public docs.

Models

Only endpoints that intentionally differ from the standard API carry a chip; the chip links to the note that explains the difference.

Model ids use the form family/model, for example cbcn/glm-5.3 or cc/claude-opus-5. The prefix identifies which upstream family serves the model. Call GET /v1/models for the live catalogue, or browse Dashboard → Models & pricing with prices attached.

/v1/models/api/dashboard/catalog

With a valid owner API key, GET /v1/models also includes your private combo/<slug> aliases. Unauthenticated catalog responses contain ordinary models only. See Combos for routing, permissions, and billing.

Image and video are visible, not callable. Image and video models appear in the catalogue but cannot be called: the gateway exposes no /v1/images, /v1/videos or generations endpoint — inference is chat and messages only. modality is a catalogue label passed through from upstream (upstream/), not a capability gate: nothing in the inference path checks it. What decides a call is priced plus enabled plus your key allowlist.
Catalogue filter, not a toggle. GET /api/dashboard/catalog?all=1 is a read filter that includes unpriced models; there is no user-facing toggle to enable or disable catalogue entries. Enabling stays operator-side.
Some models answer on one protocol only. A listed model is not automatically callable on both surfaces. Some entries are served on the OpenAI-compatible surface only: POST /v1/messages for such an id returns 404 not_found_error before any hold or charge, while the same id keeps working on POST /v1/chat/completions. Use the error type rather than assuming every catalogue entry is reachable from both endpoints.
bash
curl https://atmorouter.dev/v1/models \
  -H "Authorization: Bearer ar-xxxxxxxxxxxx"
json
{
  "object": "list",
  "data": [
    {
      "id": "cbcn/glm-5.3",
      "object": "model",
      "owned_by": "atmorouter",
      "family": "CodeBuddy CN",
      "pricing": { "input": 0.42, "output": 2.1, "cached_input": 0.042 },
      "context_length": 200000,
      "max_output_tokens": 8192,
      "modality": "text",
      "supports_cache": true
    }
  ]
}

Pricing fields

Marketplace prices are variable. A “From” price is the lowest advertised offer in the latest snapshot, not a fixed rate promised for every request. Offer tiers show final retail input and output rates in USD per million tokens. Availability counts offers in that snapshot; it does not promise free slots or count unique publishers. An offer whose rate would exceed the model's official list rate is not offered at all, so every tier you see is at or below official. Your charge uses the actual selected offer rate, subject to your budget. Use Budgets to require a minimum percentage off official input and output rates.

pricing.input and pricing.output are USD per million tokens and are billed separately. Output is normally several times more expensive than input, so a chatty completion costs more than a long prompt. pricing.cached_input is the advertised cache-hit input rate. Use the selected offer's applicable cache rate when reconciling usage. Cached-input savings do not replace the input and output rate caps or the paid-request minimum.

Prompt caching

Models with supports_cache: true can reuse a repeated prompt prefix on second-and-later turns of the same conversation. Cached input tokens are reported in the usage block and bill at the selected offer's cache rate, so you can see the effect. Caching is a property of the upstream model, not something you enable per request.

Catalogue changes

The catalogue and its prices are refreshed continuously from live upstream capacity, so models can appear, disappear, or change price. A model priced above its own official list rate is not listed: it is not a premium offer and does not appear in /v1/models. Read the model list at startup rather than hardcoding it, and handle HTTP 404 for a model that is no longer available.

Resolution: exact id, no aliases, no fallback

The model string is looked up by exact id against the enabled catalogue. There is no alias mechanism, no bare-name resolution, and no fallback: a short name, a typo, a disabled entry, or an id that was never priced all answer the same way — HTTP 404 with model_not_found. Read GET /v1/models at startup and send the id verbatim.

json
{
  "error": {
    "message": "model \"cbcn/glm-5.3\" not available",
    "type": "model_not_found"
  }
}

Order matters when several checks could fire: a key allowlist miss answers 403 model_not_allowed before the catalogue is even consulted, and the 404 itself fires before any balance check. A 404 therefore never means your balance is empty — it means the id did not resolve.

Image and video models are visible in the catalogue but not callable through any endpoint: the gateway exposes no image or video endpoint. Only chat and messages endpoints accept a model id today.