DeepSeek in OpenRouter: switch models, pay off-peak

One API key, 400+ models, automatic provider routing

PEAK 01:00–04:00 & 06:00–10:00 UTC WEEKDAYS

OpenRouter exposes a single OpenAI-compatible endpoint with per-model pricing, provider routing, fallbacks and usage accounting. It is the simplest way to compare models without opening accounts with every lab.

Switch OpenRouter to DeepSeek in 3 steps

Step 1

Point any OpenAI-compatible client at OpenRouter

export OPENAI_BASE_URL="https://openrouter.ai/api/v1" export OPENAI_API_KEY="sk-or-v1-..."
Works with the OpenAI SDK, LangChain, OpenCode, Pi and most agent frameworks.
Step 2

Pick a current DeepSeek model

export OPENAI_MODEL="deepseek/deepseek-v4.1-flash"
Use the exact OpenRouter model slug. Model pages list live context and pricing.
Step 3

Route directly to DeepSeek

curl https://openrouter.ai/api/v1/chat/completions \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "HTTP-Referer: https://codingplans.dev" \ -H "X-Title: codingplans" \ -d '{"model":"deepseek/deepseek-v4.1-flash","provider":{"order":["DeepSeek"]}}'
Provider routing is a preference, not a guarantee; OpenRouter falls back if the preferred provider is unavailable.

DeepSeek peak and off-peak pricing in OpenRouter

⚠ Weekday peak, 01:00–04:00 and 06:00–10:00 UTC, costs 2x the off-peak rate.

OpenRouter passes DeepSeek's peak and off-peak prices through. Off-peak V4.1 Flash is $0.15/M input and $0.60/M output; weekday peak windows double those rates. For predictable budgets, set a provider allowlist and a max price in the request, or route batch jobs to an open-weight model with flat pricing.

Model, $/M tokensInput off-peakInput peakCache hit off-peakCache hit peakOutput off-peakOutput peakExample day, off-peak / peak
DeepSeek V4.1 Flash$0.15$0.30$0.003$0.006$0.60$1.20$1.05 / $2.10
DeepSeek V4 Pro$0.66$1.32$0.022$0.044$1.98$3.96$4.29 / $8.58

The example day is 5M input and 500K output tokens with no cache hits. Off-peak starts at 10:00 UTC on weekdays and runs all weekend: peak hours in your time zone.

Commands checked against https://openrouter.ai/docs/quickstart on 2026-10-17. Rates from DeepSeek API pricing, checked 2026-10-17.

Questions

How do I switch OpenRouter to DeepSeek?

1. Point any OpenAI-compatible client at OpenRouter. 2. Pick a current DeepSeek model. 3. Route directly to DeepSeek. The commands for each step are above.

How much does DeepSeek cost in OpenRouter?

DeepSeek V4.1 Flash is $0.15/M input and $0.60/M output off-peak, and $0.30/M and $1.20/M during weekday peak hours (01:00–04:00 and 06:00–10:00 UTC).

When is DeepSeek off-peak?

Every hour outside Mon–Fri 01:00–04:00 and 06:00–10:00 UTC, plus weekends and Chinese public holidays. Off-peak is 50% cheaper; peak costs 2x.