DeepSeek API Model Pricing Catalog avatar

DeepSeek API Model Pricing Catalog

Pricing

Pay per event

Go to Apify Store
DeepSeek API Model Pricing Catalog

DeepSeek API Model Pricing Catalog

Scrapes the DeepSeek API pricing catalog for all models, including input/output token prices, cache-hit discounts, context window sizes, features, and footnotes. Tracks price changes across runs.

Pricing

Pay per event

Rating

0.0

(0)

Developer

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Scrapes the DeepSeek API documentation site and returns one record per model with complete pricing, feature flags, context window sizes, and footnote annotations. Useful for cost-modelling batch inference workloads, comparing DeepSeek pricing against OpenAI/Anthropic, and tracking price changes over successive runs.

What it does

  • Fetches api-docs.deepseek.com/quick_start/pricing — a static Docusaurus page, no browser required
  • Parses the model comparison table and emits one dataset record per model column
  • Extracts per-model: input price, cache-hit input price, output price, context window, max output, and feature flags
  • Captures footnote text with dated pricing-change announcements (e.g. "cache-hit price reduced to 1/10 of launch price, effective 2026-04-26")
  • Runs in under 20 seconds on default settings

Use cases

  • Batch inference cost modelling — plug current prices into spreadsheets or cost-simulation tools
  • Competitive benchmarking — compare DeepSeek pricing against OpenAI/Anthropic/Mistral
  • Price-change monitoring — schedule daily runs and diff the dataset for changed prices
  • Procurement decision support — CFO and engineering teams can track discount windows and cache savings

Input

FieldTypeRequiredDescription
maxItemsIntegerYesMaximum records to return. DeepSeek currently offers 2 models; set to 10 to capture all.

Example input

{
"maxItems": 10
}

Output

One dataset record per model. All prices are in USD per 1 million tokens.

FieldTypeDescription
model_nameStringAPI model identifier (e.g. deepseek-v4-flash, deepseek-v4-pro)
model_versionStringDisplay version name (e.g. DeepSeek-V4-Flash)
context_window_tokensNumberMaximum context length in tokens
max_output_tokensNumberMaximum tokens the model can generate per request
input_price_usd_per_millionNumberCache-miss input price (USD/1M tokens)
input_price_cache_hit_usd_per_millionNumberCache-hit input price — typically 1/10 of the cache-miss price
output_price_usd_per_millionNumberOutput token price (USD/1M tokens)
off_peak_input_price_usd_per_millionNumberOff-peak input price, when active (null if no off-peak window currently offered)
off_peak_output_price_usd_per_millionNumberOff-peak output price, when active
off_peak_window_utcStringOff-peak time window in UTC (e.g. 16:30-00:30 UTC), or null
currency_nativeStringDenomination of the listed prices (USD)
effective_dateStringDate of the most recent pricing change noted in footnotes (ISO 8601)
deprecatedBooleanWhether the model itself is marked deprecated
replacement_modelStringReplacement model name if deprecated, otherwise null
featuresArrayAPI features enabled for this model (e.g. json_output, tool_calls, fim_completion)
notesStringFull footnote and disclaimer text from the pricing page
source_urlStringURL scraped
sourceStringSource domain (api-docs.deepseek.com)
last_changedStringISO date when a price change was detected vs. prior run, or null

Example output record

{
"model_name": "deepseek-v4-flash",
"model_version": "DeepSeek-V4-Flash",
"context_window_tokens": 1000000,
"max_output_tokens": 384000,
"input_price_usd_per_million": 0.14,
"input_price_cache_hit_usd_per_million": 0.0028,
"output_price_usd_per_million": 0.28,
"off_peak_input_price_usd_per_million": null,
"off_peak_output_price_usd_per_million": null,
"off_peak_window_utc": null,
"currency_native": "USD",
"effective_date": "2026-04-26",
"deprecated": false,
"replacement_model": null,
"features": ["json_output", "tool_calls", "chat_prefix_completion", "fim_completion"],
"notes": "The prices listed below are in units of per 1M tokens...",
"source_url": "https://api-docs.deepseek.com/quick_start/pricing",
"source": "api-docs.deepseek.com",
"last_changed": null
}

Pricing

This actor charges $0.10 per start + $0.001 per record returned. A standard run with maxItems: 10 returns 2 records (one per active model) and costs approximately $0.102.

Notes

  • DeepSeek updates their pricing page directly when pricing changes. The effective_date field reflects the most recent dated footnote on the page.
  • The off_peak_* fields are reserved for DeepSeek's discount window feature (historically 50% off during 16:30–00:30 UTC). These fields return null if the feature is not currently listed on the page.
  • Legacy model aliases deepseek-chat and deepseek-reasoner are being deprecated; they currently map to the non-thinking and thinking modes of deepseek-v4-flash respectively.