Skip to content

fix(cost_map): price azure_ai/deepseek-v4.1-flash at Direct Global Standard - #43516

Closed
KaiyiQuan wants to merge 1 commit into
BerriAI:mainfrom
KaiyiQuan:fix/43473-azure-deepseek-v41-flash-pricing
Closed

KaiyiQuan wants to merge 1 commit into
BerriAI:mainfrom
KaiyiQuan:fix/43473-azure-deepseek-v41-flash-pricing

Conversation

@KaiyiQuan

Copy link
Copy Markdown
Contributor

Fixes #43473

Problem

azure_ai/deepseek-v4.1-flash (Direct from Azure) was priced with the Fireworks retail meter: $0.375 input / $1.50 output / $0.008 cached per 1M tokens — the same triple as azure_ai/FW-DeepSeek-V4.1-Flash. Microsoft publishes a different Global Standard price for the Direct deployment, so a Direct deployment was tracked 25% high on input and output and a third high on cache reads.

Fix (per Microsoft Foundry blog + Azure Retail Prices API)

Path Input/1M Output/1M Cache/1M
azure_ai/deepseek-v4.1-flash (Direct, Global Standard) $0.30 $1.20 $0.006
azure_ai/FW-DeepSeek-V4.1-Flash (Fireworks on Foundry) $0.375 (retail, unchanged) $1.50 (retail, unchanged) $0.0075 (Fireworks Priority)

Both model_prices_and_context_window.json and the backup copy updated; the two keys no longer share one price.

@KaiyiQuan
KaiyiQuan requested review from a team and a lite review from Copilot September 28, 2026 03:42

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CLAassistant

CLAassistant commented Sep 28, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@greptile-apps

greptile-apps Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Critical risk] Updates pricing data that controls customer billing.

The PR appears safe to merge; no outstanding finding or new actionable issue was identified.

Findings

  1. P1 Muse Spark pricing removed ▶

Summary

The PR corrects Direct Azure DeepSeek V4.1 Flash token prices and the Fireworks cache-read price in both catalogs. Since the previous review, it also restored the Muse Spark entry in both catalogs.

Reviews (2) · Last reviewed commit: "fix(cost_map): price azure_ai/deepseek-v..."

Comment thread model_prices_and_context_window.json Outdated
"supports_tool_choice": true,
"supports_vision": true
},

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.

P1 Muse Spark pricing removed

The Lite autorouter preset still selects muse-spark-1.3. For an Azure AI deployment of that model, removing its price entry from both catalogs makes cost calculation raise an exception instead of pricing its input, output, and cached tokens. Please restore the entry in both catalogs.

…andard (BerriAI#43473)

The Direct from Azure key was priced with the Fireworks retail meter
($0.375/$1.50/$0.008 per 1M). Microsoft publishes a Global Standard price
for the Direct deployment ($0.30/$1.20/$0.006 per 1M). The FW key keeps the
retail input/output but its cache now matches Fireworks Priority ($0.0075/1M).

Both model_prices_and_context_window.json and the backup copy updated.
@KaiyiQuan
KaiyiQuan force-pushed the fix/43473-azure-deepseek-v41-flash-pricing branch from 639f315 to e2d866f Compare September 28, 2026 03:47
@KaiyiQuan

Copy link
Copy Markdown
Contributor Author

@greptile-apps thanks for the review. The Muse Spark entry removal was an accidental inclusion — the two fixes are now split: this PR (e2d866f) touches only the DeepSeek V4.1 Flash pricing (4 numeric fields in both cost maps); the Muse Spark removal lives in its own PR #43517. The Muse Spark price entry is restored here and matches main.

@greptile-apps

greptile-apps Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Thanks for separating the changes. I verified the current PR diff: both price catalogs only adjust the four intended DeepSeek V4.1 Flash pricing values, and the Muse Spark entry is no longer removed. The previous finding is resolved; no further action is needed for this comment.

Tip: You can customize Greptile's behavior for this repo with .greptile/rules.md and .greptile/config.json.

@codspeed

codspeed Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing KaiyiQuan:fix/43473-azure-deepseek-v41-flash-pricing (e2d866f) with main (74cad08)

Open in CodSpeed

@codecov

codecov Bot commented Sep 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@KaiyiQuan

Copy link
Copy Markdown
Contributor Author

@greptile-apps — this finding looks like a cross-PR mixup. The diff of THIS PR (#43516) contains exactly four pricing fields and nothing else:

  • azure_ai/deepseek-v4.1-flash: input 3.75e-07 → 3e-07, output 1.5e-06 → 1.2e-06, cache 8e-09 → 6e-09
  • azure_ai/FW-DeepSeek-V4.1-Flash: cache 8e-09 → 7.5e-09

There is no removal of the azure_ai/muse-spark-1.3 entry in this branch (full diff: https://github.com/BerriAI/litellm/pull/43516.diff). The Muse Spark removal lives in a separate, independent PR (#43517). Could you re-review this PR against its actual diff?

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by the rolling registry audit PR #43566, which carries the Direct Global Standard price for azure_ai/deepseek-v4.1-flash (0.30 / 1.20 / 0.006 per 1M, per the Microsoft Foundry post) with co-author credit. The azure_ai/FW-DeepSeek-V4.1-Flash cache read change to 7.5e-09 was not carried over: the post says 0.007 and the Retail Prices API meter says 0.008 per 1M, so the current 8e-09 stays. Closing to keep one open registry PR

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.

[Bug]: Azure DeepSeek-V4.1-Flash cost map prices both Foundry paths from the Fireworks meter

3 participants