Skip to content

fix(deepseek): correct V4 Pro/Flash pricing to the published rate card - #6051

Open
settingzbot wants to merge 1 commit into
anomalyco:devfrom
settingzbot:fix-deepseek-v4-pricing
Open

fix(deepseek): correct V4 Pro/Flash pricing to the published rate card#6051
settingzbot wants to merge 1 commit into
anomalyco:devfrom
settingzbot:fix-deepseek-v4-pricing

Conversation

@settingzbot

Copy link
Copy Markdown

The first-party deepseek entries for V4 Pro and V4 Flash are well below DeepSeek's published prices. The gap is worst on cache reads — 6× low for Pro — which dominate agentic traffic, so the error compounds rather than cancels.

Published rates

Per https://api-docs.deepseek.com/quick_start/pricing/ (accessed 2026-09-01), off-peak, USD per 1M tokens:

model cache hit cache miss output
deepseek-v4-pro $0.022 $0.66 $1.98
deepseek-v4-flash $0.007 $0.22 $0.66

deepseek-v4-flash-vision-exp is priced as Flash, per the existing note in its file.

Verified against real billing

I repriced 30 days of my own DeepSeek traffic (token counts from local session databases) with these rates and compared against the DeepSeek console's own daily spend:

day repriced with these rates DeepSeek console
2026-08-31 $3.4194 $3.42
2026-09-01 $0.1920 $0.19

To the cent, on two independent days. The current catalog rates come out ~3.7× under.

Corroborated inside this repo

Three other hosts of the same models already price as clean, uniform multiples of the published card, while the first-party entry's ratios are non-uniform — the signature of a stale entry rather than a different pricing basis:

entry input output cache_read
opencode-go V4 Pro ×1.000 ×1.000 ×1.000
above V4 Pro / Flash ×1.100 ×1.100 ×1.100
aihubmix V4 Pro ×1.048 ×1.048 ×1.048
deepseek V4 Pro (current) ×0.659 ×0.439 ×0.165

The current Pro numbers trace to a May 2026 edit that divided the then-current values by 4; Flash still carries what look like V3-era rates ($0.14 / $0.28).

On peak pricing

DeepSeek charges exactly double during peak (01:00–04:00 and 06:00–10:00 UTC, Mon–Fri). models.dev has no time-of-day pricing concept, so I've used off-peak, which covers ~79% of hours and matches what opencode-go already lists. Each file gets a header comment stating the window and the doubling. Happy to switch to peak, or to a blended figure, if maintainers prefer a different convention — worth settling once, since the same question will recur.

bun validate passes; the generated catalog carries the new values.

🤖 Generated with Claude Code

The first-party DeepSeek entries were well below DeepSeek's published prices,
most severely on cache reads (6x low for Pro), which dominate agentic traffic.

Per https://api-docs.deepseek.com/quick_start/pricing/ (accessed 2026-09-01),
off-peak, USD per 1M tokens:

  deepseek-v4-pro    cache hit 0.022  cache miss 0.66  output 1.98
  deepseek-v4-flash  cache hit 0.007  cache miss 0.22  output 0.66

Verified against real billing: repricing 30 days of local DeepSeek traffic
with these rates reproduces the DeepSeek console's daily spend to the cent
($3.4194 vs $3.42, $0.1920 vs $0.19 on two independent days). The previous
rates came out ~3.7x under.

Corroborated inside this repo: three other hosts of the same models already
price as uniform multiples of the published card - opencode-go at 1.000x,
above at 1.100x, aihubmix at 1.048x - while the first-party entry's ratios
were non-uniform (0.66 / 0.44 / 0.16), the signature of a stale entry rather
than a different pricing basis.

Off-peak is used because models.dev has no time-of-day pricing and off-peak
covers ~79% of hours; peak (01:00-04:00 and 06:00-10:00 UTC, Mon-Fri) is
exactly double. Noted in a header comment on each file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018EmjRqNQurw9QJhKJGuYuU
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewer: ready Automated review found no actionable items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant