EN ▾
Get API key

wanapi.ccOpenAI API Pricing: How to Compare and Estimate Cost

OpenAI API Pricing: How to Compare and Estimate Cost

Most OpenAI-style APIs bill by the token, with separate prices for input and output. Here is how to read openai api pricing, estimate your own bill, and see what the same jobs cost at $0.15 and $0.50 per 1M tokens.

Updated

Balance scale weighing stacked glowing token blocks against gold coins, illustrating per-token API pricing

Key points

  • OpenAI-style APIs bill per token, with different prices for input and output
  • Here the rates are $0.15 per 1M input tokens and $0.50 per 1M output tokens, prepaid
  • Always compare the same workload, since models differ in quality and refusals
  • Check the other vendor's current pricing page; prices change and are not quoted here

How token billing works

If you are trying to understand openai api pricing, start with the unit: the token. A token is a chunk of text, often a short word or part of a word. Models read and write tokens, and providers charge for them. Two numbers matter on every bill: how many tokens you sent (input, also called the prompt) and how many the model wrote back (output, also called the completion).

Prices are almost always quoted per 1M tokens, with one price for input and a higher one for output. That split reflects the work: reading a prompt is parallel and quick, while writing a reply happens one token at a time. When you compare any two providers, put the input price next to the input price and the output price next to the output price. A single blended number hides the difference.

This article does not quote any other vendor's rates, since those change and you should read them on the source. What it can do is give you the exact numbers for this API and a method to run the same maths on any price list.

The rates on this site

The API on this site is OpenAI-compatible, so existing code and SDKs work after you change the base URL and key. The price list is short:

  • Input: $0.15 per 1M tokens
  • Output: $0.50 per 1M tokens
  • Pay as you go from prepaid credit, no subscription
  • Credit never expires
  • Failed or refused requests are not charged

There is one model, with the ID uncensored. It is an open-weight model run by an independent provider, tuned to answer without content refusals for lawful adult use. It is not the official API of OpenAI or any other vendor, and it is not a router across vendors. It handles text only: no images, audio, video, embeddings or fine-tuning. The context window is 100,000 tokens, prompt plus completion. The pricing page holds the same table and the top-up options.

Worked cost examples

Rates are abstract until you apply them. The formula is: input tokens times $0.15, plus output tokens times $0.50, divided by one million. Here are five jobs, each computed that way.

JobInputOutputCost
Support chat reply1,500300$0.000225 + $0.00015 = $0.000375
Product description400250$0.00006 + $0.000125 = $0.000185
Short story scene2,0004,000$0.0003 + $0.002 = $0.0023
Summarise a report50,0001,000$0.0075 + $0.0005 = $0.008
Full window call90,00010,000$0.0135 + $0.005 = $0.0185

Now monthly projections for the chat-reply row. At 10,000 replies the bill is $3.75. At 100,000 replies it is $37.50. At one million replies it is $375. The line to watch is output: the short story row has twice as many output tokens as input tokens, and output makes up $0.002 of its $0.0023 total.

Estimating your own bill

You can estimate before you commit. Sample 20 or 30 real requests from your use case, record the token counts, and average them. The API returns them in the usage field of each response, so a short script does the job.

from openai import OpenAI

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

IN_PRICE = 0.15 / 1_000_000
OUT_PRICE = 0.50 / 1_000_000

def cost_of(resp):
    u = resp.usage
    return u.prompt_tokens * IN_PRICE + u.completion_tokens * OUT_PRICE

total = 0.0
for prompt in ["Summarise: ...", "Rewrite politely: ...", "Explain in two lines: ..."]:
    r = client.chat.completions.create(
        model="uncensored",
        messages=[{"role": "user", "content": prompt}],
        max_tokens=300,
    )
    total += cost_of(r)
    print(round(cost_of(r), 6), r.usage.prompt_tokens, r.usage.completion_tokens)

print("total", round(total, 6))

Multiply the average by your expected monthly request count and add a margin, perhaps 20 percent, for prompts that grow over time. Each response also has an X-Balance-USD header, so you can compare the stated cost with the real drop in balance.

Two settings change the output side directly: max_tokens sets a ceiling, and stop ends generation early at a marker. Chat history is the other usual surprise. Because every request resends the conversation, a long chat can have an input bill many times bigger than the visible messages suggest.

Top-ups and bonuses

Credit is prepaid. You can add any whole amount from $20 to $500, and larger top-ups carry a bonus.

You payBonusCredit
$20none$20
$50+5%$52.50
$100+10%$110
$200+15%$230
$500+15%$575

With the 15 percent bonus, $200 buys $230 of credit, so each dollar of credit costs about $0.87. That makes the effective rates roughly $0.13 per 1M input tokens and $0.43 per 1M output tokens. You can pay with crypto (USDT on TRC20, USDC on Base).

Because credit never expires, a bigger top-up has no downside beyond tying up the cash. There are no monthly fees to subtract, so what you buy is what you can spend.

Comparing fairly with other providers

A lower price per token does not automatically mean a lower cost per task, and the reverse is also true. Before you switch anything, check these points.

Same workload, same measure

Run your own prompts through both services and compare the cost per finished task, not the headline rate. Different models produce different reply lengths, and a chattier model costs more on the output side.

Quality and fit

This API serves one open-weight model. If you need a specific vendor's model, vision input, embeddings or fine-tuning, this is not a substitute, and you should use a service that offers them. Where it fits is text generation where you want fewer content refusals for lawful adult use, with one hard limit: no sexual content involving minors.

Limits and terms

Look at rate limits, context size and data policy. Here, a full key allows 300 requests per minute and 8 concurrent requests, a trial key allows 60 and 2, and prompts are not used for training. For the other provider, check their current pricing and terms pages.

Try it with the trial credit

The cheapest way to compare is to test. New users can claim $0.50 of trial credit with one click on the API key page after sign-up, with no card, valid for 7 days. At the chat-reply size above, $0.50 covers about 1,333 requests. Use the API key page to claim it, then follow the quickstart to send a first request.

If your code already uses an OpenAI SDK, the change is two lines: base_url set to https://api.wanapi.cc/v1 and your key, with the model set to uncensored. Run your sample set, read the totals, and then decide with real numbers.

Hidden cost drivers to watch

Bills rarely surprise people because of the rate. They surprise people because of volume they did not count. Four sources come up again and again.

  • Resent history. A conversation of 20 turns sends all earlier turns on each call. If each turn adds 200 tokens, the twentieth request carries about 4,000 tokens of history before the new question.
  • Long system prompts. A 1,500-token instruction block sent with every call at $0.15 per 1M adds $0.000225 each time. Small alone, large across a million calls: $225.
  • Verbose output. If replies run 600 tokens when 200 would do, the output cost triples. A clear length instruction pays for itself.
  • Retries in loops. A bug that repeats a call 50 times multiplies the bill by 50. Failed or refused requests are not charged here, but successful duplicates are.

Log the cost of every request from the usage field during development. A daily total in a dashboard or a log line is enough to catch a runaway loop in the first hour instead of the first invoice.

Prompt caching and similar discounts exist at some providers, and they change what a repeated prefix costs. This site does not list any such feature, so the figures above assume every token is billed at the plain rate. When you compare, read the other side's documentation for those details and fold them into the same worked examples.

Finally, keep one spreadsheet row per workload: average input tokens, average output tokens, requests per month, and the computed total. When prices or your usage change, you update two cells and see the new figure at once.

Questions and answers

How is OpenAI API pricing structured?

OpenAI-style APIs charge per token, with one price for input tokens and a higher one for output tokens, usually quoted per 1M tokens. For current figures, check the vendor's own pricing page.

What does this API cost per token?

$0.15 per 1M input tokens and $0.50 per 1M output tokens, billed from prepaid credit with no subscription. Failed or refused requests are not charged.

Can I use my existing OpenAI SDK code?

Yes. Change the base URL to https://api.wanapi.cc/v1, use your key, and set the model to uncensored. Streaming, tool calling and JSON mode are supported.

Is this the official OpenAI API?

No. It is an independent OpenAI-compatible service running one open-weight model, and it is not the API of OpenAI or any other vendor.

Do I get a bonus for larger top-ups?

Yes: +5% from $50, +10% from $100 and +15% from $200. Top-ups run from $20 to $500 in whole amounts.

Your key is one form away

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

Start with trial credit

Email and password, key on screen right away.