How do I get a DeepSeek API key, and how much does its API cost?

Create the API key at platform.deepseek.com and pay per token with prepaid credit. Prices for deepseek-flash and deepseek-v4-pro, and when to use Dongee AI Router.

API key over a code editor with coins on a scale representing token costs

Create your API key at platform.deepseek.com, add credit and pay per million tokens: from 0.30 USD for input and 1.20 USD for output with deepseek-flash during peak hours, and half that off-peak. If you want several models with one key and a spending limit per key, Dongee AI Router is OpenAI-compatible, has no monthly fee and offers top-ups from 3 USD.

Updated December 3, 2026 · Dongee Team

DeepSeek API Pricing (USD per 1M tokens)

deepseek-flash, peakdeepseek-flash, off-peakdeepseek-v4-pro, peakdeepseek-v4-pro, off-peak
Input (cached)0.0060.0030.0440.022
Input (not cached)0.300.151.320.66
Output1.200.603.961.98

DeepSeek peak hours are 01:00–04:00 and 06:00–10:00 UTC, Monday through Friday. In Colombia time (UTC-5), that is 8 p.m. to 11 p.m. Sunday through Thursday and 1 a.m. to 5 a.m. Monday through Friday. Source: DeepSeek pricing page, accessed December 3, 2026; DeepSeek may change these prices.

DeepSeek direct key or a router: comparison

DeepSeek API keyDongee AI Router
ModelsOnly those from DeepSeekDozens of models with a single key
BillingPrepaid balance in DeepSeekTop-ups from 3 USD, no monthly fee
Spending controlAccount balanceSpending limit per key and usage by model
CompatibilityOpenAI and AnthropicOpenAI: change the base URL and key
Best if…You will only use DeepSeekYou combine models or need limits per key

Steps to obtain the API key

  1. Create your account at platform.deepseek.com.
  2. Add credit: consumption is deducted from your prepaid balance.
  3. Create the key in the API keys section (platform.deepseek.com/api_keys) and copy it to a safe place.
  4. Set up your code: Base URL https://api.deepseek.com and model deepseek-flash or deepseek-v4-pro.
  5. Save the key on the server, not in the browser. See how to set up a chatbot without exposing your API key.

For OpenAI, please see how to get an OpenAI API key. Router details in Dongee AI Router.

Frequently asked questions

Is the DeepSeek API free?

No. You pay by tokens with a prepaid balance. The price depends on the model and the time: outside peak hours it costs half.

What models does the DeepSeek API offer?

As of December 3, 2026: deepseek-flash (served by DeepSeek-V4.1-Flash-1017) and deepseek-v4-pro (DeepSeek-V4-Pro-0813), both with 1M token context.

Is the DeepSeek API compatible with OpenAI?

Yes. Use the base URL https://api.deepseek.com with the OpenAI SDK. It also supports an Anthropic-compatible format.

Does Dongee AI Router give access to DeepSeek?

Check the current model and pricing table in your Dongee customer area before deciding; do not assume DeepSeek is available.

Where do I save the API key?

In an environment variable on your server, never in the browser code or in a public repository.

Comenta lo que quieras

Unete a la charla
Solo ingresa tu email