EN ▾
Get API key

Open AI API Prices: A Per-Token Cost Breakdown

Per-token price lists look simple until you try to compare two of them. This page shows how to read one and runs the exact math for $0.15 and $0.50 per 1M tokens.

Updated

Balance scale weighing glowing data cubes against coins, illustrating per-token API costs

What an API bill is made of

If you are looking up open ai api prices, the first thing to know is that there is no single price. Text APIs bill per token, with one rate for input tokens (what you send) and usually a higher rate for output tokens (what the model writes back), and the rate depends on which model you call. OpenAI publishes its list on its own pricing page. It changes over time, so check their current pricing there instead of trusting a copy on a third-party site, including this one.

What this page can give you is the method, plus exact figures for the API on this site. It has one model, addressed as uncensored, at $0.15 per 1M input tokens and $0.50 per 1M output tokens. You pay from prepaid credit. There is no subscription, no monthly minimum, and credit does not expire. Requests that fail or are refused are not charged.

The formula is the same for every provider:

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

Everything else in a price comparison is a question of which numbers go into that formula and whether the two services are even doing the same job.

Reading a per-token price list

Price lists are easy to misread because the unit is large. A rate of $0.15 per 1M tokens sounds like a lot of money until you remember that 1M tokens is several thousand pages of text. A rough rule of thumb for English is that one token is about four characters, so 1,000 words come to somewhere near 1,300 tokens. Treat that as an estimate and measure your own prompts before you plan a budget.

When you open any provider's list, look for these things before you compare a single number:

  • Separate input and output rows. Output is the expensive side on most lists, so a chatty model costs more than a terse one at the same input size.
  • Per-model rates. A provider with ten models has ten prices. Compare the model you would really use, not the cheapest or the flagship.
  • Context tiers and special rows. Some lists add rows for cached input, batch jobs or long prompts. Find out whether your workload qualifies.
  • What is not per token. Image, audio and embedding calls, fine-tuning, and any minimum spend or subscription sit outside the token math.

This API is deliberately plain by comparison: two numbers, one model, text only. There are no image, audio or embedding endpoints and no fine-tuning, so you will never find a surprise line on the invoice for a feature you did not use.

Worked examples at $0.15 and $0.50 per 1M

Here is the formula applied to common request shapes. Each row is input tokens times $0.15 per 1M, plus output tokens times $0.50 per 1M.

Request shapeInput costOutput costPer request
2,000 in, 500 out (a chat turn with some history)$0.00030$0.00025$0.00055
800 in, 1,200 out (a script written from a short brief)$0.00012$0.00060$0.00072
30,000 in, 500 out (a long document plus a question)$0.00450$0.00025$0.00475
100,000 in, 2,000 out (a full window, the maximum size)$0.01500$0.00100$0.01600

Scaled up, the first row gives 10,000 requests for $5.50 and 100,000 requests for $55.00. The second row gives 1,000 generated scripts for $0.72. The last row shows the ceiling: the context window is 100,000 tokens, prompt and completion together, so even a request that fills it costs $0.016 in this example.

Notice how the balance shifts. In the first row input and output cost nearly the same, even though the prompt is four times longer, because output tokens cost 3.33 times as much per token. If your jobs produce long answers from short prompts, output is the number to watch.

Estimate your own monthly spend

A spreadsheet works, but a few lines of code are quicker and you can reuse them. This function takes your average token counts and a request volume and returns the monthly cost at this API's rates.

IN_RATE = 0.15 / 1_000_000   # dollars per input token
OUT_RATE = 0.50 / 1_000_000  # dollars per output token

def monthly_cost(requests_per_day, avg_in, avg_out, days=30):
    per_request = avg_in * IN_RATE + avg_out * OUT_RATE
    return per_request * requests_per_day * days

# 400 requests a day, 2,000 tokens in, 500 out
print(round(monthly_cost(400, 2000, 500), 2))   # 6.6

That prints 6.6, which is $6.60 a month: $0.00055 per request times 400 requests times 30 days. Change the arguments to match your product and you have a budget in a minute.

Once you are live, stop estimating and read the real numbers. Every response includes a usage object, and the response headers include X-Balance-USD, which shows what is left on the key.

from openai import OpenAI

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

raw = client.chat.completions.with_raw_response.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Write a 100-word product intro."}],
)
resp = raw.parse()

u = resp.usage
cost = u.prompt_tokens * 0.15 / 1e6 + u.completion_tokens * 0.50 / 1e6
print(f"tokens in/out: {u.prompt_tokens}/{u.completion_tokens}, cost: ${cost:.6f}")
print("balance:", raw.headers.get("X-Balance-USD"))

If you want the setup explained line by line, the API docs cover the base URL, authentication and the supported parameters.

What credit, bonuses and the trial change

The per-token rate is only part of what you pay, because the way you buy credit changes the effective price. Top-ups are any whole amount from $20 to $500, paid by crypto (USDT on TRC20, USDC on Base). Larger top-ups carry a bonus on the credit you receive:

  • $50 buys $52.50 of credit (+5%).
  • $100 buys $110 of credit (+10%).
  • $200 buys $230 of credit (+15%).
  • $500 buys $575 of credit (+15%).

Credit never expires, so buying a larger block does not create a use-it-or-lose-it clock. At $20, with a workload that is four parts input to one part output, you get about 72.7M input tokens and 18.2M output tokens, which is roughly 90.9M tokens in total. The math: a block of 4M input plus 1M output costs $0.60 + $0.50 = $1.10, and $20 divided by $1.10 is 18.18 such blocks.

There is no free tier in the sense of a standing monthly allowance. What exists is a one-time trial: after you sign up with Google, or with email and password, you can claim $0.50 of trial credit with one click on the API key page. It needs no card, is limited to one per person, and is valid for 7 days. At $0.00055 per request, $0.50 covers about 909 of the chat turns in the first table. That is plenty to test quality and wiring before you pay anything. The trial key runs at 2 concurrent requests and 60 requests per minute; a full key allows 8 concurrent and 300 per minute.

Comparing fairly with OpenAI's list

A lower number per token does not mean a service is the better buy. Before you compare, line up what each side actually delivers.

  1. The model. OpenAI sells its own models. This API runs one open-weight model, operated by an independent provider, and it is not an OpenAI product or a router to other vendors. Quality on your task decides whether a price is a bargain.
  2. Content rules. This model is tuned to answer without content refusals for lawful adult use. The one hard limit is that nothing sexual involving minors is allowed. If your product needs fiction, roleplay or frank dialogue that mainstream APIs decline, a refused request on another service costs you time even when it costs no tokens.
  3. Feature coverage. If you need images, audio, embeddings or fine-tuning, those are not available here, and a provider that offers them is the right fit.
  4. Limits. The context window is 100,000 tokens and a full key allows 8 concurrent requests. Check the equivalent limits on any list you compare against.
  5. Billing style. Prepaid credit with no subscription suits a side project or a bursty workload. A company that needs invoicing and contracts may prefer a vendor that offers them.

Because the API follows the OpenAI request format, trying it costs very little. You change the base URL and the key, and the same SDK code keeps working. That makes a side-by-side test on your own prompts the most honest comparison available. The pricing page lists the rates and top-up tiers in one place.

Where this fits a text-to-speech workflow

This site is built around the text step of voice projects: scripts, narration drafts, prompts and dialogue that you later feed to a speech tool. The API produces text only and does not generate audio itself. For that workflow, output tokens dominate the bill, since a script is longer than the brief behind it. The 800-in, 1,200-out row above is the realistic shape, and at $0.00072 a script you can draft variations and keep the best one without watching the meter. There is more on this in the guide to an LLM API for text to speech scripts.

When you are ready to test, get an API key, claim the $0.50 trial, and run a hundred of your real prompts. The usage numbers will tell you more than any estimate.

Questions and answers

Is there a free tier?

There is no standing free allowance. New users can claim a one-time $0.50 trial credit with one click on the API key page. It needs no card, is limited to one per person and lasts 7 days.

Do you charge for failed requests?

No. Failed or refused requests are not charged, so you pay only for completions that were delivered.

What are OpenAI's current rates?

They differ by model and change over time, so read OpenAI's own pricing page. This site does not quote them.

Does the credit expire?

No. Prepaid credit never expires, and there is no subscription or monthly minimum.

How much does a large prompt cost?

A prompt that fills the 100,000-token context window costs $0.015 in input, plus $0.50 per 1M for whatever the model writes back.

Your key is one form away

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

Get API key