API Pricing Meaning: How Token Costs Add Up
API pricing meaning, in plain terms: you pay for the work each request does, measured in tokens, instead of paying a flat monthly fee. This page explains what a token is, why input and output are priced separately, and how to turn a price per million tokens into a real number for your project.

Key points
- Tokens are chunks of text. You pay $0.15 per 1M input tokens (what you send) and $0.50 per 1M output tokens (what the model writes).
- Cost per request = input tokens x input price + output tokens x output price. The result is usually a fraction of a cent.
- Credit is prepaid, never expires, and failed or refused requests are not charged. There is no subscription.
- Top-ups run from $20 to $500, with +5% bonus from $50, +10% from $100 and +15% from $200.
The meaning in one paragraph
An API price is a rate card. It tells you how much one unit of usage costs, and the bill is the number of units you use times the rate. For a text model the unit is the token, and the price is quoted per million of them because a single token costs far too little to write down. Here the rate card has two lines: $0.15 for every 1,000,000 input tokens and $0.50 for every 1,000,000 output tokens. Nothing else is added per request. There is no seat fee, no monthly minimum and no charge for requests that fail or are refused.
"Pay as you go" is the other half of the meaning. You load prepaid credit first, and each request draws it down by its own cost. When the credit runs out, requests stop until you add more. The credit never expires, so unused money stays on the account until you use it.
What a token is
A token is a piece of text the model reads or writes as one unit. It can be a whole short word, part of a long word, a space plus a word, or a punctuation mark. A rough rule for ordinary English is that one token is about four characters, or that 1,000 tokens is around 750 words. Treat that as an estimate. Code, numbers, and languages other than English usually split into more tokens per word, so the same page of text can cost more than the rule suggests.
You do not have to guess. Every response from the API includes a usage block with the exact prompt and completion token counts for that request. Streaming responses report usage at the end of the stream. Log those numbers for a day of real traffic and you will have your own tokens-per-task figure, which is far better than any rule of thumb.
{
"usage": {
"prompt_tokens": 1000,
"completion_tokens": 500,
"total_tokens": 1500
}
}Why input and output have different prices
Input is everything you send: the system prompt, the conversation so far, any documents you paste in, and your question. Output is what the model writes back. Output costs more per token here, $0.50 against $0.15, which is a ratio of about 3.3 to 1. That is a good reason to watch output length. A request that asks for a long essay spends its money on the expensive side, while a request that sends a long document and asks for a one-line verdict spends it on the cheap side.
The two sides also behave differently over time. Output is the new text you asked for. Input is repeated: in a chat, every new message resends the earlier turns, so the input for turn 20 contains turns 1 to 19 again. For long conversations the input side usually dominates the bill even though its rate is lower. Two habits cut it: keep the system prompt short, and summarise old history instead of sending all of it.
The window itself is 100,000 tokens, prompt plus completion. A request that fills it with input alone costs 100,000 / 1,000,000 x $0.15 = $0.015. That is the practical ceiling for the input side of one call.
The formula with worked examples
For any request:
cost = (input tokens / 1,000,000 x $0.15) + (output tokens / 1,000,000 x $0.50)
Here are four jobs, with every step shown so you can check the arithmetic and swap in your own numbers.
| Job | Input tokens | Output tokens | Input cost | Output cost | Total |
|---|---|---|---|---|---|
| Short chat reply | 1,000 | 500 | $0.00015 | $0.00025 | $0.0004 |
| Summarise one long document | 10,000 | 500 | $0.0015 | $0.00025 | $0.00175 |
| Support bot message with history | 3,000 | 300 | $0.00045 | $0.00015 | $0.0006 |
| Clean up a one-hour transcript (about 12,000 tokens in and out) | 12,000 | 12,000 | $0.0018 | $0.006 | $0.0078 |
Scaled up, the same numbers look like this:
- 1,000 document summaries cost 1,000 x $0.00175 = $1.75.
- 10,000 support bot messages cost 10,000 x $0.0006 = $6.00.
- 100 hours of transcripts cost 100 x $0.0078 = $0.78 for the cleanup pass.
The transcript row is a good reminder that rewriting text is symmetric, so output is as large as input and the pricier output rate counts for more. Jobs that only extract a few fields from a big input, such as pulling names and dates into JSON, are cheaper per token of input than jobs that rewrite everything.
Prepaid credit, top-ups and bonuses
Credit is a balance in US dollars. You add to it with a top-up of any whole amount from $20 to $500. Bigger top-ups earn a bonus on the credit you receive:
| You pay | Bonus | Credit you get |
|---|---|---|
| $20 | none | $20.00 |
| $50 | +5% | $52.50 |
| $100 | +10% | $110.00 |
| $200 | +15% | $230.00 |
| $500 | +15% | $575.00 |
The bonus lowers your effective price. With a 15% bonus you get $1.15 of credit for each $1 paid, so the input rate works out to $0.15 / 1.15, about $0.13 per 1M tokens, and the output rate to $0.50 / 1.15, about $0.43 per 1M tokens. You can see the amounts and payment options on the pricing page. Payment is by crypto (USDT on TRC20, USDC on Base).
Because credit does not expire, there is no penalty for a big top-up that you use slowly. The balance is returned in the X-Balance-USD header on API responses, so your own code can read it and warn you before it reaches zero.
Try it before paying
New users can claim $0.50 of trial credit with one click on the API key page after sign-up. It is one per person, valid for 7 days, and needs no card. At the cost of the first row in the table above, $0.0004 per call, it covers 1,250 short calls ($0.50 / $0.0004). The trial key has lower limits than a funded one: 2 concurrent requests and 60 requests per minute, against 8 and 300. See the key page for the steps.
A first request against this site uses the usual OpenAI format:
curl https://api.stableaudio.cc/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "uncensored", "messages": [{"role": "user", "content": "Say hello in five words."}]}'
Read the usage field in the reply, apply the formula, and compare it with the drop in X-Balance-USD. If your arithmetic and the header agree, you understand your pricing.
Common misreadings of a price list
A few mistakes come up again and again when people first read token pricing.
Counting words instead of tokens
A price per million tokens is not a price per million words. Using the 750-words-per-1,000-tokens estimate, 1M tokens is roughly 750,000 words of English. Your actual ratio depends on the text, so measure it from usage.
Forgetting the system prompt
A 600-token system prompt sent with every request is part of the input each time. Over 10,000 requests that is 6,000,000 input tokens, or 6 x $0.15 = $0.90. Worth trimming if it is bloated, not worth worrying about if it is short.
Ignoring output you did not ask for
If you leave the length open, the model decides how much to write. Output is the pricey side, so a one-line instruction about reply length, or a max_tokens ceiling, protects the budget. The parameter is optional, and without it a reply can use whatever the prompt leaves of the 100,000-token window.
Assuming a retry always costs extra
Failed or refused requests are not charged, so a request that returns an error and is then repeated is billed once. A request that succeeds with a poor answer is billed in full, and so is its redo.
Estimating a monthly budget
A simple method works for most projects:
- Pick one typical task and measure its input and output tokens from the
usagefield over about fifty real calls. - Compute the average cost per task with the formula.
- Multiply by tasks per day and by 30.
- Add 20 to 30 percent headroom for retries, longer-than-usual inputs and experiments.
As an example, a pipeline that cleans 40 transcripts a day at $0.0078 each spends 40 x $0.0078 = $0.312 a day, about $9.36 over 30 days. That fits inside a single $20 top-up with room to spare. Because failed and refused requests are not billed, retries on errors do not add to the total, though a retry after a successful but unwanted answer does.
Limits matter for planning as well as cost. A full key allows 8 concurrent requests and 300 requests per minute, so even a very cheap job has a throughput ceiling. Over a limit the API returns HTTP 429, with the code rate_limited or concurrency. The docs list the full set of parameters, and the speech to text cost analysis shows how the text step compares with the transcription step in an audio pipeline. Prompts are not used for training.
More guides
Questions and answers
What does API pricing mean?
It is the rate you pay for using an API, usually per unit of work. For this text API the unit is the token: $0.15 per 1M input tokens and $0.50 per 1M output tokens.
What is the difference between input and output tokens?
Input tokens are the text you send, including history and documents. Output tokens are the text the model writes back, and they cost more per token.
Is there a monthly fee?
No. You load prepaid credit and each request deducts its own cost. The credit never expires.
Am I charged when a request fails?
No. Failed or refused requests are not charged.
How much does a typical request cost?
A request with 1,000 input tokens and 500 output tokens costs $0.0004. Your own figure depends on the length of your prompts and replies.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.