Skip to content

Preview: Model Atlas is in development and not yet available.

Compare prices across platforms

The same model often runs on several platforms: Claude Sonnet 4.5 is on the Anthropic API, Bedrock, Vertex AI and Azure. This tutorial gets its prices on each one and compares them fairly. You need pricing in your plan: without it, each offering’s pricing is {"entitled": false}.

Each platform’s copy of a version is an offering, with its own prices. Ask for all of them:

Terminal window
curl -H "Authorization: Bearer $MA_API_KEY" \
"$MA_API/v1/offerings?version=claude-sonnet-4-5-20250929&limit=200"

version takes a version slug. To start from a name you use instead (gpt-4o, a platform’s model ID), use models=: see IDs and slugs.

From the listOfferings example, Bedrock’s offering (trimmed):

{
"slug": "bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0",
"platform": "bedrock",
"platform_model_id": "anthropic.claude-sonnet-4-5-20250929-v1:0",
"deployment_type": null,
"pricing": {
"entitled": true,
"prices": [
{"kind": "input_token", "unit": "per_million_tokens", "usd": "3.000000000",
"region": null, "tier_condition": "", "batch": false, "service_tier": "standard"},
{"kind": "input_token", "unit": "per_million_tokens", "usd": "3.600000000",
"region": "us-gov-east-1", "tier_condition": "", "batch": false, "service_tier": "standard"},
{"kind": "output_token", "unit": "per_million_tokens", "usd": "15.000000000",
"region": null, "tier_condition": "", "batch": false, "service_tier": "standard"}
]
}
}

Each price has its own provenance too (here, all from litellm).

An offering has a row for each combination that’s priced differently:

Field Meaning
kind What’s charged: input_token, output_token, cached_input_token, cache_write_token, reasoning_token, image, request, and more.
unit What usd is the price of: per_million_tokens, per_image, per_second, and more.
usd The price, as a decimal string. null when not disclosed.
region null for every region. Otherwise a region with its own price: Bedrock’s us-gov-east-1 costs more.
tier_condition Empty for the base tier. Otherwise when this price applies, like >200k context.
batch true for the batch price (requests sent as a batch job, answered later).
service_tier standard, priority, flex, and others.

Pick one row per offering with the same kind, unit, tier_condition, batch and service_tier, and the region you’ll use (or null). For a typical comparison: input and output tokens, per million, base tier, not batch, standard service, all regions.

With jq, input-token prices across platforms, one line per offering:

Terminal window
curl -s -H "Authorization: Bearer $MA_API_KEY" \
"$MA_API/v1/offerings?version=claude-sonnet-4-5-20250929&limit=200" |
jq -r '.data[] | .slug as $offering | .pricing.prices[]?
| select(.kind == "input_token" and .unit == "per_million_tokens"
and .region == null and .tier_condition == "" and .batch == false
and .service_tier == "standard")
| [$offering, .usd] | @tsv'

For the Bedrock offering above, that line is:

bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0 3.000000000

An offering with no matching row prints nothing: check its other rows before you conclude it’s free or missing.

  • usd is a string. Parse it as a decimal (Python’s Decimal, a decimal library in JavaScript), not a float, if you do arithmetic on it.
  • Deployment types are separate offerings. Bedrock’s cross-region inference (bedrock/cross-region-us/…, bedrock/global-cross-region/…) and Azure’s data zones are priced on their own. Compare the ones you’d actually deploy.
  • Regional prices. region: null means all regions. A region with its own row, like us-gov-east-1 here, has its own price: if you’ll run there, use that row.
  • Where the prices come from. Every price comes from LiteLLM’s registry today, so provenance.confidence is third_party. Check the platform’s own pricing page before you commit to a contract. See Data sources.
  • Zero isn’t free. We skip prices a source gives as 0, since sources use 0 for “unknown” as often as for “free”. A missing kind means we don’t have it.
  • Price changes are events. price.changed events tell you when a usd changes, with change_pct. See Watch the models you use.