EN ▾
Get API key

DeepSeek Coder V2 API Pricing vs a Prepaid Alternative

If you searched for deepseek coder v2 api pricing, you are probably budgeting a coding assistant or an agent loop. This page does not quote DeepSeek's rates; it shows exactly what our OpenAI-compatible API costs, so you can compare against whatever their pricing page says today.

Updated

Isometric illustration of a coin jar and token blocks flowing into a terminal, representing prepaid API pricing

Key points

  • Input costs $0.15 per 1M tokens and output costs $0.50 per 1M tokens, billed from prepaid credit.
  • A typical chat turn of 3,000 tokens in and 600 out costs $0.00075, so $20 covers about 26,000 turns.
  • No subscription, credit never expires, and failed or refused requests are not charged.
  • This is not the DeepSeek API. It is a separate provider running one open-weight uncensored model.

The short answer

Our API charges $0.15 per 1M input tokens and $0.50 per 1M output tokens. You top up a balance, requests draw it down, and the balance stays until you use it. There is no monthly fee and no seat price.

To be clear about what you are buying: this is not the official DeepSeek Coder V2 API, and it is not a router across vendors. It is one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. If you need DeepSeek's own hosted models, check their current pricing directly. If you want a cheap, OpenAI-compatible endpoint with a flat two-number price list, read on.

How token billing works

Every request has two parts. The prompt (system message, history, files you paste in) counts as input tokens. The model's reply counts as output tokens. You pay for each at its own rate, and the usage block in the response tells you the exact counts.

The formula is short:

cost = input_tokens * 0.15 / 1,000,000 + output_tokens * 0.50 / 1,000,000

Two things follow from it. Output is a bit over three times as expensive per token as input, so long answers cost more than long prompts. And because the context window is 100,000 tokens (prompt plus completion), the largest single request you can send stays under a few cents. Streaming does not change the price; you pay for the tokens produced either way.

Worked examples for coding workloads

Here is the math for four common patterns. Each line is inputs times $0.15 plus outputs times $0.50, per 1M.

WorkloadInput tokensOutput tokensCost per request
Chat turn in an editor3,000600$0.00045 + $0.00030 = $0.00075
Review of one pull request20,0002,000$0.00300 + $0.00100 = $0.00400
Whole-module refactor60,0008,000$0.00900 + $0.00400 = $0.01300
Near-full context question90,0004,000$0.01350 + $0.00200 = $0.01550

Scaled up: 1,000 chat turns cost $0.75. 500 pull request reviews cost $2.00. A day of an agent making 200 calls at an average of 8,000 tokens in and 700 out uses 1.6M input tokens ($0.24) and 140,000 output tokens ($0.07), which is $0.31 for the day.

What the numbers say

Output volume drives the bill more than prompt size in short-answer workflows, but in agent loops that re-send a growing history every turn, input dominates. If your loop keeps appending tool results, trim old turns before they pile up.

Top-ups, bonuses and what $20 buys

You can add any whole amount from $20 to $500. Larger top-ups carry a bonus on the credit you receive:

Top-upBonusCredit you get
$20none$20.00
$50+5%$52.50
$100+10%$110.00
$200+15%$230.00
$500+15%$575.00

At $20, the 3,000-in, 600-out chat turn above ($0.00075) gives you about 26,666 turns. The same $20 buys roughly 133 million input tokens or 40 million output tokens if you spent it on one side only. You can pay with crypto (USDT on TRC20, USDC on Base). The pricing page keeps the current list.

Costs that do not show up on a rate card

Per-token prices are only part of what a budget needs. Three other items matter for a coding setup.

  • Failed requests. Failed or refused requests are not charged, so retrying after an error does not double-bill you.
  • Expiry. Credit never expires. A month with no coding costs nothing, which suits side projects and seasonal work.
  • Rate limits. A full key allows 8 concurrent requests and 300 requests per minute. If you run a batch job, that ceiling, not price, sets how fast you finish. At 8 parallel requests that each take 20 seconds, expect roughly 24 requests per minute.

The balance is visible in the X-Balance-USD response header on every call, so you can log it and alert yourself before it runs low. If you hit trouble with another provider's API, our note on DeepSeek API errors covers common failure modes and what to check.

How to compare against DeepSeek's own pricing

We will not copy another vendor's rates here, because they change and you should read the source. Do the comparison yourself in three steps.

  1. Open their current pricing page and note the input and output rates, plus any differences for cached input.
  2. Take your own traffic: tokens in and tokens out for a typical day, from your logs or a short trial run.
  3. Put both sets of rates through the formula above and compare monthly totals, not headline rates.

Then compare what the model does, not only what it costs. The model here is a general open-weight chat model without content refusals; it is not a code-specialised model and we make no benchmark claims. If your task is plain code completion where a code-tuned model clearly wins, use that. If you want an API that does not refuse lawful requests, accepts the OpenAI SDK as-is and bills from a prepaid balance, it is a fit.

Try it before you pay

New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It needs no card, lasts 7 days and is limited to one per person. At the chat-turn rate above, $0.50 is roughly 666 turns, enough to wire the endpoint into your editor and see whether the answers suit you. The trial key allows 2 concurrent requests and 60 requests per minute.

The docs show the base URL (https://api.deepseekcoder.top/v1), the model ID uncensored and a first request in Python, Node and curl.

curl https://api.deepseekcoder.top/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"uncensored","messages":[{"role":"user","content":"Explain Big-O of a binary search in two sentences."}]}'

Questions and answers

Is this the official DeepSeek Coder V2 API?

No. It is a separate OpenAI-compatible API serving one open-weight model from an independent provider. It is not operated by DeepSeek or any other model vendor.

Is there a monthly fee?

No. You pay per token from prepaid credit, and the credit never expires.

Am I charged for failed requests?

No. Failed or refused requests are not charged.

What is the smallest top-up?

$20. Whole amounts up to $500 are accepted, with +5% from $50, +10% from $100 and +15% from $200.

How can I see my remaining balance?

Every response includes an X-Balance-USD header with your current balance, so you can log it from your code.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.