Repository navigation
chore(cost-map): rolling registry audit 2026-11-25, Foundry retirements and duplicate-key cleanup - #53569
chore(cost-map): rolling registry audit 2026-11-25, Foundry retirements and duplicate-key cleanup#53569devin-ai-integration[bot] wants to merge 18 commits into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
PR overviewThe PR updates the model pricing and context-window registry for Foundry retirements and MAI image and code pricing, including new Azure AI GPT model entries. One issue remains open: the new Azure AI GPT entries omit web-search pricing, causing accepted web-search requests to record zero search cost rather than $0.014 per query. This undercounts usage against key and team budgets, but the demonstrated impact is limited to search-fee accounting. No issues have been addressed yet. Open issues (1)
Fixed/addressed: 0 · PR risk: 5/10 Reviews |
[Medium impact] The PR appears safe to merge, with live billing proof explicitly deferred.
|
|
bugbot run |
…_embedding_001_floor_date
Add Azure AI Foundry Decision Data Zone and MAI image prices. Enable native structured output for the verified Vertex Claude models and cite Anthropic's retirement schedule for Claude Platform on AWS. Co-authored-by: asmaa <asmaa@berri.ai> Co-authored-by: ceng-p <christianpetersen98@gmail.com> Co-authored-by: Rick <26716961+Bytechoreographer@users.noreply.github.com> Co-authored-by: Dev Chiniwala <dev.chiniwala@gmail.com> Co-authored-by: fei <204683769+feiiiiii5@users.noreply.github.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
|
|
Vertex turns the structured_outputs partner feature off by default through the constraints/vertexai.allowedPartnerModelFeatures org policy, so sending output_config.format for these rows returns a 400 in projects that have not allowed it, where the tool-based path works today. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Note for any session pushing to this branch. Commit 48fe6da removed Google's structured outputs page lists these models as supported, but it also says the feature is disabled by default by the org policy constraint The six rows now match main, so #53521 and #53478 stay open and #53558 and #53490 are not absorbed here. |
| "azure_ai/eu/Microsoft-Decision-1.1": { | ||
| "input_cost_per_token": 5e-08, | ||
| "litellm_provider": "azure_ai", | ||
| "max_input_tokens": 32768, | ||
| "mode": "decisions", | ||
| "output_cost_per_token": 0.0, | ||
| "source": "https://commandline.microsoft.com/microsoft-decision-model-ga/#pricing" |
There was a problem hiding this comment.
The new Decision and MAI prices lack the live before/after proxy results required by AGENTS.md for billing changes. The supplied Vertex runs cover different models, and unavailable deployments do not verify these prices. Add real Decision and MAI billing results at 48fe6dac8fcbd57e5b2ff3473800206b2b3004e2 before merging.
Context Used: AGENTS.md (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
No live proof is possible right now. None of our three Foundry QA resources has a Microsoft-Decision-1.1 or MAI-Image-2.7 deployment, and this session has no Azure credential that can create one. The four rows were checked against the Azure Retail Prices API, and the Decision rows also against Microsoft's Decision GA pricing page. The rows go to Kerry on those price sources alone, so this thread stays open for him to see.
There was a problem hiding this comment.
The Microsoft Decision Data Zone rates match Microsoft's GA pricing page and Azure Retail Prices, and the MAI rates match Azure Retail Prices. Those sources verify the published rates but not what the proxy bills, since the prior QA run had no matching Foundry deployments. Leaving this open until those deployments can be tested or a maintainer accepts the published-rate evidence.
There was a problem hiding this comment.
I rechecked the Decision Data Zone rates against Microsoft's GA pricing page and Azure Retail Prices, and the MAI image rates against the Azure Retail Prices meters. The local tests verify which rates LiteLLM uses, but they do not prove live proxy billing. The earlier QA run found no matching Decision 1.1 or MAI Image 2.7 deployments in the three available Foundry resources, and the session could not create them. Please leave this open unless a maintainer accepts that gap or we can run the live before/after checks.
There was a problem hiding this comment.
Microsoft's pricing sources verify the published Decision and MAI rates, but they don't verify what the proxy bills end to end. The prior QA run had no matching Foundry deployments, and this run didn't obtain live billing evidence either. Leaving this open until those deployments can be tested or a maintainer accepts the gap.
|
bugbot run |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
bugbot run |
There was a problem hiding this comment.
✅ 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 2aa2b46. Configure here.
…_embedding_001_floor_date
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…_embedding_001_floor_date
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…_embedding_001_floor_date
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…de Haiku 4.5 row Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
| "max_output_tokens": 128000, | ||
| "mode": "chat", | ||
| "output_cost_per_token": 4e-05, | ||
| "output_cost_per_token_above_272k_tokens": 6e-05, |
There was a problem hiding this comment.
Low: Web-search fees are missing from the new GPT rows
Both azure_ai/gpt-6.2-astra and azure_ai/gpt-6.2-sol omit search_context_cost_per_query, so accepted /v1/responses requests executing web_search are assigned zero search cost by StandardBuiltInToolCostTracking, instead of the $0.014 configured on their existing azure/... counterparts. Add the search-pricing block to both entries and their backup copies so these charges count toward key/team budgets.
| "output_cost_per_token_above_272k_tokens": 6e-05, | |
| "output_cost_per_token_above_272k_tokens": 6e-05, | |
| "search_context_cost_per_query": { | |
| "search_context_size_high": 0.014, | |
| "search_context_size_low": 0.014, | |
| "search_context_size_medium": 0.014 | |
| }, |
There was a problem hiding this comment.
Microsoft charges $0.014 per Bing request and says to count tool_usage.web_search.num_requests rather than web_search_call items. A local check shows these two azure_ai rows currently charge zero for it, and that copying the price alone would bill from output items when the counter is absent. So the rate stays out of this PR until the counter is verified on live Foundry responses for both deployments.
…_embedding_001_floor_date
… and add Foundry image retirement dates Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Will this be merged today? |
…_embedding_001_floor_date
…s Rune Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Handwritten 1-3 sentence description
This rolling registry PR adds and corrects model pricing, limits and capability metadata across Azure AI Foundry, Fireworks, Groq, Perplexity, Together, Voyage, Vertex and Bedrock, each value cited to the provider source below.
Details
Link to Devin session: https://app.devin.ai/sessions/df8be73740e74d76967452ac386db1f3
Open in Devin Desktop: https://app.devin.ai/desktop/session/df8be73740e74d76967452ac386db1f3?variant=devin
Requested by: @kerry-berri
TLDR
Problem this solves:
mainleft duplicate Fireworks keys and retiredmax_tokensfields on four Huawei MaaS rows.How it solves it:
max_tokensfields while keeping live-verified pins unchanged.User Flow
Before, a developer recording Microsoft Decision spend could not find the Data Zone rate.
After, the registry lists the Data Zone rate separately from the global rate.
Relevant issues
Fixes #53787
Changes and sources
2026-11-25 audit updates
The Foundry model retirement schedule lists
2027-09-09as the retirement date forgpt-image-2.5-flareandgpt-image-2.5-sunburst. This run addsdeprecation_date2027-09-09anddeprecation_sourcepointing at that schedule toazure_ai/gpt-image-2.5-flareandazure_ai/gpt-image-2.5-sunburst, matching theirazure/counterparts, and extendstest_foundry_retirement_dates_match_scheduleintests/unit/test_model_prices_and_context_window.py.Merging
origin/mainbrought inmain's newerfireworks_ai/accounts/fireworks/models/hy4-flashandfireworks_ai/accounts/fireworks/models/qwen4-maxrows alongside the earlier copies on this branch, which produced duplicate keys. This run removes the earlier duplicate copies somain's rows with priority pricing and reasoning, response schema, and tool choice flags remain, and updatestest_fireworks_serverless_model_resolves_to_its_registry_rowaccordingly.The retired
max_tokensfield is absent from the fourhuawei_maas/*rows (huawei_maas/glm-5.3,huawei_maas/glm-5.2,huawei_maas/deepseek-v4.1-flash-1017,huawei_maas/deepseek-v4.1-flash) sotest_no_row_carries_the_retired_max_tokens_fieldpasses. #54338 merged the same four-line hotfix into the base branch.Azure AI Foundry
This pass absorbs the remaining verified registry changes from #53783. The Azure pricing page lists all four deployments. The Global rates are embedded in the raw table's
data-amountattributes, even though the unrendered cells display$-.azure_ai/gpt-6.2-astraazure_ai/gpt-6.2-solazure_ai/gpt-image-2.5-flare,azure_ai/gpt-image-2.5-sunburstThe Foundry GPT-6.2 model table and reasoning guide document 922,000 input and 128,000 output tokens, text and image input, text output, Chat Completions and Responses, computer use, tools including parallel calls on Responses, streaming, reasoning, structured outputs and no
noneeffort. The OpenAI GPT-6.2 model card states that its long-context rates start above 272K input tokens, consistent with the existing Azure tier boundary and the two Azure pricing bands. The published Azure cache read and write meters establish caching support. The Foundry image generation guide documents image generation and editing with image input for both GPT Image variants.azure_ai/{us,eu,apac}/Microsoft-Decision-1.1azure_ai/MAI-Image-2.7azure_ai/MAI-Image-2.7-FlashQwen3-ASR
Add
openai/Qwen/Qwen3-ASR-1.7Bfor audio transcription, with audio input, text output and the transcription and chat completions endpoints. The official Qwen model card documents these for a self-hosted OpenAI-compatible server. No hosted price or unverified token limit was added.Fireworks
Add
fireworks_ai/accounts/fireworks/models/inkling-2-small. The serverless pricing table lists input, cache-read and output per million tokens at $0.30, $0.03 and $1.00 for Standard and $0.375, $0.0375 and $1.25 for Priority. The model page and authenticated models API document the model ID and approximately 1.04M context tokens, with the API reporting 1,048,576. Both Chat Completions and Completions live probes returned HTTP 200 with a populated choice and token usage, despitesupports_chat: falsein the API catalog. The page and API mark image input and tools unsupported, so no such capabilities were added.Together and Voyage
Point
together_ai/Qwen/Qwen3.8-Flashat the Together pricing table instead of the API. Add the Voyage pricing page torerank-2,rerank-2-lite,rerank-2.5andrerank-2.5-lite. These are citation changes only.Existing Vertex and Claude Platform changes
The rolling branch removes the fixed retirement date for Vertex
gemini-embedding-001, as the Vertex model version table says "no sooner than May 20, 2028." It also corrects the retirement citation forbedrock/claude_platform/claude-sonnet-4-5to the Anthropic deprecation table, without changing the date or replacement.Azure AI Foundry retirements and MAI Code (2026-11-24 run)
The Foundry model retirement schedule now lists 2027-02-03 as the retirement date for
azure_ai/Llama-3.3-70B-Instruct(was 2027-01-31),azure_ai/Llama-4-Maverick-17B-128E-Instruct-FP8(was 2026-11-19) andazure_ai/Llama-4-Scout-17B-16E-Instruct(was 2027-01-31). The same table gives 2027-03-06 for DeepSeek-V4.1-Flash-1017, soazure_ai/deepseek-v4.1-flash-1017gets thatdeprecation_date. All four rows carrydeprecation_sourcepointing at the table.azure_ai/MAI-Code-2-Flashis added as a chat row at $0.05 input, $0.005 cached input and $0.25 output per million tokens, from the global inference meters in Azure Retail Prices. The GitHub Copilot pricing page shows the same promotional rates through May 17, 2027. Token limits and capability flags beyond chat were not verified, so none were added. Regression tests for the retirement dates and the MAI Code billing are intests/unit/test_model_prices_and_context_window.pyandtests/unit/test_cost_calculator.py.The merge from main introduced duplicate retirement keys for
azure_ai/deepseek-v4.1-flash-1017. Keep the effective main values, including its model lifecycle citation, with no change to the date.Bedrock EU Claude Haiku 4.5 lifecycle
eu.anthropic.claude-haiku-4-5-20251001-v1:0losesdeprecation_date2026-10-15 andsuccessor_modeleu.anthropic.claude-haiku-5-5, and its prices and other fields stay as they are. The AWS model card says the model is Active with Model EOL date N/A and EOL no sooner than Oct 16, 2026, and the Bedrock lifecycle page has no Haiku 4.5 entry. Bedrock still returns the EU inference profile as ACTIVE in eu-west-1 and eu-central-1. The base,us.andglobal.Haiku 4.5 rows carry neither field, so the EU row now matches them. #49375 restored this row for its EU prices and noted the past date as a leftover, and this removes only that leftover.2026-11-25 registry audit follow-up
Groq
Add
groq/meta-models/muse-spark-openandgroq/minimaxai/minimax-m2.7as Chat Completions models. The Groq catalog lists context and max completion limits of 131,072/131,072 and 196,608/131,072 respectively. The Muse Spark Open model card shows the ID, reasoning and parallel function calling, while the MiniMax M2.7 model card shows the ID, reasoning and function calling. Groq lists these as enterprise models and says to contact Sales for prices, so neither row sets a price.Perplexity
Add
perplexity/google/gemini-4-neonfor the Responses-based Agent API. The Agent API model table lists $3 input, $0.15 cached input and $15 output per million tokens. Leave context limits and capability flags unset because that table does not publish them for this deployment.Fireworks
The existing
fireworks_ai/accounts/fireworks/models/runerow now names/v1/systemoneand cites the serverless decision pricing table. That table confirms the existing Standard input, cached input and output rates ($0.042, $0.0084 and $0 per million tokens). The System One API reference confirms the exact endpoint and model ID. Keep the existing router ID and its metadata unchanged. The MiMo V2.6 Pro RL and Qwen3.8 Flash Next FP4 cards specifically say serverless is unsupported, so no serverless rates or rows are inferred for them.Audit results and exclusions
No other PR was absorbed in this follow-up. Leave #54437 (fixes #54436) to the deprecation-only workstream. #53484 remains unverifiable. Its GMI catalog API still returns
valid: falsefortencent/hy4-flashand the exact model is absent from the raw pricing page. #52394 backports 84 NIM rows from #50439 to LTS. All 84 model IDs are already present on this branch, and the original change is an ancestor ofmain. #49367, #48732, #48582 and #48098 change request handling using catalog fields. Their transport tests and issues #49366, #48731 and #47884 stay with those PRs. Provider implementation PRs, including #54263, #39907 and #52354, are left alone. #54338 has since merged independently. No OpenRouter, pin or deprecation-only edits were made in this follow-up.The Azure reasoning matrix marks GPT-5.4 Pro Structured Outputs as supported, while
supports_response_schemais false on{azure,azure_ai}/gpt-5.4-proand{azure,azure_ai}/gpt-5.4-pro-2026-03-05. The Foundry model table documents only Responses for the Pro variant and does not list Structured Outputs in its summary. Leave these rows unchanged pending endpoint-specific verification. The Azure Government model and availability table confirms text-only processing forazure/us-gov/o3-miniandazure/us-gov/o3-mini-2025-01-31. Their explicitsupports_vision: falseis not contradicted. The Government table does not establish support for theminimalreasoning effort onazure/us-gov/gpt-5.6-{luna,terra,sol}.Bedrock model cards list Structured Outputs where
supports_native_structured_outputremains false. This field changes request formatting and model-level support alone does not establish support across Invoke, Converse and Messages. Do not toggle it without route-specific calls. The regional tables list GovCloud East and West geo support for Fable 5.2, Haiku 5.5, Opus 5.5 and Sonnet 5.5. The broader cross-check also surfaced the model-level flag mismatch for Fable 5, Fable 5.1, Opus 4.7, Opus 4.8, Opus 5 and Sonnet 5. The Grok 4.6 and Grok 4.7 cards say implicit caching for the runtime. This does not establish support for explicit Converse cache points, so theus.,global.andus-gov.rows keep their current flag.The Azure reasoning parameters table documents
maxon GPT-6 and GPT-5.6 for the Responses API only.supports_max_reasoning_effortis explicitly false onazure_ai/gpt-6-astra,azure/gpt-6-astra,azure/gpt-6-astra-2026-09-03,azure/us/gpt-6-astraandazure/eu/gpt-6-astra. #48098 is already validating route-specific behavior for these rows. A blanket flag change here could change reasoning parameter handling without covering the endpoint restriction.Together's raw pricing rows show Qwen3.7-Max at $2.50/$0.50/$7.50 input/cached/output and Qwen3.8 Flash at $0.15/$0.47 input/output. The pricing page takes precedence over the September 22 changelog, so both stay as they are. Fireworks continues to mark MiniMax M3 text-only despite the two live-verified vision pins. Both pins stay intact.
Nebius prices could not be verified. Raw pricing and Chrome were blocked, the models API returned 401 without a credential, and the Jina pricing view returned a Not Found page. No Nebius pricing was changed.
The explicit-false inventory contains 833 Bedrock and 215 Azure rows. The Bedrock card comparison matched 821 of the 833 rows. The remaining 12 are
bedrock/claude_platform/rows whose endpoint-specific capabilities the model cards did not establish. The Azure comparison used the official model, reasoning, and Government tables. Some partner-model and route-specific claims could not be verified for the exact deployment. None of these unverified values were changed.Absorbed and not changed
tencent/hy4-flashasvalid:false, and the public pricing page did not verify the proposed rates.Pricing and capability disagreements
Together's September 22 changelog listed $1.50/$4.50 for Qwen3.7-Max and $0.09/$0.282 for Qwen3.8-Flash (input/output per million tokens). The October 6 entry reversed those cuts. The current pricing page and models API agree at $2.50/$7.50 and $0.15/$0.47 respectively, so rates stay as they are.
Fireworks' model catalog reports MiniMax M3 as text-only. The pins on
fireworks_ai/minimax-m3andfireworks_ai/accounts/fireworks/models/minimax-m3come from a live image call and remain unchanged.AWS model cards list structured outputs for Claude Fable 5.2, Haiku 5.5, Opus 5.5, and Sonnet 5.5. The base and geo profiles and their available
us-gov.anthropic.*,bedrock/us-gov-east-1/andbedrock/us-gov-west-1/rows include explicitsupports_native_structured_output: false. The flag changes the request and remains false pending live route-specific checks.AWS documents prompt caching for Grok 4.6 and 4.7.
us-gov.xai.grok-4.6andus-gov.xai.grok-4.7have an explicit false and a cache-read rate. The Bedrock request code checks this flag when selecting Converse cache points, so leave it unchanged without a live route check.Caveats (if any)
Medium
Microsoft-Decision-1.1andMAI-Image-2.7could not be verified without live Foundry deployments.Screenshots / Proof of Fix
E2E exception at
c1826d5f322for the registry-only follow-up. On the rebuilt native extension,get_model_inforeturns Decisions mode and/v1/systemonefor Rune. It also resolves both Groq IDs as chat models and the Perplexity ID as a Responses model. The follow-up does not change adapters, rates on existing rows, or pricing formulas. No provider request was sent.LITELLM_LOCAL_MODEL_COST_MAP=True uv run --no-sync pytest -q tests/unit/test_model_prices_and_context_window.py tests/unit/test_model_cost_aliases.py tests/unit/test_fireworks_serverless_model_costs.py tests/unit/test_cost_calculator.pyreported1106 passed.cargo test --manifest-path litellm/rust/Cargo.toml -p litellm-model-catalogpassed 431 tests. Adding--features schema --test schemapassed 28 schema tests, including validation of the checked-in registry.python3 litellm/scripts/ci_cd/check_files_match.pyverified file parity. The duplicate-key check, the cost map guard, andgit diff --checkalso passed.make checkreportedcheck: PASS.