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.
| Model | Input $/1M | Output $/1M | Best for |
|---|---|---|---|
| DeepSeek-V4.1-Flash cheapest | $0.15 | $0.60 | General tasks, high volume |
| DeepSeek-V4-Pro | $0.66 | $1.98 | Harder reasoning, math, code |
| Flash — cached input | $0.003 | — | Repeated context (big discount) |
→ 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.
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.
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:
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.
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.
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).
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.
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.
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.