Skip to content

Model prices

Model prices view

Description

The Model Prices page exposes the per-model pricing records used by the gateway for cost attribution. It is Platform › Models & providers › Model prices (route /platform/model-prices), reached from the user-block menu at the bottom of the left sidebar → Platform administration. Its tabs are Model prices, Self-hosted model prices and External model pricing. The page needs the Manage model prices and deprecations permission (MODEL_PRICES_MANAGE, platform admin); tenant admins no longer have a read-only view by URL. The old /model-prices and /provider-pricing addresses redirect here (the query is kept). Settings › Costs keeps only User Costs.

The page header shows the heading Model Prices with the entry count. Two buttons sit at the top right:

  • Sync from Providers — refreshes prices from the configured upstream sources (LiteLLM JSON and OpenRouter API).
  • New Price — opens the New Model Price dialog.

The filter row below the header has one chip per provider that has price rows (All removes the provider filter), a Show deprecated (N) / Hide deprecated (N) toggle (deprecated rows are hidden by default and, when shown, are listed last with a Deprecated badge), and a Search models box: it keeps the rows whose model id, display name or provider contains the text (case does not matter). The table shows the first 100 rows that match the provider filter, the search and the Show deprecated toggle; below the table, Showing N of M counts them, and Show more adds the next 100. Changing the filter, the search or the toggle starts again at the first 100 rows. To find one model in the full catalog, search for it.

The table lists eight columns: Provider, Model, Display Name, Hosted in, Input $/1K tokens, Output $/1K tokens, Cache Read $/1K, and Updated (the currency symbol in the price headers follows your display currency, $ or €), plus an actions column. The Display Name is shown without the vendor prefix, keeping the tier and version — for example Sonnet 4.6 (see Models) — unless the row was entered manually. The two cache-write prices (Cache Write 5m and Cache Write 1h) are no longer shown as table columns but remain fully editable in the New/Edit price dialog — no pricing data is lost, only the table display is trimmed.

Provider pricing (external-model markup)

The Self-hosted model prices tab (route /platform/model-prices/provider-pricing) and the External model pricing tab (/platform/model-prices/provider-pricing?view=external) are distinct from the Model prices tab above. Where Model prices sets the raw per-model input/output prices, Provider Pricing governs the markup applied to external (non-Myra) models and surfaces unpriced self-hosted models. They require the same MODEL_PRICES_MANAGE permission.

  • External-model markup. For each external model you can set a markup percentage (0–100 %) and a region tag — EU (+10%) or non-EU (+20%). Leaving the percentage blank falls back to the region default. A model without a region tag defaults to non-EU (+20 %) and is shown as Unset - defaulting to non-EU (+20%), confirm. A markup outside 0–100 or not a number is rejected with a 400 and nothing is written. The markup is applied to the charged cost of that model's real model-of-record legs on Myra's key; sidecar meter legs, Myra self-hosted models and calls on the workspace's own provider key are never marked up. See Cost attribution for the exact formula.
  • Unpriced self-hosted chat models. A Myra (self-hosted) chat model whose input or output price is unset or ≤ 0 is shown as Unpriced — not served rather than a zero price. The self-hosted price table shows prices in your display currency ($ or € in the column headers, six decimals), like Provider Costs; price entry stays in USD. Until it is priced (in Model prices), the gateway refuses to serve it — so a model is never billed at zero by mistake. (A transient failure to read the price is the one exception: it serves and logs a warning rather than block on a database blip.)

How model prices affect cost attribution

The gateway looks up model prices at log-write time for every inference response. If a model has no entry in this table, the gateway falls back to the built-in defaults where available. Requests to models with no matching price and no built-in fallback are logged with cost_usd = 0 and do not count against budgets — except a self-hosted (provider: myra) chat model with no usable price, which is refused up front rather than served free (see the reconcile note below).

The cost of one provider call is:

cost_usd = ( input_tokens          / 1000 × input_per_1k
           + output_tokens         / 1000 × output_per_1k
           + cache_write_5m_tokens / 1000 × cache_write_per_1k
           + cache_write_1h_tokens / 1000 × cache_write_1h_per_1k
           + cache_read_tokens     / 1000 × cache_read_per_1k )
         × tier_multiplier
  • The cache terms apply only to Anthropic prompt caching; for other requests these counts are zero. When a model has no 1-hour cache-write price, the gateway uses 1.6 × the 5-minute cache-write price.
  • Cache-deletion tokens are logged but not billed: model prices carry no cache-deletion price.
  • Reasoning ("thinking") tokens count as output tokens.
Service tier Multiplier
standard (default) 1.0
batch 0.5
priority 1.25
priority_on_demand 1.5

An unknown or absent tier counts as standard. The external-model markup (see above) is applied after the multiplier and only to the budget and wallet debit; request_log.cost_usd keeps the raw cost.

See Cost Attribution for an overview.


Model capabilities

Each model price record also carries capability metadata: whether the model supports function calling, parallel function calling, web search, vision, PDF input, prompt caching, reasoning, a response schema, and tool choice.

The capability metadata is populated by the Sync from Providers action from the upstream model catalogues. The capability metadata is not edited on the New model price page, which sets only the pricing fields. An absent capability value means the capability is unknown for that model.

💡 Note: The capability metadata informs the model catalogue and the model picker. Routing does not rely on the function-calling flag for the default model choice, because the upstream values are not reliable across all providers.


Adding a model price

Required role: platform admin.

New model price page

Proceed as follows to add a model price:

  1. Click on the New Price button.
    • The New model price page opens (/platform/model-prices/new).
  2. Select the provider in the Provider drop-down list.
  3. Enter the exact model name in the Model * text field. The name must match the value sent in inference requests.
  4. Enter the price in the Input USD/1K tokens * text field.
  5. Enter the price in the Output USD/1K tokens * text field.
  6. If the provider supports prompt caching, enter the prices in the Cache Write 5m USD/1K (optional), Cache Write 1h USD/1K (optional), and Cache Read USD/1K (optional) text fields.
  7. Click on the Add Price button in the action bar at the bottom of the page.
    • The page returns to the Model prices list.

-> The new entry appears in the price table and is used for cost attribution on subsequent requests.

Cancel returns to the list without saving. With unsaved input, leaving the page (Cancel, the browser's Back button or a sidebar link) asks first whether to discard it.

The price fields accept plain numbers only, with a decimal point or a decimal comma, for example 0.003 or 0,003. A price has at most 14 significant digits and 20 decimal places. Exponent notation (1e3), hexadecimal numbers and thousands separators are refused with a message at the field, and nothing is saved. A value that could be read two ways, such as 1.500, is refused as ambiguous: write 1.5 or 1.5000. A price of 0 is allowed on the Model prices page, but a non-zero value that is too small to be stored (it would round to zero) is refused. An empty Input or Output price shows Enter an amount.; an empty cache price means that the model has no such price. On the Providers page, the price fields of a model without a price start empty, and a save without a price is refused.

Valid model ids. The Model field must be a well-formed id — non-empty and with a non-empty final path segment. A structurally-malformed id (empty, or ending in a slash such as fireworks_ai/accounts/fireworks/models/) is rejected with a 400 and never stored. The same rule applies to the upstream Sync (malformed ids are skipped, not imported) and it is enforced at the single write chokepoint, so such a row can never enter the catalog, appear in the model picker, be chosen as the Auto default, or be offered as a longer-context suggestion.


Editing a model price

Required role: platform admin.

Proceed as follows to edit a model price:

  1. Click the edit action icon on the model's row.
    • The Edit <PROVIDER>/<MODEL> page opens with the current values (/platform/model-prices/<PROVIDER>/<MODEL>/edit, the provider and model URL-encoded, so a model id with / or : works; the link can be reloaded or shared).
  2. Update the price fields as required. The Provider and Model fields are read-only when editing.
  3. Click on the Save Changes button in the action bar.
    • The page returns to the list it was opened from: Model prices, or Self-hosted when you opened it from that tab's edit action.

-> The updated prices are used for cost attribution on subsequent requests.

💡 Note: To correct a model name, delete the entry and add a new one.


Deleting a model price

Required role: platform admin.

⚠️ Caution: Deleting a model price causes the gateway to fall back to the built-in default for that model, or to log cost_usd = 0 if no built-in default exists.

Proceed as follows to delete a model price:

  1. Locate the row for the model.
  2. Click the delete action icon on the model's row.
    • A confirmation dialog opens (Delete pricing for <PROVIDER>/<MODEL>?).
  3. Confirm the deletion.

-> The entry is removed from the price table.


Synchronising prices from upstream sources

Required role: platform admin.

Proceed as follows to synchronise prices:

  1. Click on the Sync from Providers button at the top right of the view.
    • The button label changes to Syncing… until the sync completes.

-> A banner reports the result per provider: +N for models added and ~N for models updated (for example Synced: openai: +2 ~5). If nothing changed it shows All models up to date. If a provider reported errors, the banner is an error banner (Sync completed with errors) that also shows the error count. The new values are visible in the table immediately.

Myra-hosted models: how the fleet catalog reconciles

Myra-hosted models (provider: myra) reconcile against the fleet's own catalog every five minutes, rather than against an upstream price list.

  • A model the fleet starts serving is added automatically, at price 0.00 / 0.00. Its price is a deliberate internal figure and has to be set by hand. A self-hosted chat model left unpriced is now REFUSED to customers — the gateway returns model_not_found (the same response as a deprecated model) at serve time, until a platform admin sets a real price. This is fail-closed: a self-hosted chat model is never servable at an implicit $0 (previously it served free, unmetered). Non-chat fleet models (embeddings, reranking, image, speech) are priced at zero on purpose and are not gated — they keep serving.
  • A model the fleet stops serving is marked deprecated, not removed. It disappears from the model picker and from routing exactly as a removed model would, but the row — and with it the price, the context window, the display name and the region — is kept. A pod restart or a short maintenance window therefore cannot erase a price, and the model returns with its settings intact when the fleet serves it again.
  • A deprecation the reconciler made is undone automatically when the model comes back. A deprecation you made stays in place: retiring a model from the catalogue by hand is a decision the fleet cannot overrule.
  • Cost reports for past requests keep resolving, because a deprecated row is still priced.

To retire a Myra model permanently, deprecate it yourself once the fleet has stopped serving it.

⚠️ A zero price on a self-hosted chat model now blocks serving. A self-hosted (provider: myra) chat model priced at 0.00 on either side is REFUSED to customers (model_not_found) rather than served unmetered — closing the old failure mode where a zero-priced chat model accrued nothing against any budget (caps, budget e-mails, the budget_exceeded webhook and self-serve trial credit all silently saw $0). A platform admin must set a real internal price for it to become usable; the daily unpriced-chat-model alert still lists any that are left at zero. The fleet's embedding, reranking, image, speech-to-text and text-to-speech models are priced at zero on purpose — billed per a different unit — and are not gated: they keep serving, and are not part of that alert.

Editing a price

An edited price is accepted only when the input and output prices are both present and are finite numbers of zero or more. A missing, non-numeric (including a number sent as a string), infinite or negative price is rejected with a 400, and nothing is written — a negative price would otherwise disable metering for the model entirely, the same way a zero price does. The three cache prices are optional; leaving them blank clears them, and a cache price that is sent must follow the same rule. A provider that is not a known provider id, or one retired from the catalog, is also rejected with a 400.

Token-limit provenance and authority

A model's token limits (max_input_tokens and max_output_tokens) can come from three sources, tracked per row in max_input_tokens_source:

  • provider — the provider's own model API (for example Anthropic GET /v1/models), which reflects the account's real tier and beta-header eligibility. This is authoritative.
  • catalog — a self-hosted Myra pod's own configuration.
  • litellm_json — the community LiteLLM snapshot. This is a hint that can lag the provider's real limits.

The gateway routes on a model's alias id (for example claude-opus-4-5). To keep routing decisions correct, a provider (or catalog) token limit is never overwritten by the LiteLLM hint, and each alias inherits the token limits of the newest provider snapshot for that model. Prices are unaffected by this rule and continue to sync from LiteLLM and OpenRouter as usual.

The gateway also self-corrects max_output_tokens at request time: when an upstream provider rejects a request with a 400 whose error text names the model's real output ceiling (Anthropic, OpenAI, and Cohere each phrase this differently), the gateway learns that ceiling so later requests to the same model clamp correctly without a full sync. Because the 400 body is untrusted input, this learning is guarded on two independent boundaries (fail-safe — learn nothing rather than accept a bad value):

  • First-party endpoints only. The learned value is a global catalog update shared by every tenant, so it is accepted only from a Myra-resolved provider endpoint. It is ignored when the gateway routed to a tenant-controlled endpoint — any gateway that overrides the provider's host via provider_base_urls, azure_endpoint, or hf_endpoint, or the Azure OpenAI provider (whose {azure_resource}.openai.azure.com host is the tenant's own resource) — because such an endpoint could forge a 400 to poison the catalog for all tenants.
  • Plausible range only. The parsed ceiling is accepted only within [256, 10000000] output tokens; a below-floor value (a catalog-wide throttle) or an absurd above-ceiling value is rejected. Context-window–shaped error bodies are not treated as output ceilings at all.

How the catalog limits are consumed at request time

Every request resolves its target model's identity once at the request boundary into a single record, and all downstream logic reads that record instead of re-deriving capabilities from the model-id string. The record draws from two authoritative sources, each the single source of truth for its fields:

  • Token limits (max_output_tokens, max_input_tokens) come from this catalog table. They drive the gateway's max_tokens clamp: an over-large or context-overflowing request is trimmed to fit the model's real window rather than being rejected by the provider.
  • Behavioural capabilities — whether the model supports extended thinking, its thinking-shape, its native-compaction support, and its safe omitted-max_tokens default — resolve from the per-model capability registry (keyed on the exact model id) as an override, falling back to provider-synced flags the daily importer writes into this table for first-party Anthropic models (supports_reasoning, uses_adaptive_thinking, supports_native_compaction, trusted only when capability_source = 'provider'). The registry always wins where it speaks; the synced columns only fill a registry silence. See Capability sources & the trust stamp in the models API reference.

Because the identity is keyed on the exact model id (never a substring of it), two differently-capable models that merely share a common prefix can no longer be confused for one another.


See also