The Models API returns the catalog of models your agents can run, each with a copy-ready id, its context length, its price per million tokens, and any shutdown its provider has announced. It is the same catalog as octavius.ai/pricing/models and the MCP server's list_models tool, shaped for code: pick the model for a run, build a model picker, or compare costs.
The endpoint is public and needs no API key. It is rate limited per IP address (too many requests are answered with 429) and cached, so read it as reference data rather than on every request.
List models
GET https://octavius.ai/api/v1/models# Every model
curl https://octavius.ai/api/v1/models
# One provider's models
curl "https://octavius.ai/api/v1/models?provider=anthropic"| Query parameter | Description |
|---|---|
provider | Only the models of this provider, by its slug, for example anthropic or deepseek |
The response is one models array:
{
"models": [
{
"id": "anthropic/claude-sonnet-5",
"name": "Anthropic: Claude Sonnet 5",
"provider": "anthropic",
"routing": "direct",
"openRouterId": "openrouter/anthropic/claude-sonnet-5",
"contextLength": 1000000,
"pricingBasis": "fixed",
"pricing": {
"inputPer1M": "2.00",
"outputPer1M": "10.00",
"cacheReadPer1M": "0.20",
"reasoningPer1M": null,
"bandwidthPer1M": "0.28",
"tiers": []
},
"deprecation": null
}
]
}| Field | Description |
|---|---|
id | The model's id, to copy exactly as shown into a run's model |
name | Its display name |
provider | The provider's slug, such as anthropic or deepseek |
routing | direct for a model served by its provider's own API (Anthropic, Google, OpenAI, and the like), openrouter for a model served through OpenRouter, whose id starts with openrouter/ |
openRouterId | The id that runs the model through OpenRouter, for example with your own OpenRouter key; null when it can't run there. Its spelling can differ from id |
contextLength | The largest context window in tokens, when known |
pricingBasis | fixed when the model is billed at its pricing, or served-model for a router, a model that picks another model for each step and is billed at that model's cost; a router's rates are all null |
pricing.inputPer1M | The price of 1M input tokens, in USD |
pricing.outputPer1M | The price of 1M output tokens, in USD |
pricing.cacheReadPer1M | The price of 1M cached input tokens, when the model supports prompt caching |
pricing.reasoningPer1M | The price of 1M reasoning tokens, when they are priced separately |
pricing.bandwidthPer1M | The Octavius bandwidth fee per 1M tokens |
pricing.tiers | Pricing that changes with the input's length: each tier has a minInputTokens threshold and its own inputPer1M and outputPer1M. Empty for flat pricing |
deprecation | The provider's announced shutdown, or null; see Deprecations |
Prices are strings, so they keep their exact decimals. New fields can appear over time: ignore the ones you don't use.
Use a model in a run
Set a model's id as config.model, and optionally another as config.backupModel, when you start a thread with the Workforce Agents API, or pass it to --model on the Agent CLI. The run accepts any model in the catalog whose provider your organization can use; a model it can't run is refused before the run starts, with 400 INVALID_RUN_CONFIG.
How the prices apply
- A model whose
routingisdirectis billed at its listed rates. - A model served through OpenRouter is billed the exact cost OpenRouter reports for each request. When OpenRouter serves it from its provider's own endpoint, that is at most the listed rate, and less for an off-peak or cached request; when another host serves it, the cost can differ from the listed rate.
- A router is billed, for each step, the reported cost of the model it picked.
Deprecations
When a provider announces that it will stop serving a model, the model carries a deprecation:
"deprecation": { "shutdownAt": "2026-12-01", "replacementId": null }| Field | Description |
|---|---|
shutdownAt | The UTC day (YYYY-MM-DD) the provider stops serving the model, or null when it hasn't said yet |
replacementId | The model the provider names as its replacement, when it names one |
A deprecated model stays in the catalog and keeps running until its provider stops serving it. Move your runs to another model before shutdownAt.