Price BytePlus DeepSeek V4.1 Flash (peak periods) and seed-translation #423
Merged
tombeckenhammerged 2 commits into
main fromrefs/pull/423/head·merged by tombeckenham View on GitHubPart of #411 (BytePlus).
What was missing#
Four live BytePlus chat rows had no card:
| row | cause | now |
|---|---|---|
deepseek-v4-1-flash-260910 | priced on the ModelArk pricing page, but by off-peak / peak hours; the parser refused any non-prompt-length tier | priced |
deepseek-v4-1-flash-261017 | same | priced |
deepseek-v4-1-flash-economy-261017 | same | priced |
seed-translation-250915 | no row on the pricing page; its own model page has a "Model Price" table | priced (input/output); cacheRead ledgered |
Changes#
- Peak-period cards. A group with exactly one
Off-peak hoursand onePeak hoursrow becomes{ periods: { off_peak, peak } }.compilePeriodCardbuilds a token card with a requiredpricing_periodenum lever (off_peak|peak, no default). The request carries no clock, so the card refuses rather than present either rate as the price. The page states the windows (UTC+8 Mon–Fri 09:00–12:00 and 14:00–18:00). Any other mix of period rows refuses. This deliberately does not followdeepseek-pricing.ts, which stores off-peak as the price. - seed-translation.
parseByteplusModelPagereads the single price row of https://docs.byteplus.com/en/docs/ModelArk/recommended-models-seed-translation. It throws unless there is exactly one table and one row, and the input/output cells are plain decimals. The page is loaded throughtryDocs. On failure, the row getsunavailable('pricing'), which keeps the stored card, and the failure is reported indocsFailures.byteplus.tsnow returnsdocsFailures. - Gap scoring.
completeness.tscountspriced/cacheReadon a card with nobaserate row only when every row has the lever. overlayModelFactsnow mergesabsentacross patches. Before, a later patch (reasoning) could overwrite an earlier one'sabsent(pricing).docs/source-silent/byteplus.md(new):seed-translation-250915: cacheRead. Its model page marks "Input Hits Cache" as-, and the pricing page has no row for it.
Not published (left null)#
- seed-translation cache-read price (ledgered above).
Verified against the live pages on 2026-10-22. Parsed: v4.1 Flash off-peak 0.15/0.003/0.60 and peak 0.30/0.006/1.20 USD/M (economy 0.12/0.0024/0.48 and 0.24/0.0048/0.96); seed-translation 0.20/0.80.
The list summary probes with zero usage, so a period card summarises as per: 'token', with no rate shown as "the" price. /v1/estimate callers must pass pricing_period in usage.
- 1
tombeckenham merged this351c160
tombeckenham closed this
Sign in to join this conversation.
Deploying with
Cloudflare Workers#
The latest updates on your project. Learn more about integrating Git with Workers.
View logs
Branch Preview URL