Repository navigation
feat(model_prices): add missing OpenAI, Together, Fireworks and Bedrock registry entries - #46742
Conversation
…nd Bedrock registry entries Add the requested model registry entries. Co-authored-by: Azusa <m3171470760@gmail.com> Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> 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)".
|
|
Automatic reviews are disabled for this repository. |
|
|
PR overviewAll previously flagged issues have been addressed. No open security concerns remain on this pull request. Security reviewNo open security issues remain on this pull request. Fixed/addressed: 1 · PR risk: 0/10 |
Merging this PR will not alter performance
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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 2deb4e3. Configure here.
TLDR
Problem this solves:
How it solves it:
User Flow
Before: a proxy admin adds a newly released model and spend tracking can't price it
together_ai/meta-models/Muse-Spark-Open-816B-A42Btoconfig.yamland restart the proxyAfter: the same model is priced from the registry
Changes by provider
OpenAI
gpt-5.5-cyber-previewis added with the same pricing asgpt-5.5-cyber(12.50 input, 1.25 cached input, 75.00 output per 1M tokens), taken from #46615. OpenAI's Daybreak help article tells API users to "send a direct Responses API request with the model gpt-5.5-cyber-preview", and the price comes from thegpt-5.5-cyberrow on the pricing pageSources: https://developers.openai.com/api/docs/pricing and https://help.openai.com/en/articles/20001259-openai-daybreak-common-issues-and-troubleshooting
Cohere
Nothing is added for Cohere.
command-a-reasoning-08-2025,command-a-vision-07-2025,command-a-translate-08-2025,north-mini-code-1-0,north-small-translate-09-2026,c4ai-aya-vision-32bandnorth-large-01-2026(from #46589) are live per https://docs.cohere.com/docs/models and the Cohere models API, but https://cohere.com/pricing publishes no per-token price for them. An entry without a price makes litellm log $0 spend instead of raising "This model isn't mapped yet", so unpriced models are left out of the registryTogether AI
together_ai/meta-models/Muse-Spark-Open-816B-A42Bis added at 1.25 input, 0.15 cached input and 4.25 output per 1M tokens, with a 1048576 context window and function calling plus structured outputs. The serverless models table, the pricing page andGET https://api.together.xyz/v1/modelsall agree on these valuesSources: https://docs.together.ai/docs/serverless-models and https://www.together.ai/pricing
Fireworks AI
fireworks_ai/accounts/fireworks/models/muse-spark-openis added at 1.25 input, 0.15 cached input and 4.25 output per 1M tokens. The model page is JS rendered, so the price was read from the rendered page and checked against r.jina.ai. The 1048576 context length, image input and tool support come from the Fireworks models APISource: https://fireworks.ai/models/fireworks/muse-spark-open
AWS Bedrock
Adds the 13
us.stability.*system-defined inference profiles that Bedrock lists in us-east-1 and us-west-2 for the Stability image edit models (upscale, outpaint, inpaint, erase, recolor, replace, remove background, sketch, structure, style guide, style transfer). Each one copies its basestability.*row, and those per-image prices match the Bedrock pricing page. AWS says geographic cross-Region inference uses standard pricing with no added routing cost. Cost lookups for these profiles already resolved through the base row, so this only makes the profiles explicit in the registrySources: https://aws.amazon.com/bedrock/pricing/ and https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html
Checked and not changed
together_ai/Qwen/Qwen3.7-Maxstays at 1.50 / 0.30 / 4.50. Together's API and serverless models table say 2.50 / 0.50 / 7.50, while https://www.together.ai/pricing still says 1.50 / 0.30 / 4.50. Since Together's own sources disagree, I'm leaving the value alone until they line up. #46399 tried to move this value and to remove Together models that https://docs.together.ai/docs/deprecations still lists as live until 2026-10-22, so nothing from it was absorbedMistral
codestral-2508and thecodestral-latest/mistral-code-*aliases stay at 128000. The API reports 256000, but the model card at https://docs.mistral.ai/models/model-cards/codestral-25-08 says 128kfireworks_ai/accounts/fireworks/models/qwen3p8-2p4t-a95bis not added. The API marks it serverless, but its model page says "Serverless Not supported" and shows no per-token pricegroq/allam-2-7bis not added. It shows up in the Groq models endpoint, but it is missing from https://console.groq.com/docs/models and from Groq's pricing pageus.amazon.nova-premier-v1:0is not added this run. Its base price could not be read from the JS-rendered https://aws.amazon.com/nova/pricing/ pageluma.ray-v2:0is not added. Bedrock prices it per video by resolution, and there is no per-second field that maps cleanly. Theeu.cohere.embed-v4:0profile is skipped because the EU price was not published in a readable form, and the eu/us Claude 3 Haiku and Sonnet profiles are skipped because the registry has no base rows for those Claude 3 modelsGemini
antigravity-preview-*is a managed agent, not a priced generateContent model. Other Gemini API limit differences (for example 65535 vs 65536 output, and embedding models reporting 1 output token) are API metadata quirks, so I left themcommand-a-plus-05-2026still has 0.0 costs on main because Cohere publishes no price for it. I left it aloneNo
ci_cd/cost_map_pins.jsonexists on main, so there were no pinned flags to check. #46732 (deprecation dates only) and code PRs that touch the JSON in passing were left alonePre-Submission checklist
uv run pytest tests/unit/<your_test_file>.py -vScreenshots / Proof of Fix
Probe script
/tmp/p/probe.pycallslitellm.get_model_info(<model>)withLITELLM_LOCAL_MODEL_COST_MAP=Truefor one new model per providerBefore (7774784)
LITELLM_LOCAL_MODEL_COST_MAP=True python /tmp/p/probe.pyAfter (2deb4e3)
LITELLM_LOCAL_MODEL_COST_MAP=True python /tmp/p/probe.pypython3 ci_cd/check_files_match.pypasses, andtests/unit/test_model_prices_schema.pyplustests/unit/test_model_cost_aliases.pypass (104 passed)Type
🆕 New Feature
Caveats (if any)
Low
us.stability.*rows duplicate pricing that region-prefix stripping already resolvedLink to Devin session: https://app.devin.ai/sessions/c102ac5cccb9464cb1050287fb7ef374
Open in Devin Desktop: https://app.devin.ai/desktop/session/c102ac5cccb9464cb1050287fb7ef374?variant=devin
Note
Low Risk
Data-only updates to the cost map; no runtime routing or auth changes, though incorrect prices would affect reported spend.
Overview
Extends
model_prices_and_context_window.json(and its backup) so LiteLLM can price several provider models that previously triggered “This model isn't mapped yet” during spend lookups.OpenAI: adds
gpt-5.5-cyber-previewwith the same per-token and cached-input rates asgpt-5.5-cyber, including reasoning support.Together AI & Fireworks: adds
together_ai/meta-models/Muse-Spark-Open-816B-A42Bandfireworks_ai/accounts/fireworks/models/muse-spark-openwith aligned token pricing, 1M context (Together), and documented capability flags (function calling, caching/schema on Together; vision on Fireworks).AWS Bedrock: adds 13
us.stability.*inference profile keys for Stability image-edit models, mirroring the existingstability.*per-image costs and attaching AWS pricing source URLs so US cross-region profile IDs are explicit in the registry.Reviewed by Cursor Bugbot for commit 2deb4e3. Bugbot is set up for automated code reviews on this repo. Configure here.