Home › APIs › DeepSeek

DeepSeek API — pricing, free tier & how to get a key

DeepSeek's API is one of the cheapest ways to run a capable large-language model in production. It now runs on two models — DeepSeek-V4.1-Flash (fast, cheap) and DeepSeek-V4-Pro (bigger, better at reasoning) — billed on a peak/off-peak schedule, is OpenAI-compatible, and undercuts most US providers on price even at peak rates. Here's what it costs and how to get your key.

DeepSeek API pricing (reference, November 2026)

ModelInput $/1MOutput $/1MBest for
DeepSeek-V4.1-Flash cheapest$0.15$0.60General tasks, high volume
DeepSeek-V4-Pro$0.66$1.98Harder reasoning, math, code
Flash — cached input$0.003—Repeated context (big discount)
⚠️ Off-peak reference prices, November 2026 — both models double in price during DeepSeek's peak hours (01:00-04:00 and 06:00-10:00 UTC, Mon-Fri); weekends and holidays stay at off-peak rates. The old flat DeepSeek-V3/R1 pricing no longer appears on DeepSeek's own pricing page — legacy model-ID strings are still accepted but billed at Flash rates. Confirm on api-docs.deepseek.com before budgeting. Cached-input (repeated context) is billed at a large discount. · Report outdated price →
✓ Last verified: 2026-11-12· Source: official provider pricing page· Auto-monitored — report change →

→ Estimate your bill on the AI API cost calculator (DeepSeek V4 Flash and V4 Pro are included) or model a whole app with the AI app cost estimator.

Is there a free tier?

DeepSeek has no permanent free tier, but pricing is so low that a small top-up lasts a long time, and new accounts sometimes get a modest starting credit. If you specifically need a free quota with no card, Google Gemini is the better fit; if you just want the lowest pay-as-you-go cost, DeepSeek-V4.1-Flash is hard to beat off-peak.

How to get a DeepSeek API key (step by step)

1. Go to platform.deepseek.com and create an account.
2. Open API keys and click Create new API key; copy it once (you can't view it again).
3. Add a small credit top-up under Billing — usage is deducted from your balance.
4. Point your code at the DeepSeek base URL. It's OpenAI-compatible, so existing OpenAI SDKs work by swapping the base URL and key.

Test it with a simple request:

# quick test (replace $DEEPSEEK_API_KEY)
curl https://api.deepseek.com/chat/completions \
-H "Authorization: Bearer $DEEPSEEK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-chat","messages":[{"role":"user","content":"hi"}]}'

Estimate your cost

Use the AI API Cost Calculator to plug in your token counts and request volume — it ranks DeepSeek against GPT-4o, Claude and Gemini from cheapest to most expensive for your exact workload.

Cheaper alternatives

DeepSeek is already at the cheap end. The closest rivals are Gemini 2.0 Flash ($0.10/$0.40) and GPT-4o mini ($0.15/$0.60) for simple high-volume tasks. For reasoning on a budget, DeepSeek-V4-Pro competes with much pricier models like o3.

FAQ

Is the DeepSeek API cheap?

Yes for Flash. DeepSeek-V4.1-Flash is ~$0.15/$0.60 per 1M tokens off-peak; V4-Pro is ~$0.66/$1.98 off-peak. Both double during peak hours (01:00-04:00 and 06:00-10:00 UTC, Mon-Fri).

How do I get a DeepSeek API key?

Sign up at platform.deepseek.com, create a key in the API keys section, copy it once, and add a small credit balance. The API is OpenAI-compatible.

DeepSeek Flash vs V4-Pro — which should I use?

Flash for most chat and generation tasks — it’s 4-5x cheaper. V4-Pro for hard math, logic and code where the bigger model helps — it costs more on input and output.

Can I use OpenAI libraries with DeepSeek?

Yes. DeepSeek's API is OpenAI-compatible — change the base URL to api.deepseek.com and use your DeepSeek key.

Not affiliated with DeepSeek. Prices are reference estimates — always verify on the official pricing page.

Host your project:DigitalOcean — $200 free ↗Hostinger VPS

Tools & Hosting

📈 TradingView🔒 NordVPN💳 RevolutDigitalOcean $200HostingerMeshy AI📧 Icemail