EN ▾
Get API key

Uncensored API for developers

https://api.qwennsfw.com/v1

Qwen 3 API Pricing Compared With $0.15/$0.50 per 1M

Qwen 3 API pricing varies by provider and changes often, so a fixed number would go stale. What does not change is the method: multiply your input and output tokens by each plan's per-million rate. Below it is done for this API, $0.15 per 1M input and $0.50 per 1M output, with three real workloads.

Updated

Key points

  • Cost per request = input tokens x input rate + output tokens x output rate, each divided by 1,000,000.
  • A 50-turn roleplay session with a 20k context costs about $0.16 here; a month of heavy daily chat about $14.40.
  • Roleplay is input-heavy because the history is resent each turn, so the input rate matters most.
  • Look up the other plan's current prices yourself and plug them into the same formula.
Coins flowing through a glass pipeline into a meter beside a balance scale, illustrating token pricing
A long scroll of glowing token blocks unrolling into a bounded frame, illustrating a context window limit

The formula, and what this API charges

Every pay-per-token plan, Qwen-style or otherwise, bills the same way. Count the tokens you send (input) and the tokens you receive (output), then price each at its own rate:

cost = (input_tokens / 1,000,000) * input_rate
     + (output_tokens / 1,000,000) * output_rate

On this API the rates are $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no subscription and no minimum request. Credit is prepaid and never expires, and failed or refused requests are not charged. The service is a hosted open-weight model from an independent provider, not the official Qwen API, so it should be compared as a separate option, not as a reseller.

Two practical points before the examples. Output tokens cost 3.33 times as much as input tokens, but chat workloads send far more input than they receive, so input often dominates the bill. And the context window is 100,000 tokens, prompt and completion together, which sets the ceiling for a single request: 100,000 × $0.15 / 1M = $0.015 at most for input.

Workload 1: a roleplay session

Roleplay and companion chats resend the whole history each turn, so the prompt grows. Say a session has 50 turns, the average prompt is 20,000 tokens and each reply is about 400 tokens.

  • Input: 50 × 20,000 = 1,000,000 tokens, so 1 × $0.15 = $0.15.
  • Output: 50 × 400 = 20,000 tokens, so 0.02 × $0.50 = $0.01.
  • Session total: $0.16.

The $0.50 trial credit, which new users claim with one click after sign-up and which is valid for 7 days, covers about three sessions like this. A $20 top-up covers roughly 125 of them (20 / 0.16).

The lever here is context length. Cutting the average prompt from 20,000 to 10,000 tokens halves the input line to $0.075. If you use SillyTavern or a similar frontend, see our notes on how the 100k-token window behaves.

Workload 2: writing and rewriting

Long-form writing flips the ratio. Suppose you send 200 requests, each with a 3,000-token brief or draft and get back 1,500 tokens of new text.

  • Input: 200 × 3,000 = 600,000 tokens, so 0.6 × $0.15 = $0.09.
  • Output: 200 × 1,500 = 300,000 tokens, so 0.3 × $0.50 = $0.15.
  • Total: $0.24, or $0.0012 per request.

Here output is the larger line. When a plan prices output much higher than input, drafting-heavy work gets more expensive than chat. When comparing, weigh the two rates by your own mix, not by the headline input price alone.

Workload 3: a heavy month

For a daily user, scale it up. Assume 100 turns a day for 30 days, a 30,000-token average prompt and 600-token replies.

ItemTokensRateCost
Input3,000 turns × 30,000 = 90,000,000$0.15 / 1M$13.50
Output3,000 turns × 600 = 1,800,000$0.50 / 1M$0.90
Month$14.40

A $20 top-up would cover that month with $5.60 left, and credit does not expire. A $50 top-up adds a 5% bonus (a $52.50 balance), $100 adds 10%, and $200 adds 15%. Top-ups are any whole amount from $20 to $500, paid in crypto (USDT on TRC20 or USDC on Base). The pricing page lists the current terms.

Comparing against another Qwen-style plan

To compare fairly, get the other provider's current input and output rates from their own pricing page; this article does not quote them because they change. Then run the same three workloads through a small script:

def cost(inp, out, in_rate, out_rate):
    return inp / 1_000_000 * in_rate + out / 1_000_000 * out_rate

workloads = {
    "roleplay session": (1_000_000, 20_000),
    "writing batch": (600_000, 300_000),
    "heavy month": (90_000_000, 1_800_000),
}
for name, (i, o) in workloads.items():
    ours = cost(i, o, 0.15, 0.50)
    other = cost(i, o, OTHER_IN, OTHER_OUT)  # fill in from their pricing page
    print(f"{name}: ours ${ours:.2f}, other ${other:.2f}")

Beyond price, check what the plan counts as billable. Some bill failed requests, some have minimum monthly commitments, some expire credit. Here, errors are free and balance stays until used. Also check the limits: a full key here allows 8 concurrent requests and 300 per minute, and a trial key 2 and 60. And check behaviour, since a model that refuses your topic costs you time even if the tokens are cheap. This service is tuned to answer without content refusals for lawful adult use, and never produces sexual content involving minors.

Ways to lower the bill

Once you know where the tokens go, a few changes cut cost without hurting quality.

  • Trim the history. Summarise turns older than a few dozen messages into one short paragraph. A chat that holds a 12,000-token prompt instead of 30,000 pays 40% of the input cost, and the story rarely suffers.
  • Shorten fixed text. A character sheet or system prompt that is 1,500 tokens is resent on every turn. Over 3,000 turns that is 4,500,000 input tokens, or $0.675. Cutting it to 700 tokens saves about $0.36 a month.
  • Cap the reply. If you want 300-token answers, set max_tokens and say so in the prompt. Output is the pricier rate, so runaway replies cost more per token.
  • Stream and stop early. With stream: true you can cancel a reply that has gone the wrong way instead of paying for all of it.
  • Batch sensibly. A full key allows 8 requests at once, so a writing batch finishes faster, but the price per token is the same.

None of these need a different plan. They apply to any pay-per-token service, which is why the same formula is useful whichever provider you end up using.

Measure your real usage

Estimates are only as good as your averages, so read the real numbers. Every response carries a usage object, and the balance is available after each call through the X-Balance-USD header.

from openai import OpenAI

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

raw = client.chat.completions.with_raw_response.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a two-line scene opener."}],
)
resp = raw.parse()
u = resp.usage
spent = u.prompt_tokens / 1e6 * 0.15 + u.completion_tokens / 1e6 * 0.50
print(f"this call: ${spent:.6f}, balance: {raw.headers.get('X-Balance-USD')}")

Log those two numbers for a week and replace the guesses above with your own averages. The documentation covers the balance endpoints, and you can start testing with the trial from the API key page.

Questions and answers

How much does the Qwen 3 API cost per million tokens?

It depends on the provider, so check their current pricing. This API charges $0.15 per 1M input tokens and $0.50 per 1M output tokens.

Is this the official Qwen API?

No. It is a hosted open-weight model run by an independent provider and is not an official product of any model vendor.

Do I pay for failed requests?

No. Failed or refused requests are not charged, and credit never expires.

How can I test it before paying?

New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It needs no payment, is one per person and is valid for 7 days.

What is the minimum top-up?

$20, in any whole amount up to $500, paid in crypto. Bonuses are +5% from $50, +10% from $100 and +15% from $200.

Your key is one form away

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

Get API keyRead the docs