litellm - 💡(How to fix) Fix [Feature]: Add cost mapping for Deepseek V4 Flash and Pro [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#26709Fetched 2026-04-29 06:12:33
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

The Feature

Deepseek has recently released deepseek-v4-flash and deepseek-v4-pro: https://api-docs.deepseek.com/quick_start/pricing Please add the cost mapping for the models

Motivation, pitch

Deepseek models are powerful and cheap, hence very popular

What part of LiteLLM is this about?

SDK (litellm Python package)

LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

Twitter / LinkedIn details

No response

extent analysis

TL;DR

Add cost mapping for Deepseek models in the LiteLLM Python package to utilize the recently released deepseek-v4-flash and deepseek-v4-pro.

Guidance

  • Review the Deepseek API documentation to understand the pricing model for deepseek-v4-flash and deepseek-v4-pro.
  • Update the LiteLLM Python package to include cost mapping for these models, ensuring compatibility with the existing SDK functionality.
  • Verify the cost mapping implementation by testing it with sample requests to the Deepseek API.

Notes

The solution requires access to the LiteLLM Python package codebase and familiarity with the Deepseek API.

Recommendation

Apply workaround by adding the cost mapping manually, as there is no indication of an existing fix or upgrade available.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Feature]: Add cost mapping for Deepseek V4 Flash and Pro [1 participants]