Skip to content

fix(cost-map): bedrock reasoning effort flags, registry audit fixes for vertex/openai/together/openrouter, absorb cerebras and inception rows - #40740

Merged
mateo-berri merged 8 commits into
litellm_internal_stagingfrom
litellm_bedrock_openai_xhigh_flags
Sep 11, 2026
Merged

mateo-berri merged 8 commits into
litellm_internal_stagingfrom
litellm_bedrock_openai_xhigh_flags

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Bedrock-hosted OpenAI GPT-5.4/5.5/5.6/6 rows never advertise xhigh reasoning effort, nor the max level Bedrock accepts on gpt-5.6 and gpt-6-astra
  • Cost map is missing new models on Cerebras, Inception, Together and OpenRouter
  • Several existing rows carry wrong prices (Vertex Mistral Small 10x too high, stale OpenRouter rates, $0 Together rows)
  • gpt-5.4-pro / gpt-5.5-pro carry a cached-input price OpenAI does not publish

How it solves it:

  • Adds supports_xhigh_reasoning_effort: true to the 19 Bedrock and Bedrock Mantle GPT rows and supports_max_reasoning_effort: true to the 12 gpt-5.6 and gpt-6-astra rows Bedrock accepts max on, and withholds minimal on every row and none on gpt-6-astra, each level measured through the proxy against Bedrock
  • Adds 22 verified rows (cerebras, inception, together_ai, openrouter), each with an official source
  • Corrects prices on 26 existing rows and removes the two unpublished cache-read fields from the four pro rows
  • Absorbs the registry data from feat(cerebras): add qwen-3.8-27b registry pricing #40744 and feat(cost_map): add inception/mercury-2.5 pricing and model settings (#40746) #40747 (this is the single rolling registry PR)

User Flow

Before: an operator serving GPT-5.6 through Bedrock Mantle cannot see or pick xhigh, a Vertex Mistral Small deployment is billed at 10x, and new Qwen, Cerebras and Together deployments log $0

  1. They add bedrock_mantle/openai.gpt-5.6-sol, vertex_ai/mistral-small-2503 and openrouter/qwen/qwen3.8-max-0902 deployments and start the proxy
  2. They send GET http://localhost:4000/model_group/info
  3. The Bedrock group shows supported_reasoning_efforts: null
  4. They send GET http://localhost:4000/model/info: the Vertex Mistral row shows input_cost_per_token: 1e-06, 10x the price Google charges, and the Qwen row, like cerebras/qwen-3.8-27b and together_ai/moonshotai/Kimi-K2.6, shows 0 costs and null token limits
  5. They send POST http://localhost:4000/v1/responses to openrouter/qwen/qwen3.8-max-0902: the response carries no x-litellm-response-cost header and https://litellm-domain/ui/?page=logs shows Cost - for that request

After: the Bedrock deployment reports the reasoning ladder Bedrock accepts, and spend tracks published prices

  1. They add the same deployments and start the proxy
  2. They send GET http://localhost:4000/model_group/info
  3. The Bedrock group lists supported_reasoning_efforts as none, low, medium, high, xhigh, max, and a request to that deployment with reasoning_effort: max returns 200
  4. GET http://localhost:4000/model/info shows the Vertex Mistral row at input_cost_per_token: 1e-07, matching the Vertex pricing page, and the Qwen, Cerebras and Together rows carry their published costs and token limits
  5. The same POST http://localhost:4000/v1/responses comes back with x-litellm-response-cost: 0.00031 and https://litellm-domain/ui/?page=logs shows $0.000310 for it

Relevant issues

Reported by a customer in Pylon #8505

Supersedes #40744 (cerebras/qwen-3.8-27b) and #40747 (inception/mercury-2.5)

Linear ticket

Resolves LIT-7575

Registry changes by provider

Every value below was read from the raw official page or the provider's official model API. Full field-level old/new table: see the commit 4ffd4ecc diff (Bedrock flags: dbc57c13d4 and 71f45683d7); each changed row also carries the source URL

Bedrock (original scope of this PR)

supports_xhigh_reasoning_effort: true on all 19 bedrock and bedrock_mantle GPT-5.4/5.5/5.6/6-astra rows. The rest of each row's ladder was measured through the proxy on 2026-09-11, one real request per level per row (matrix in the proof below), and Bedrock does not mirror the direct OpenAI rows: gpt-5.6 luna/sol/terra and gpt-6-astra answer 200 to max on Bedrock Mantle and on the us. and global. Converse profiles, while OpenAI's own chat completions API refuses max on gpt-5.6, so those 12 rows get supports_max_reasoning_effort: true. gpt-6-astra refuses none, so its three rows get supports_none_reasoning_effort: false. minimal is refused on every Bedrock GPT row, so supports_minimal_reasoning_effort: false stays on all of them, gpt-5.4 and gpt-5.5 included: Bedrock Mantle's raw chat completions endpoint accepts minimal on those two, but LiteLLM sends the Mantle rows over Bedrock's Responses endpoint, which refuses it, and the proxy path is what the flag describes. Bedrock's own rejection text is not reliable either: its minimal rejection on gpt-5.4 names max as supported, and a max request is then refused with a list that ends at xhigh, so every flag follows the status code and not the message. The GovCloud rows and gpt-5.6-cyber cannot be called from our account (see Checked, not changed) and keep the family's xhigh flag with no max. Regression test in tests/test_litellm/test_model_prices_schema.py pins the measured ladder per row and asserts every Bedrock GPT row advertises xhigh

OpenAI (https://platform.openai.com/docs/pricing)

Removed cache_read_input_token_cost and cache_read_input_token_cost_above_272k_tokens from gpt-5.4-pro, gpt-5.4-pro-2026-03-05, gpt-5.5-pro, gpt-5.5-pro-2026-04-23. The pricing rows are gpt-5.4-pro (<272K context length) | $30.00 | - | - | $180.00 | $60.00 | - | - | $270.00 and the same shape for gpt-5.5-pro: no cached-input price is published, same as gpt-5-pro, o1-pro and o3-pro which already have none. test_generic_cost_per_token_gpt55_pro asserted the old $3/1M cached rate and now asserts the key is absent

Cerebras (absorbed from #40744, https://api.cerebras.ai/public/v1/models/qwen-3.8-27b)

New cerebras/qwen-3.8-27b: $0.99 / $1.49 per 1M, context 65536, max output 32768, function calling, parallel tools, tool choice, structured outputs, reasoning, vision. All values match the official model API response. Test added in tests/test_litellm/llms/cerebras/test_cerebras_chat_transformation.py

Inception (absorbed from #40747, corrected, https://docs.inceptionlabs.ai/get-started/models)

New inception/mercury-2.5: $0.20 / $0.75 per 1M, context 260000, max output 65536, tool calling, structured outputs. Changes from the source PR: the docs give max output tokens 65,536 (the PR had 260,000), and the docs do not document prompt caching or parallel tool calls, so cache_read_input_token_cost, supports_prompt_caching and supports_parallel_function_calling were dropped. The openrouter/inception/mercury-2.5-preview alias from that PR was not added: OpenRouter's model API lists the id as inception/mercury-2.5 and currently shows a launch discount, so there is no stable price to record. Test added in tests/test_litellm/llms/inception/test_inception_chat_transformation.py

Vertex AI (https://cloud.google.com/vertex-ai/generative-ai/pricing)

vertex_ai/mistral-small-2503 and vertex_ai/mistral-small-2503@001: $1.00 / $3.00 -> $0.10 / $0.30 (row Mistral Small 3.1 (25.03) | Input $0.10 | Output $0.30). vertex_ai/openai/gpt-oss-20b-maas: $0.075 / $0.30 -> $0.07 / $0.25, cache hit $0.007 added (row gpt-oss-20b | Input $0.07 | Output $0.25 | Cache Hit $0.007); its source pointed at the gpt-oss-120b model garden page and now points at the pricing page

Together AI (https://api.together.xyz/v1/models, official model API with pricing and context_length)

Four rows that had no price at all now carry the API's published rate and context: Qwen/Qwen2.5-72B-Instruct-Turbo $1.20 / $1.20, Qwen/Qwen2.5-7B-Instruct-Turbo $0.30 / $0.30, mistralai/Mistral-7B-Instruct-v0.1 $0.20 / $0.20, mistralai/Mistral-Small-24B-Instruct-2501 $0.10 / $0.30

Thirteen new together_ai/ rows for serverless chat models the API prices: moonshotai/Kimi-K2.6 ($1.20 / $4.50, cache $0.20), moonshotai/Kimi-K2.5-fp4 ($0.50 / $2.80), MiniMaxAI/MiniMax-M2.7 ($0.30 / $1.20, cache $0.06), zai-org/GLM-5 ($1.00 / $3.20), zai-org/GLM-5.1 ($1.40 / $4.40, cache $0.26), deepseek-ai/DeepSeek-R1-0528 ($3 / $7), Qwen/Qwen3-Coder-Next-FP8 ($0.50 / $1.20), Qwen/Qwen3-VL-32B-Instruct ($0.50 / $1.50), Qwen/Qwen3-VL-8B-Instruct ($0.18 / $0.68), mistralai/Ministral-3-14B-Instruct-2512 ($0.20 / $0.20), nvidia/NVIDIA-Nemotron-Nano-9B-v2 ($0.06 / $0.25), mistralai/Mistral-7B-Instruct-v0.3 ($0.20 / $0.20), Qwen/QwQ-32B ($1.20 / $1.20). The API publishes no capability flags, so none were set. The remaining ~200 ids the API lists are $0 (dedicated-only) or non-chat and were left out

OpenRouter (https://openrouter.ai/api/v1/models, per-row source https://openrouter.ai/)

Prices re-read from the official model API for 16 existing rows: moonshotai/kimi-k3 ($3 / $15 -> $2.10 / $10.53), z-ai/glm-5.2 ($0.966 / $3.036 -> $0.60 / $2.00), z-ai/glm-5.3-flash ($0.075 / $0.25 -> $0.15 / $0.50), z-ai/glm-4.6 ($0.55 / $2.20 -> $0.43 / $1.75), deepseek/deepseek-v4-pro ($1.32 / $3.96 -> $0.86 / $1.72), deepseek/deepseek-v4-pro-0813 ($1.32 / $3.96 -> $0.58 / $1.74), deepseek/deepseek-v4-flash, deepseek/deepseek-chat-v3.1 ($0.20 / $0.80 -> $0.25 / $0.95), qwen/qwen3-235b-a22b-2507 ($0.0875 / $0.35 -> $0.22 / $0.88), qwen/qwen3-30b-a3b-instruct-2507, qwen/qwen3-14b ($0.12 / $0.24 -> $0.2275 / $0.91), qwen/qwen3.5-35b-a3b, qwen/qwen3.5-122b-a10b, qwen/qwen3-next-80b-a3b-instruct, moonshotai/kimi-k2.7-code, google/gemma-4-26b-a4b-it ($0.07 / $0.34 -> $0.042 / $0.22). Cache-read prices added where the API publishes one

Seven new rows: deepseek/deepseek-v4.1-flash ($0.15 / $0.60, cache $0.003, 1M context, 384K output; the API's time-of-day overrides were not modeled, the base rate is recorded), openai/gpt-5.6-luna-pro, openai/gpt-5.6-sol-pro, openai/gpt-5.6-terra-pro, openai/gpt-6-astra-pro (each with the >272K tier and cache read/write from the API), openai/gpt-chat-latest ($5 / $30, cache $0.50), qwen/qwen3.8-max-0902 ($2 / $6, cache read $0.25, write $2.50). Capability flags derived from supported_parameters and architecture.input_modalities

Each OpenRouter row records the rate the models API returned for the model's top provider at capture on 2026-09-11, since that is what OpenRouter's default routing bills. The alternative was the first-party rate (Moonshot lists kimi-k3 at $3 / $15, the old row), which stays stable but is not what an OpenRouter user pays. The top-provider rate floats as providers change price and ordering, so a row can drift within hours of capture; see the Caveats section

Checked, not changed

  • Bedrock Claude 3 Haiku cache pricing (fix: correct cache pricing for Claude 3 Haiku CRIS variants on Bedrock #40368): AWS publishes no cache-read or cache-write rate for this model (the Bedrock pricing feed shows N/A for those columns), so neither the current nor the proposed values can be confirmed. Left for the author
  • Phoenix Grove (docs: add Phoenix Grove (pgsgrove) model pricing entries #40755): adds 34 rows for a pgsgrove provider that has no provider implementation in this repo, so it is a provider PR, not a registry-only change. Left alone
  • Docs/add pgsgrove pricing #40762 and feat(dashscope): add separate explicit and implicit cache pricing #40111 touch the JSON only as part of larger code or behavior changes. Left alone
  • Anthropic supports_web_search: the pricing page prices web search at $10 per 1,000 searches but does not list per-model support, so no flags were set
  • OpenAI, Anthropic, Gemini API, xAI, DeepSeek, Voyage: every spot-checked price and context value matches the official page; nothing to change
  • Bedrock missing model cards (claude-mythos-5, kimi-k2-5, deepseek-v3.1): no readable per-model price in the AWS pricing feed, so not added
  • Cohere current lineup, Fireworks new serverless models, Azure new deployments, Groq compound and minimax-m2.7, Mistral prices, Nebius catalog: pricing pages are JS-only, deployment-based, or "contact sales", so no per-token value could be read from an official source. Not added
  • Groq llama-3.1-8b-instant and llama-3.3-70b-versatile now show "Contact sales" on the official model page; existing prices left as-is because no replacement value is published
  • Vertex glm-5.2-maas and llama-3.3-70b-instruct-maas have prices on the pricing page but no context or output limits in the docs fetched; not added rather than guessing
  • Embedding embed-multilingual-light-v3.0 at $100 per 1M looks wrong but Cohere's pricing page could not be read raw; not changed
  • Bedrock GovCloud GPT rows (bedrock_mantle/us-gov-west-1/openai.gpt-5.4, .../openai.gpt-5.6-luna, .../openai.gpt-5.6-terra, bedrock_mantle/us-gov-east-1/openai.gpt-5.4): our account has no GovCloud API access, so their ladders could not be measured. They keep the family's xhigh flag and minimal: false and get no max
  • bedrock_mantle/openai.gpt-5.6-cyber: Bedrock Mantle returns 404 for it in us-east-1, us-west-2, eu-west-1 and ap-northeast-1 on our account, so its ladder could not be measured. Same treatment as the GovCloud rows

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Scope note: this is the single rolling registry PR (standing instruction: one open model-pricing PR at a time), so it bundles the xhigh flags with this run's audit fixes

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

Both legs share one config of 21 deployments, each named after its registry row: vertex_ai/mistral-small-2503, together_ai/moonshotai/Kimi-K2.6, cerebras/qwen-3.8-27b and inception/mercury-2.5 with placeholder keys, gpt-5.4-pro, openrouter/moonshotai/kimi-k3 and openrouter/qwen/qwen3.8-max-0902 with keys from .env, and the 14 commercial Bedrock GPT rows (bedrock_mantle/openai.gpt-5.4, gpt-5.5, gpt-5.6-luna, gpt-5.6-sol and gpt-5.6-terra in us-east-1, bedrock_mantle/openai.gpt-6-astra in us-west-2, and bedrock/us.openai.* plus bedrock/global.openai.* for gpt-5.6-luna/sol/terra and gpt-6-astra in us-east-1) with AWS_BEARER_TOKEN_BEDROCK from .env, plus general_settings.proxy_batch_write_at: 5. Each leg boots from its own worktree and .venv with LITELLM_LOCAL_MODEL_COST_MAP=True, --num_workers 2 and its own Postgres database: base 95b4380 on port 31655, head 71f4568 on port 57922. Below, $B is the leg's base URL, $H is Authorization: Bearer sk-qa-1234, and the Admin UI login is admin with the master key as the password. The rows with placeholder keys are checked on /model/info only

Before (95b4380)

Registry costs on /model/info

  1. Read the seven rows the PR adds or corrects
curl -s $B/model/info -H "$H" | jq -c '.data[] | select(.model_name|IN("vertex_ai/mistral-small-2503","together_ai/moonshotai/Kimi-K2.6","cerebras/qwen-3.8-27b","inception/mercury-2.5","gpt-5.4-pro","openrouter/moonshotai/kimi-k3","openrouter/qwen/qwen3.8-max-0902")) | {model_name, input_cost_per_token: .model_info.input_cost_per_token, output_cost_per_token: .model_info.output_cost_per_token, cache_read_input_token_cost: .model_info.cache_read_input_token_cost, max_input_tokens: .model_info.max_input_tokens, max_output_tokens: .model_info.max_output_tokens}'
{"model_name":"vertex_ai/mistral-small-2503","input_cost_per_token":0.000001,"output_cost_per_token":0.000003,"cache_read_input_token_cost":null,"max_input_tokens":128000,"max_output_tokens":128000}
{"model_name":"together_ai/moonshotai/Kimi-K2.6","input_cost_per_token":0,"output_cost_per_token":0,"cache_read_input_token_cost":null,"max_input_tokens":null,"max_output_tokens":null}
{"model_name":"cerebras/qwen-3.8-27b","input_cost_per_token":0,"output_cost_per_token":0,"cache_read_input_token_cost":null,"max_input_tokens":null,"max_output_tokens":null}
{"model_name":"inception/mercury-2.5","input_cost_per_token":0,"output_cost_per_token":0,"cache_read_input_token_cost":null,"max_input_tokens":null,"max_output_tokens":null}
{"model_name":"gpt-5.4-pro","input_cost_per_token":0.00003,"output_cost_per_token":0.00018,"cache_read_input_token_cost":0.000003,"max_input_tokens":1050000,"max_output_tokens":128000}
{"model_name":"openrouter/moonshotai/kimi-k3","input_cost_per_token":0.000003,"output_cost_per_token":0.000015,"cache_read_input_token_cost":3E-7,"max_input_tokens":1048576,"max_output_tokens":943718}
{"model_name":"openrouter/qwen/qwen3.8-max-0902","input_cost_per_token":0,"output_cost_per_token":0,"cache_read_input_token_cost":null,"max_input_tokens":null,"max_output_tokens":null}

Live spend on /v1/chat/completions

  1. One request per row, printing the status, the x-litellm-response-cost header and the usage
for m in openrouter/moonshotai/kimi-k3 openrouter/qwen/qwen3.8-max-0902 gpt-5.4-pro; do
  code=$(curl -s -o body.json -D headers.txt -w '%{http_code}' $B/v1/chat/completions -H "$H" -H "Content-Type: application/json" -d '{"model": "'$m'", "messages": [{"role": "user", "content": "Reply with the single word: pong"}], "max_tokens": 128}')
  echo "$m -> $code cost=$(grep -i '^x-litellm-response-cost:' headers.txt | tr -d '\r' | cut -d' ' -f2) call_id=$(grep -i '^x-litellm-call-id:' headers.txt | tr -d '\r' | cut -d' ' -f2) $(jq -c '{content: .choices[0].message.content, prompt_tokens: .usage.prompt_tokens, completion_tokens: .usage.completion_tokens}' body.json)"
done
openrouter/moonshotai/kimi-k3 -> 200 cost=0.0008314248 call_id=46521e32-1695-4b64-ad14-7e45309beb14 {"content":"pong","prompt_tokens":130,"completion_tokens":83}
openrouter/qwen/qwen3.8-max-0902 -> 200 cost=0.000316 call_id=02e4d3da-cab5-4547-892b-5f7c223ea8f7 {"content":"pong","prompt_tokens":68,"completion_tokens":30}
gpt-5.4-pro -> 200 cost=0.00687 call_id=8154ba27-4432-4773-9a9b-822ccf1b83f8 {"content":"pong","prompt_tokens":13,"completion_tokens":36}

Live spend on /v1/responses

  1. Same three rows through the Responses API
for m in openrouter/moonshotai/kimi-k3 openrouter/qwen/qwen3.8-max-0902 gpt-5.4-pro; do
  code=$(curl -s -o body.json -D headers.txt -w '%{http_code}' $B/v1/responses -H "$H" -H "Content-Type: application/json" -d '{"model": "'$m'", "input": "Reply with the single word: pong", "max_output_tokens": 128}')
  echo "$m -> $code cost=$(grep -i '^x-litellm-response-cost:' headers.txt | tr -d '\r' | cut -d' ' -f2) call_id=$(grep -i '^x-litellm-call-id:' headers.txt | tr -d '\r' | cut -d' ' -f2) $(jq -c '{text: [.output[]? | select(.type=="message") | .content[0].text] | first, input_tokens: .usage.input_tokens, output_tokens: .usage.output_tokens}' body.json)"
done
openrouter/moonshotai/kimi-k3 -> 200 cost=0.0007962 call_id=50ea6493-fb2f-4573-b864-7f7be301837b {"text":"pong","input_tokens":130,"output_tokens":44}
openrouter/qwen/qwen3.8-max-0902 -> 200 cost= call_id=a0505a7c-6495-4948-a425-1374c7b7fa89 {"text":"pong","input_tokens":68,"output_tokens":30}
gpt-5.4-pro -> 200 cost=0.00363 call_id=a09edadc-b87a-4b5a-b901-26aa06253516 {"text":"pong","input_tokens":13,"output_tokens":18}

Live spend on /v1/messages

  1. Same three rows through the Messages API
for m in openrouter/moonshotai/kimi-k3 openrouter/qwen/qwen3.8-max-0902 gpt-5.4-pro; do
  code=$(curl -s -o body.json -D headers.txt -w '%{http_code}' $B/v1/messages -H "$H" -H "Content-Type: application/json" -d '{"model": "'$m'", "max_tokens": 128, "messages": [{"role": "user", "content": "Reply with the single word: pong"}]}')
  echo "$m -> $code cost=$(grep -i '^x-litellm-response-cost:' headers.txt | tr -d '\r' | cut -d' ' -f2) call_id=$(grep -i '^x-litellm-call-id:' headers.txt | tr -d '\r' | cut -d' ' -f2) $(jq -c '{text: [.content[]? | select(.type=="text") | .text] | first, input_tokens: .usage.input_tokens, output_tokens: .usage.output_tokens}' body.json)"
done
openrouter/moonshotai/kimi-k3 -> 200 cost=0.0006012000000000001 call_id=36cd86e1-411c-4925-8d36-a403ac7d894c {"text":"pong","input_tokens":36,"output_tokens":31}
openrouter/qwen/qwen3.8-max-0902 -> 200 cost= call_id=c6bc5db7-0618-4b57-89fa-57b7bc5d6e43 {"text":"pong","input_tokens":68,"output_tokens":33}
gpt-5.4-pro -> 200 cost=0.0036300000000000004 call_id=ef7fc64f-71dc-4542-99e0-f272317a3132 {"text":"pong","input_tokens":13,"output_tokens":18}

Spend rows on /spend/logs

  1. The nine rows above after the batch write (spend rows carry the provider's request id, shortened here to 24 characters)
curl -s "$B/spend/logs" -H "$H" | jq -c '[.[] | select(.model|test("kimi|qwen|gpt-5.4-pro"))] | sort_by(.startTime) | .[] | {startTime, request_id: .request_id[:24], model, call_type, spend, prompt_tokens, completion_tokens}'
{"startTime":"2026-09-11T21:16:57.732000Z","request_id":"gen-1789161417-OCMVg5gqf","model":"openrouter/moonshotai/kimi-k3","call_type":"acompletion","spend":0.0008314248,"prompt_tokens":130,"completion_tokens":83}
{"startTime":"2026-09-11T21:16:59.695000Z","request_id":"gen-1789161419-VkT4LqZOc","model":"openrouter/qwen/qwen3.8-max-0902","call_type":"acompletion","spend":0.000316,"prompt_tokens":68,"completion_tokens":30}
{"startTime":"2026-09-11T21:17:01.901000Z","request_id":"resp_bGl0ZWxsbTpjdXN0b21","model":"gpt-5.4-pro","call_type":"responses","spend":0.00687,"prompt_tokens":13,"completion_tokens":36}
{"startTime":"2026-09-11T21:17:28.979000Z","request_id":"resp_1eq5yvtuKO-cAIVOzDE","model":"openrouter/moonshotai/kimi-k3","call_type":"aresponses","spend":0.0007962,"prompt_tokens":130,"completion_tokens":44}
{"startTime":"2026-09-11T21:17:31.199000Z","request_id":"resp_piPLJLuAfRUnCz_MNOW","model":"openrouter/qwen/qwen3.8-max-0902","call_type":"aresponses","spend":0.0,"prompt_tokens":68,"completion_tokens":30}
{"startTime":"2026-09-11T21:17:32.874000Z","request_id":"resp_cjpYFlhvhnWpjZbaxkj","model":"gpt-5.4-pro","call_type":"aresponses","spend":0.00363,"prompt_tokens":13,"completion_tokens":18}
{"startTime":"2026-09-11T21:17:59.505000Z","request_id":"gen-1789161479-fMG9yOZ82","model":"openrouter/moonshotai/kimi-k3","call_type":"anthropic_messages","spend":0.0003631128,"prompt_tokens":130,"completion_tokens":31}
{"startTime":"2026-09-11T21:18:00.474000Z","request_id":"gen-1789161480-z6xavLWa0","model":"openrouter/qwen/qwen3.8-max-0902","call_type":"anthropic_messages","spend":0.000334,"prompt_tokens":68,"completion_tokens":33}
{"startTime":"2026-09-11T21:18:02.467000Z","request_id":"resp_bGl0ZWxsbTpjdXN0b21","model":"gpt-5.4-pro","call_type":"anthropic_messages","spend":0.00363,"prompt_tokens":13,"completion_tokens":18}

Bedrock reasoning ladder

  1. The advertised ladder per Bedrock group
curl -s $B/model_group/info -H "$H" | jq -c '.data[] | select(.model_group|test("openai\\.")) | {model_group, supported_reasoning_efforts}' | sort
{"model_group":"bedrock_mantle/openai.gpt-5.4","supported_reasoning_efforts":null}
{"model_group":"bedrock_mantle/openai.gpt-5.5","supported_reasoning_efforts":null}
{"model_group":"bedrock_mantle/openai.gpt-5.6-luna","supported_reasoning_efforts":null}
{"model_group":"bedrock_mantle/openai.gpt-5.6-sol","supported_reasoning_efforts":null}
{"model_group":"bedrock_mantle/openai.gpt-5.6-terra","supported_reasoning_efforts":null}
{"model_group":"bedrock_mantle/openai.gpt-6-astra","supported_reasoning_efforts":null}
{"model_group":"global.openai.gpt-5.6-luna","supported_reasoning_efforts":null}
{"model_group":"global.openai.gpt-5.6-sol","supported_reasoning_efforts":null}
{"model_group":"global.openai.gpt-5.6-terra","supported_reasoning_efforts":null}
{"model_group":"global.openai.gpt-6-astra","supported_reasoning_efforts":null}
{"model_group":"us.openai.gpt-5.6-luna","supported_reasoning_efforts":null}
{"model_group":"us.openai.gpt-5.6-sol","supported_reasoning_efforts":null}
{"model_group":"us.openai.gpt-5.6-terra","supported_reasoning_efforts":null}
{"model_group":"us.openai.gpt-6-astra","supported_reasoning_efforts":null}
  1. What Bedrock accepts, one request per row and effort level, status per cell
for row in bedrock_mantle/openai.gpt-5.4 bedrock_mantle/openai.gpt-5.5 bedrock_mantle/openai.gpt-5.6-luna bedrock_mantle/openai.gpt-5.6-sol bedrock_mantle/openai.gpt-5.6-terra bedrock_mantle/openai.gpt-6-astra us.openai.gpt-5.6-luna us.openai.gpt-5.6-sol us.openai.gpt-5.6-terra us.openai.gpt-6-astra global.openai.gpt-5.6-luna global.openai.gpt-5.6-sol global.openai.gpt-5.6-terra global.openai.gpt-6-astra; do
  line="| $row |"
  for effort in none minimal low xhigh max; do
    code=$(curl -s -o /dev/null -w '%{http_code}' $B/v1/chat/completions -H "$H" -H "Content-Type: application/json" -d '{"model": "'$row'", "messages": [{"role": "user", "content": "Reply with the single word: pong"}], "max_completion_tokens": 64, "reasoning_effort": "'$effort'"}')
    line="$line $code |"
  done
  echo "$line"
done
row none minimal low xhigh max
bedrock_mantle/openai.gpt-5.4 200 400 200 200 400
bedrock_mantle/openai.gpt-5.5 200 400 200 200 400
bedrock_mantle/openai.gpt-5.6-luna 200 400 200 200 200
bedrock_mantle/openai.gpt-5.6-sol 200 400 200 200 200
bedrock_mantle/openai.gpt-5.6-terra 200 400 200 200 200
bedrock_mantle/openai.gpt-6-astra 400 400 200 200 200
us.openai.gpt-5.6-luna 200 400 200 200 200
us.openai.gpt-5.6-sol 200 400 200 200 200
us.openai.gpt-5.6-terra 200 400 200 200 200
us.openai.gpt-6-astra 400 400 200 200 200
global.openai.gpt-5.6-luna 200 400 200 200 200
global.openai.gpt-5.6-sol 200 400 200 200 200
global.openai.gpt-5.6-terra 200 400 200 200 200
global.openai.gpt-6-astra 400 400 200 200 200

Logs page

  1. Open http://127.0.0.1:31655/ui/?page=logs and log in as admin with the master key
  2. The 14:17:31 resp_piPLJLuA... row for openrouter/qwen/qwen3.8-max-0902 (98 tokens, the /v1/responses call above) shows Cost -, while the chat and messages rows next to it carry the cost OpenRouter reported

pr40740-71f45683d7-qa40740-before-logs-page.png

After (71f4568)

Registry costs on /model/info

  1. Read the seven rows the PR adds or corrects
curl -s $B/model/info -H "$H" | jq -c '.data[] | select(.model_name|IN("vertex_ai/mistral-small-2503","together_ai/moonshotai/Kimi-K2.6","cerebras/qwen-3.8-27b","inception/mercury-2.5","gpt-5.4-pro","openrouter/moonshotai/kimi-k3","openrouter/qwen/qwen3.8-max-0902")) | {model_name, input_cost_per_token: .model_info.input_cost_per_token, output_cost_per_token: .model_info.output_cost_per_token, cache_read_input_token_cost: .model_info.cache_read_input_token_cost, max_input_tokens: .model_info.max_input_tokens, max_output_tokens: .model_info.max_output_tokens}'
{"model_name":"vertex_ai/mistral-small-2503","input_cost_per_token":1E-7,"output_cost_per_token":3E-7,"cache_read_input_token_cost":null,"max_input_tokens":128000,"max_output_tokens":128000}
{"model_name":"together_ai/moonshotai/Kimi-K2.6","input_cost_per_token":0.0000012,"output_cost_per_token":0.0000045,"cache_read_input_token_cost":2E-7,"max_input_tokens":262144,"max_output_tokens":null}
{"model_name":"cerebras/qwen-3.8-27b","input_cost_per_token":9.9E-7,"output_cost_per_token":0.00000149,"cache_read_input_token_cost":null,"max_input_tokens":65536,"max_output_tokens":32768}
{"model_name":"inception/mercury-2.5","input_cost_per_token":2E-7,"output_cost_per_token":7.5E-7,"cache_read_input_token_cost":null,"max_input_tokens":260000,"max_output_tokens":65536}
{"model_name":"gpt-5.4-pro","input_cost_per_token":0.00003,"output_cost_per_token":0.00018,"cache_read_input_token_cost":null,"max_input_tokens":1050000,"max_output_tokens":128000}
{"model_name":"openrouter/moonshotai/kimi-k3","input_cost_per_token":0.0000021,"output_cost_per_token":0.00001053,"cache_read_input_token_cost":2.35E-7,"max_input_tokens":1048576,"max_output_tokens":943718}
{"model_name":"openrouter/qwen/qwen3.8-max-0902","input_cost_per_token":0.000002,"output_cost_per_token":0.000006,"cache_read_input_token_cost":2.5E-7,"max_input_tokens":1000000,"max_output_tokens":131072}

Live spend on /v1/chat/completions

  1. One request per row, printing the status, the x-litellm-response-cost header and the usage
for m in openrouter/moonshotai/kimi-k3 openrouter/qwen/qwen3.8-max-0902 gpt-5.4-pro; do
  code=$(curl -s -o body.json -D headers.txt -w '%{http_code}' $B/v1/chat/completions -H "$H" -H "Content-Type: application/json" -d '{"model": "'$m'", "messages": [{"role": "user", "content": "Reply with the single word: pong"}], "max_tokens": 128}')
  echo "$m -> $code cost=$(grep -i '^x-litellm-response-cost:' headers.txt | tr -d '\r' | cut -d' ' -f2) call_id=$(grep -i '^x-litellm-call-id:' headers.txt | tr -d '\r' | cut -d' ' -f2) $(jq -c '{content: .choices[0].message.content, prompt_tokens: .usage.prompt_tokens, completion_tokens: .usage.completion_tokens}' body.json)"
done
openrouter/moonshotai/kimi-k3 -> 200 cost=0.0009304908 call_id=a21e3d49-bc81-4df1-a521-832e86e0ce2b {"content":"pong","prompt_tokens":130,"completion_tokens":94}
openrouter/qwen/qwen3.8-max-0902 -> 200 cost=0.000316 call_id=785d2653-6788-4899-b938-8db2cc12d2b9 {"content":"pong","prompt_tokens":68,"completion_tokens":30}
gpt-5.4-pro -> 200 cost=0.00507 call_id=9fe3fd61-d2c1-4ed2-b484-79fb668107f0 {"content":"pong","prompt_tokens":13,"completion_tokens":26}

Live spend on /v1/responses

  1. Same three rows through the Responses API
for m in openrouter/moonshotai/kimi-k3 openrouter/qwen/qwen3.8-max-0902 gpt-5.4-pro; do
  code=$(curl -s -o body.json -D headers.txt -w '%{http_code}' $B/v1/responses -H "$H" -H "Content-Type: application/json" -d '{"model": "'$m'", "input": "Reply with the single word: pong", "max_output_tokens": 128}')
  echo "$m -> $code cost=$(grep -i '^x-litellm-response-cost:' headers.txt | tr -d '\r' | cut -d' ' -f2) call_id=$(grep -i '^x-litellm-call-id:' headers.txt | tr -d '\r' | cut -d' ' -f2) $(jq -c '{text: [.output[]? | select(.type=="message") | .content[0].text] | first, input_tokens: .usage.input_tokens, output_tokens: .usage.output_tokens}' body.json)"
done
openrouter/moonshotai/kimi-k3 -> 200 cost=0.00081373 call_id=d008f36a-e15c-427f-af53-b12a1d6d7d42 {"text":"pong","input_tokens":130,"output_tokens":68}
openrouter/qwen/qwen3.8-max-0902 -> 200 cost=0.00031 call_id=d53da914-3bb0-462e-a032-37a35c76882d {"text":"pong","input_tokens":68,"output_tokens":29}
gpt-5.4-pro -> 200 cost=0.00489 call_id=4cb37dfa-d22f-4f4d-ada8-91f713fd6e0a {"text":"pong","input_tokens":13,"output_tokens":25}

Live spend on /v1/messages

  1. Same three rows through the Messages API
for m in openrouter/moonshotai/kimi-k3 openrouter/qwen/qwen3.8-max-0902 gpt-5.4-pro; do
  code=$(curl -s -o body.json -D headers.txt -w '%{http_code}' $B/v1/messages -H "$H" -H "Content-Type: application/json" -d '{"model": "'$m'", "max_tokens": 128, "messages": [{"role": "user", "content": "Reply with the single word: pong"}]}')
  echo "$m -> $code cost=$(grep -i '^x-litellm-response-cost:' headers.txt | tr -d '\r' | cut -d' ' -f2) call_id=$(grep -i '^x-litellm-call-id:' headers.txt | tr -d '\r' | cut -d' ' -f2) $(jq -c '{text: [.content[]? | select(.type=="text") | .text] | first, input_tokens: .usage.input_tokens, output_tokens: .usage.output_tokens}' body.json)"
done
openrouter/moonshotai/kimi-k3 -> 200 cost=0.0002767 call_id=5491ad20-f023-48da-b76e-8f359582e19b {"text":"pong","input_tokens":36,"output_tokens":17}
openrouter/qwen/qwen3.8-max-0902 -> 200 cost=0.000316 call_id=50df7e4a-80e7-43eb-b710-39072cac8281 {"text":"pong","input_tokens":68,"output_tokens":30}
gpt-5.4-pro -> 200 cost=0.00579 call_id=6ec23072-2b6a-4f19-8942-8177d988a4df {"text":"pong","input_tokens":13,"output_tokens":30}

Spend rows on /spend/logs

  1. The nine rows above after the batch write (spend rows carry the provider's request id, shortened here to 24 characters)
curl -s "$B/spend/logs" -H "$H" | jq -c '[.[] | select(.model|test("kimi|qwen|gpt-5.4-pro"))] | sort_by(.startTime) | .[] | {startTime, request_id: .request_id[:24], model, call_type, spend, prompt_tokens, completion_tokens}'
{"startTime":"2026-09-11T21:16:57.733000Z","request_id":"gen-1789161417-Ao4W4KDgd","model":"openrouter/moonshotai/kimi-k3","call_type":"acompletion","spend":0.0009304908,"prompt_tokens":130,"completion_tokens":94}
{"startTime":"2026-09-11T21:16:59.926000Z","request_id":"gen-1789161419-NaAYhqiAy","model":"openrouter/qwen/qwen3.8-max-0902","call_type":"acompletion","spend":0.000316,"prompt_tokens":68,"completion_tokens":30}
{"startTime":"2026-09-11T21:17:02.055000Z","request_id":"resp_bGl0ZWxsbTpjdXN0b21","model":"gpt-5.4-pro","call_type":"responses","spend":0.00507,"prompt_tokens":13,"completion_tokens":26}
{"startTime":"2026-09-11T21:17:30.760000Z","request_id":"resp_mAzzThnyQpqXV01wJ9q","model":"openrouter/moonshotai/kimi-k3","call_type":"aresponses","spend":0.00081373,"prompt_tokens":130,"completion_tokens":68}
{"startTime":"2026-09-11T21:17:32.491000Z","request_id":"resp_asuKAlIC_UFF464S_ui","model":"openrouter/qwen/qwen3.8-max-0902","call_type":"aresponses","spend":0.00031,"prompt_tokens":68,"completion_tokens":29}
{"startTime":"2026-09-11T21:17:34.639000Z","request_id":"resp_pGm7WCd8e-mZbXBXIcE","model":"gpt-5.4-pro","call_type":"aresponses","spend":0.00489,"prompt_tokens":13,"completion_tokens":25}
{"startTime":"2026-09-11T21:18:00.974000Z","request_id":"gen-1789161481-G21GjI9ph","model":"openrouter/moonshotai/kimi-k3","call_type":"anthropic_messages","spend":0.0002370288,"prompt_tokens":130,"completion_tokens":17}
{"startTime":"2026-09-11T21:18:01.872000Z","request_id":"gen-1789161481-s7jM6mJM6","model":"openrouter/qwen/qwen3.8-max-0902","call_type":"anthropic_messages","spend":0.000316,"prompt_tokens":68,"completion_tokens":30}
{"startTime":"2026-09-11T21:18:04.487000Z","request_id":"resp_bGl0ZWxsbTpjdXN0b21","model":"gpt-5.4-pro","call_type":"anthropic_messages","spend":0.00579,"prompt_tokens":13,"completion_tokens":30}

Bedrock reasoning ladder

  1. The advertised ladder per Bedrock group
curl -s $B/model_group/info -H "$H" | jq -c '.data[] | select(.model_group|test("openai\\.")) | {model_group, supported_reasoning_efforts}' | sort
{"model_group":"bedrock_mantle/openai.gpt-5.4","supported_reasoning_efforts":["none","low","medium","high","xhigh"]}
{"model_group":"bedrock_mantle/openai.gpt-5.5","supported_reasoning_efforts":["none","low","medium","high","xhigh"]}
{"model_group":"bedrock_mantle/openai.gpt-5.6-luna","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"bedrock_mantle/openai.gpt-5.6-sol","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"bedrock_mantle/openai.gpt-5.6-terra","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"bedrock_mantle/openai.gpt-6-astra","supported_reasoning_efforts":["low","medium","high","xhigh","max"]}
{"model_group":"global.openai.gpt-5.6-luna","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"global.openai.gpt-5.6-sol","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"global.openai.gpt-5.6-terra","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"global.openai.gpt-6-astra","supported_reasoning_efforts":["low","medium","high","xhigh","max"]}
{"model_group":"us.openai.gpt-5.6-luna","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"us.openai.gpt-5.6-sol","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"us.openai.gpt-5.6-terra","supported_reasoning_efforts":["none","low","medium","high","xhigh","max"]}
{"model_group":"us.openai.gpt-6-astra","supported_reasoning_efforts":["low","medium","high","xhigh","max"]}
  1. What Bedrock accepts, one request per row and effort level, status per cell
for row in bedrock_mantle/openai.gpt-5.4 bedrock_mantle/openai.gpt-5.5 bedrock_mantle/openai.gpt-5.6-luna bedrock_mantle/openai.gpt-5.6-sol bedrock_mantle/openai.gpt-5.6-terra bedrock_mantle/openai.gpt-6-astra us.openai.gpt-5.6-luna us.openai.gpt-5.6-sol us.openai.gpt-5.6-terra us.openai.gpt-6-astra global.openai.gpt-5.6-luna global.openai.gpt-5.6-sol global.openai.gpt-5.6-terra global.openai.gpt-6-astra; do
  line="| $row |"
  for effort in none minimal low xhigh max; do
    code=$(curl -s -o /dev/null -w '%{http_code}' $B/v1/chat/completions -H "$H" -H "Content-Type: application/json" -d '{"model": "'$row'", "messages": [{"role": "user", "content": "Reply with the single word: pong"}], "max_completion_tokens": 64, "reasoning_effort": "'$effort'"}')
    line="$line $code |"
  done
  echo "$line"
done
row none minimal low xhigh max
bedrock_mantle/openai.gpt-5.4 200 400 200 200 400
bedrock_mantle/openai.gpt-5.5 200 400 200 200 400
bedrock_mantle/openai.gpt-5.6-luna 200 400 200 200 200
bedrock_mantle/openai.gpt-5.6-sol 200 400 200 200 200
bedrock_mantle/openai.gpt-5.6-terra 200 400 200 200 200
bedrock_mantle/openai.gpt-6-astra 400 400 200 200 200
us.openai.gpt-5.6-luna 200 400 200 200 200
us.openai.gpt-5.6-sol 200 400 200 200 200
us.openai.gpt-5.6-terra 200 400 200 200 200
us.openai.gpt-6-astra 400 400 200 200 200
global.openai.gpt-5.6-luna 200 400 200 200 200
global.openai.gpt-5.6-sol 200 400 200 200 200
global.openai.gpt-5.6-terra 200 400 200 200 200
global.openai.gpt-6-astra 400 400 200 200 200

Logs page

  1. Open http://127.0.0.1:57922/ui/?page=logs and log in as admin with the master key
  2. Click Filters, set Status to Success and click Apply Filters. The browser carried the base leg's login cookie to this port first, and those 25 rejected page loads sit in the log as failures with no model, so the filter hides them
  3. The 14:17:32 resp_asuKAlIC... row for openrouter/qwen/qwen3.8-max-0902 (97 tokens, the /v1/responses call above) shows $0.000310

pr40740-71f45683d7-qa40740-after-logs-page.png

Observations from the run:

  • Chat and Messages log OpenRouter's reported cost on both legs
  • Base /v1/responses logs $0 spend for the missing row
  • Bedrock accepts the same ladder on both legs; the PR fixes the advertisement
  • Vertex, Cerebras, Inception rows checked on /model/info only
  • Together rows checked on /model/info only, serverless access missing
  • kimi-k3 top-provider rate on OpenRouter moved after capture
  • max_output_tokens drift on nine OpenRouter rows predates this PR

Type

🆕 New Feature
🐛 Bug Fix

Caveats (if any)

Low

  • GovCloud and gpt-5.6-cyber Bedrock rows keep unmeasured ladders with no max, since our account cannot call them
  • Together rows carry no capability flags because the model API publishes none
  • openrouter/deepseek/deepseek-v4.1-flash records the base rate, not OpenRouter's time-of-day overrides: the registry has no time-of-day price field, so modeling them is a schema change, not a row edit
  • openrouter/moonshotai/kimi-k3 records the top-provider rate at capture ($2.10 / $10.53); the models API read $1.7955 / $9.006 later the same day. Chat and Messages log OpenRouter's billed cost regardless, so only /v1/responses and /model/info read the row. Left as is: re-snapshotting chases a value that floats by the hour
  • The Cerebras, Inception, Vertex Mistral and Together rows are proven on /model/info only: no Cerebras or Inception key, the Vertex project lacks Mistral access, and the Together account serves these models on dedicated endpoints only

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Link to Devin session: https://app.devin.ai/sessions/71decefd2273494d8c905706e17994ea
Open in Devin Desktop: https://app.devin.ai/desktop/session/71decefd2273494d8c905706e17994ea?variant=devin
Requested by: @mateo-berri


Note

Medium Risk
Changes affect spend calculation and /model_group/info reasoning options across many deployments; incorrect registry values would misbill or hide valid effort levels, though runtime routing logic is unchanged.

Overview
Updates model_prices_and_context_window.json (and backup) so LiteLLM’s registry matches published provider pricing and advertises the reasoning levels Bedrock actually accepts.

Bedrock-hosted OpenAI GPT rows gain supports_xhigh_reasoning_effort (and supports_max_reasoning_effort on gpt-5.6 luna/sol/terra and gpt-6-astra where measured), with supports_minimal_reasoning_effort: false broadly and supports_none_reasoning_effort: false on gpt-6-astra. New schema tests pin each row’s resolved ladder via resolve_supported_reasoning_efforts.

Pricing and metadata fixes include removing unpublished cache_read_input_token_cost from gpt-5.4-pro / gpt-5.5-pro dated variants, correcting Vertex Mistral Small (10× overcharge) and gpt-oss-20b-maas, refreshing many OpenRouter rates and cache fields, and filling in Together AI costs for previously $0 rows plus 13 new serverless models.

New model entries: cerebras/qwen-3.8-27b, inception/mercury-2.5, and numerous OpenRouter variants (e.g. deepseek-v4.1-flash, gpt-5.6-*-pro, gpt-chat-latest). Tests cover Cerebras/Inception cost_per_token / limits and the gpt-5.5-pro cache assertion change.

Reviewed by Cursor Bugbot for commit 71f4568. Bugbot is set up for automated code reviews on this repo. Configure here.

  • 71f4568 passes /live-pr-risk: changed symbols are registry rows only; dependents (/model/info, /model_group/info, cost on all three unified endpoints, the dashboard supported_reasoning_efforts consumers, where max already appears in 100 base rows) A/B'd above with no regression; no legacy suite asserts a changed value, so no run-ci label

…nai gpt rows

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from a team September 11, 2026 15:38
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@greptile-apps

greptile-apps Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Updates LiteLLM’s model registry and corresponding tests to align model pricing, capabilities, context limits, and Bedrock reasoning-effort metadata with provider behavior.

  • Adds Cerebras, Inception, Together AI, and OpenRouter model entries.
  • Corrects Vertex AI, OpenRouter, Together AI, and OpenAI pricing metadata.
  • Advertises measured Bedrock reasoning ladders, including xhigh and max where supported.
  • Adds or updates regression tests for model costs, model discovery, and reasoning-effort resolution.

Confidence Score: 5/5

The PR appears safe to merge; the registry changes and revised reasoning-effort tests are internally consistent, with no outstanding actionable findings.

The changed Bedrock flags resolve to the intended advertised ladders, the registry copies remain synchronized, and no new correctness or rule violations were established. The earlier untyped-fixture thread was manually resolved without explanation and therefore does not remain outstanding; the plain-dict concern was explicitly withdrawn after confirming the local convention.

Important Files Changed

Filename Overview
model_prices_and_context_window.json Updates the primary registry with corrected prices, new model rows, and measured Bedrock reasoning-effort flags.
litellm/model_prices_and_context_window_backup.json Keeps the backup registry synchronized with the primary model registry.
tests/test_litellm/test_model_prices_schema.py Pins the measured Bedrock reasoning ladders and broadly verifies xhigh support across matching Bedrock GPT rows.
tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py Updates cost assertions to reflect removal of unpublished cached-input prices.
tests/test_litellm/llms/cerebras/test_cerebras_chat_transformation.py Verifies cost calculation for the newly registered Cerebras model.
tests/test_litellm/llms/inception/test_inception_chat_transformation.py Verifies Inception model discovery, transformation behavior, and Mercury 2.5 cost calculation.

Reviews (5): Last reviewed commit: "fix(cost-map): keep minimal withheld on ..." | Re-trigger Greptile

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@codspeed

codspeed Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_bedrock_openai_xhigh_flags (71f4568) with litellm_internal_staging (09b6948)

Open in CodSpeed

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread model_prices_and_context_window.json Resolved
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…pt rows

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@CLAassistant

CLAassistant commented Sep 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ mateo-berri
❌ devin-ai-integration[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

mateo-berri and others added 2 commits September 11, 2026 19:02
…ogether/openrouter pricing

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title fix(cost-map): advertise xhigh reasoning effort on bedrock-hosted openai gpt rows fix(cost-map): bedrock xhigh flags, registry audit fixes for vertex/openai/together/openrouter, absorb cerebras and inception rows Sep 11, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

…n registry tests

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

@greptileai

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Live calls to Bedrock Mantle and Converse on 2026-09-11: the gpt-5.6 luna, sol, and terra rows and gpt-6-astra return 200 on reasoning_effort=max, gpt-6-astra returns 400 on none, and Mantle gpt-5.4 and gpt-5.5 return 200 on minimal. The commercial Bedrock rows now carry exactly those flags, and the schema test asserts the measured ladder per row instead of a blanket mirror of the direct OpenAI rows
LiteLLM sends the Bedrock Mantle GPT rows through Bedrock's Responses endpoint, which refuses minimal on gpt-5.4 and gpt-5.5 like every other Bedrock GPT row. The earlier commit measured the raw chat endpoint, which accepts it, and dropped the flag by mistake. The ladder test now matches what the proxy path returns
@mateo-berri mateo-berri changed the title fix(cost-map): bedrock xhigh flags, registry audit fixes for vertex/openai/together/openrouter, absorb cerebras and inception rows fix(cost-map): bedrock reasoning effort flags, registry audit fixes for vertex/openai/together/openrouter, absorb cerebras and inception rows Sep 11, 2026
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 71f4568. Configure here.

@mateo-berri mateo-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mateo-berri
mateo-berri merged commit f90b5ca into litellm_internal_staging Sep 11, 2026
117 of 119 checks passed
@mateo-berri
mateo-berri deleted the litellm_bedrock_openai_xhigh_flags branch September 11, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants