EN ▾
Get API key

Qwen API vs DeepSeek API Pricing, and a Third Option

A fair qwen api vs deepseek api pricing comparison needs a formula and your own token counts, because the price page alone does not give you a monthly bill. Here is the method, with worked examples and a third option.

Updated

Key points

  • Both vendors bill by tokens, but details such as model tiers, cached input and regions change the total.
  • Use one formula with your own input and output volumes; do not compare headline numbers.
  • This site's API is a third option at $0.15 per 1M input and $0.50 per 1M output, not an official API of either vendor.
  • The best choice depends on quality for your task as much as on price.
Three balance scales weighing coins against streams of tokens, comparing per-token API pricing options

Why the price page is not the bill

Searching for qwen api vs deepseek api pricing usually means you want one number. There is not one, for three reasons. First, both vendors sell several models at different prices, so "the Qwen price" and "the DeepSeek price" depend on which model you choose. Second, the price schedule can include extras such as discounts for cached input, tiers by prompt length, off-peak rates or different prices by region and billing currency. Third, prices change. This article does not quote any vendor's current rates for that reason; check their current pricing pages on the day you decide.

What does not change is the method. Once you have the rates, the bill is simple arithmetic on your own usage.

The formula

For plain per-token billing:

def monthly_cost(input_m, output_m, price_in, price_out):
    """input_m, output_m: millions of tokens per month.
    price_in, price_out: dollars per 1M tokens."""
    return input_m * price_in + output_m * price_out

# Example with this site's rates: $0.15 in, $0.50 out
print(monthly_cost(50, 10, 0.15, 0.50))   # 12.5

Fill in the vendor's price per 1M input tokens and per 1M output tokens from their current price page, and your own monthly volume. If a vendor discounts cached input, split your input into cached and uncached parts and price each. A chat app that resends a long fixed system prompt on every request benefits more from caching than one that sends mostly new text.

What to read on each price page

  • Model name and tier. Which model will you actually call? Cheaper models are weaker on hard tasks.
  • Input and output rates. Output is normally priced higher than input.
  • Cache pricing. Is there a lower rate for repeated prompt prefixes? How is a cache hit defined?
  • Context tiers. Some schedules change the rate when the prompt passes a length threshold.
  • Free quota or promotions. Often limited in time and amount.
  • Region and currency. Billing may differ by account region.
  • Rate limits. A cheap price with low concurrency can cost you in waiting time.
  • Reasoning tokens. If a model produces hidden reasoning, those tokens may be billed as output, which raises the real cost per answer.

Our page on DeepSeek API pricing walks through the DeepSeek side in more depth.

Three usage levels, priced at the third option

Take three monthly workloads and price them at $0.15 per 1M input and $0.50 per 1M output. The same table shape works for any vendor once you replace the two rates.

WorkloadInputOutputInput costOutput costMonthly total
Side project5M1M$0.75$0.50$1.25
Small product50M10M$7.50$5.00$12.50
Busy service500M100M$75.00$50.00$125.00

To compare, compute the same three rows with each vendor's rates and note the differences. The ratio matters: if output is a large share of your tokens, the output rate dominates, and if you send long prompts with short answers, the input rate does.

Hidden multipliers that change the bill

Two APIs with identical rates can produce different bills because of how your application behaves. Check these before you trust a spreadsheet.

Conversation history

A chat resends everything each turn. Take a 20-turn chat with a 500-token system prompt, 100 tokens per user message and 300 tokens per reply. Input at turn n is 500 + 400 x (n - 1) + 100 tokens. Summed over 20 turns that is 20 x 600 + 400 x 190 = 88,000 input tokens, with 6,000 output tokens. At $0.15 and $0.50 per 1M the chat costs $0.0132 + $0.003 = $0.0162. A thousand such chats cost $16.20. Notice that input is 88,000 against 6,000 output: history, not replies, drives the bill. Trimming or summarizing old turns cuts it directly.

Retries and failures

If a vendor bills failed requests, every retry costs money. Here, failed or refused requests are not charged, but check this for every provider you compare.

Reasoning tokens

Models that think before answering can produce long hidden output. If those tokens are billed, a short visible answer can hide a large output count. Read the usage field in responses rather than counting visible words.

Peak limits

A low price does not help if concurrency caps force you to queue. A full key here allows 8 concurrent requests and 300 requests per minute, and over a limit the API returns 429 with rate_limited or concurrency. Compare those numbers across providers too.

Quality: the other half of the decision

A cheaper token that needs three retries is not cheaper. Compare cost per correct answer on your own task. Qwen and DeepSeek both publish open-weight models and run hosted APIs, and their models differ in strengths: language coverage, coding, math, context length and tool use. Benchmarks help a little, but a test set of 30 of your own prompts helps more.

Other things worth testing: reliability at your traffic level, how the API reports errors, whether the format is OpenAI-compatible so your SDK works unchanged, and the data terms you must accept. Read them before you send private data.

The third option: pay-per-token with a flat, simple rate

The API behind this site is a different kind of choice. It serves one open-weight model, run by an independent provider and tuned to answer without content refusals for lawful adult use. It is not the official API of Qwen, DeepSeek or any other vendor, and it is not a router across vendors. You cannot pick among many models: the model ID is uncensored.

  • Price: $0.15 per 1M input, $0.50 per 1M output, one rate for everything.
  • Billing: prepaid credit, no subscription, credit never expires, failed or refused requests are not charged.
  • Top-ups: any whole amount from $20 to $500, with +5% from $50, +10% from $100, +15% from $200.
  • Context: 100,000 tokens.
  • Features: streaming, tool calling, JSON mode, OpenAI-compatible endpoints.
  • Limits: text only; a full key allows 8 concurrent requests and 300 per minute.

Use it when you want predictable arithmetic, no refusals on lawful adult content, or a backup endpoint. A backup matters more than it sounds: when a primary provider returns errors during a busy period, an application that can switch base URL and key in configuration stays up, while one hard-coded to a single vendor does not. Use a vendor's own API when you need that vendor's specific models or enterprise terms.

Trying it in the same code you use for the others

Because the API is OpenAI-compatible, comparing endpoints means changing three values. This script sends the same prompt to this endpoint and prints the token usage, which you can multiply by any vendor's rates.

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoreddeepseek.cc/v1", api_key="YOUR_KEY")

r = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a 150-word product description for a reusable water bottle."}],
)
u = r.usage
cost = u.prompt_tokens / 1e6 * 0.15 + u.completion_tokens / 1e6 * 0.50
print(u.prompt_tokens, u.completion_tokens, f"${cost:.6f}")

Claim the $0.50 trial credit with one click on the API key page after sign-up. It needs no card and is valid for 7 days. Rates and bonuses are on the pricing page, and parameters are in the docs.

FAQ: Pricing and Billing

How is token usage calculated?

Tokens are counted based on the input prompt and the generated output. The API uses a tokenizer to split text into tokens. You can estimate token counts using standard tokenizers or by checking the response headers. Input tokens are charged at $0.15 per million, and output tokens at $0.50 per million.

Do I get charged for errors?

No. If a request fails due to a server error or a timeout, you are not charged for those tokens. You only pay for successful completions or partial completions that were generated.

Can I use a credit card?

We accept crypto (USDT on TRC20, USDC on Base) payments for top-ups. You can also start with a free trial credit without a card. Once you need more credit, you can top up via crypto.

What happens to my unused credit?

Your prepaid credit never expires. You can top up at any time, and the bonus credits are applied instantly. There are no monthly fees or subscription renewals, so your balance remains available until you use it.

Optimizing Your API Usage

To minimize costs, optimize your prompts. Use concise instructions and avoid redundant information. Since input tokens are cheaper, you can afford longer prompts, but be mindful of the context window. Our API supports 100,000 tokens, which is ample for most use cases.

Use streaming to reduce latency. Streaming allows you to receive tokens as they are generated, improving the user experience. Our API supports Server-Sent Events (SSE) for streaming. You can also use JSON mode to get structured output, which reduces the need for post-processing.

Monitor your usage regularly. The API provides token counts in the response headers. Use these metrics to track your spending and adjust your prompts accordingly. By combining optimization with our crypto bonuses, you can achieve significant savings.

Getting Started with the API

Getting started is simple. Sign up for an account using Google or email. You will receive a $0.50 trial credit valid for 7 days. This allows you to test the API without any financial commitment. Claim this credit with one click on your API key page.

To use the API, install the OpenAI SDK or any compatible client. Set the base URL to https://api.uncensoreddeepseek.cc/v1 and provide your API key. You can then make requests just like you would with OpenAI.

For example, you can send a chat completion request with a simple prompt. The API will return the generated text, along with token usage statistics. You can then integrate this into your application. If you need more credit, top up via crypto to receive bonus credits.

Questions and answers

Which is cheaper, Qwen API or DeepSeek API?

It depends on the model you choose, your input and output volume, and current rates. Check each vendor's price page and run the formula with your own token counts.

Do these vendors charge for input and output tokens separately?

Per-token APIs generally price input and output separately, with output higher. Some add cached-input discounts or tiers, so read the schedule.

Is this API the DeepSeek or Qwen official API?

No. It is an independent provider running one open-weight model behind an OpenAI-compatible interface.

How do I compare quality as well as price?

Run 30 or so of your real prompts through each option and divide the cost by the number of answers you accept. That cost per good answer is the useful figure.

Your key is one form away

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