LLM API Key Cost: What You Actually Pay
The llm api key cost on this service is zero: a key is free, and you pay only for the tokens you send and receive. Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens, drawn from prepaid credit.

Key points
- The key is free; billing is per token at $0.15 input and $0.50 output per 1M.
- New users can claim $0.50 of trial credit, valid for 7 days, with no card.
- The smallest top-up is $20, with bonuses of 5, 10 and 15 percent on larger ones.
- Chat history is the hidden cost: resending it every turn can multiply input tokens several times.
Three numbers cover the whole bill
People searching for the cost of an API key usually expect a monthly plan. There is none here. The bill is made of three things, and only the last one repeats.
| Item | Amount | Notes |
|---|---|---|
| Creating a key | $0 | No subscription and no seat fee. |
| Trial credit | $0.50 | One claim per person, valid for 7 days, no card needed. |
| Input tokens | $0.15 per 1M | Everything you send: system prompt, history, documents. |
| Output tokens | $0.50 per 1M | Everything the model writes back. |
| Top-up | $20 to $500 | Any whole amount; credit never expires. |
That is the full list. There is no free tier beyond the one-time trial, and nothing is billed for a request that fails or is refused. The pricing page shows the same figures in one place, and the rest of this article turns them into numbers you can plan with.
Start with the trial, then decide
After you sign up with Google, or with an email and password, the API key page shows a button that adds $0.50 of trial credit. One click, no card. It is one claim per person, and the credit lasts 7 days, so claim it when you are ready to test rather than the week before a holiday.
Fifty cents sounds small, but tokens are cheap. A request with 500 tokens in and 50 tokens out costs 500 x $0.15 / 1,000,000 + 50 x $0.50 / 1,000,000 = $0.000075 + $0.000025 = $0.0001. Divide $0.50 by that and you get 5,000 such requests. For longer exchanges, 2,000 tokens in and 500 out costs $0.0003 + $0.00025 = $0.00055, so the trial covers roughly 900 of those (0.50 / 0.00055 = 909).
One caution: a trial key is limited to 2 concurrent requests and 60 requests per minute. That is enough to check that your integration works. It is not enough to load-test a batch job, and hitting the cap returns HTTP 429, not a charge. If you have not claimed yours yet, the steps are on the API key page.
Per-request costs for common jobs
The table below prices several typical jobs. Each row multiplies the tokens by the rate, adds input and output, then scales to a batch. You can reproduce every figure with a calculator.
| Job | Tokens in / out | Cost per request | Batch cost |
|---|---|---|---|
| Classify a short message | 500 / 50 | $0.0001 | 10,000 requests: $1.00 |
| Chat reply with some context | 2,000 / 500 | $0.00055 | 1,000 requests: $0.55 |
| Summarize an article | 3,000 / 400 | $0.00065 | 1,000 requests: $0.65 |
| Long document analysis | 90,000 / 4,000 | $0.0155 | 100 requests: $1.55 |
Check the last row: 90,000 x $0.15 / 1,000,000 = $0.0135, and 4,000 x $0.50 / 1,000,000 = $0.002, which sum to $0.0155. Both numbers stay inside the 100,000-token window, since the window covers prompt and completion together.
Notice where the money goes. In the classification row, input and output each cost a similar amount. In the long-document row, almost 90 percent of the bill is input. Output tokens are more than three times the price of input tokens, but most jobs send far more than they receive, so input volume often decides the total.
Top-ups, bonuses and what $20 buys
You add credit in any whole amount from $20 to $500. Larger top-ups get a bonus on the credit you receive: +5% from $50, +10% from $100 and +15% from $200.
| 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 |
You can pay with crypto (USDT on TRC20 or USDC on Base). Credit never expires, so a bigger top-up does not push you to spend by a deadline. It only lowers your effective rate.
What does $20 mean in tokens? If you only read, it would buy about 133 million input tokens (20 / 0.15 = 133.3). If you only wrote, it would buy 40 million output tokens (20 / 0.50). Real usage mixes both. At the chat-reply profile above, $20 covers about 36,000 requests (20 / 0.00055 = 36,363). A hobby project may run for months on one top-up.
The hidden multiplier: conversation history
Chat APIs are stateless. Every turn, your code sends the whole conversation again, and every old message is billed as input once more. That is the usual reason a real invoice beats a back-of-the-envelope estimate.
Take a 20-turn chat. The system prompt is 400 tokens. Each turn the user writes 300 tokens and the model answers with 200, so history grows by 500 tokens per turn. The prompt on turn n is 400 + 500 x (n - 1) + 300 = 200 + 500n tokens. Summed over 20 turns that is 200 x 20 + 500 x 210 = 109,000 input tokens, plus 20 x 200 = 4,000 output tokens.
The cost is 109,000 x $0.15 / 1,000,000 = $0.01635 for input and 4,000 x $0.50 / 1,000,000 = $0.002 for output, so $0.01835 in total. A naive estimate that ignores history (20 x 300 = 6,000 in, 4,000 out) gives $0.0009 + $0.002 = $0.0029. The real figure is more than six times higher.
Ways to keep it down
- Trim old turns once the chat passes a set length, and keep the system prompt and the last few exchanges.
- Summarize the early part of the conversation into a short note and send that instead.
- Set
max_tokenswhen you know the answer should be short. It is optional, since a completion can use the rest of the window, but a cap prevents a runaway reply. - Do not paste the same large document into every request if the question only needs one page of it.
Watching your balance in code
Every response carries an X-Balance-USD header, so you can see the remaining credit without a separate call. Reading it with the OpenAI SDK needs the raw response wrapper:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.whisperapi.cc/v1",
api_key=os.environ["WHISPER_API_KEY"],
)
raw = client.chat.completions.with_raw_response.create(
model="uncensored",
messages=[{"role": "user", "content": "Reply with the word ready."}],
max_tokens=5,
)
completion = raw.parse()
print(completion.usage.prompt_tokens, completion.usage.completion_tokens)
print("balance:", raw.headers.get("X-Balance-USD"))Log the usage numbers and the balance after each job. A weekly look at the log tells you your real tokens-per-task average, which is a better planning figure than any estimate in an article. If the balance drops faster than expected, the culprit is almost always history or a pasted document, as in the section above.
For the request format itself, see the API docs. Mind the limits as well: a full key allows 8 concurrent requests and 300 requests per minute, and a 429 response is not billed.
When this pricing is not the right fit
Per-token billing suits uneven, project-style usage, where some weeks you send a lot and some weeks nothing. If you need a feature outside text chat, such as image or audio generation, embeddings or fine-tuning, this service does not offer it, and no amount of credit changes that. It serves one open-weight model, run by an independent provider, and it is not a router across vendors.
If you are comparing against another provider, compare the same workload, not the headline rate. Write down your average input and output tokens per task, apply each provider's current pricing (check their own pages, since rates change), and compare the totals. The method in this article works for any provider: tokens in, tokens out, two multiplications, one sum. For a broader view of what the endpoint offers, the overview page is a good next stop.
A simple budgeting routine
If you want a number for the next month, do this once. Run 20 to 50 real tasks on the trial credit or a first $20 top-up. Add up the prompt and completion tokens from the usage field of each response, then divide by the number of tasks. That gives you your own average tokens in and out per task.
Say the average is 1,200 in and 350 out. The cost per task is 1,200 x $0.15 / 1,000,000 = $0.00018 for input plus 350 x $0.50 / 1,000,000 = $0.000175 for output, which is $0.000355. At 50,000 tasks a month that is about $17.75, so a single $20 top-up would cover the month. Add a margin of 30 percent for retries and prompt changes and you land near $23, which is still a single $20 top-up plus a small second one.
Revisit the average whenever you change the prompt. Adding a long instruction block to every request raises input tokens for every call, and that shows up on the bill faster than any rate change would.
More guides
Questions and answers
Is there a free tier for the API key?
There is no permanent free tier. New users can claim a one-time $0.50 trial credit with one click after sign-up, valid for 7 days and requiring no card.
What is the minimum I have to pay?
The smallest top-up is $20, and you can choose any whole amount up to $500. There is no monthly fee on top of it.
Does my credit expire?
No. Prepaid credit never expires. Only the $0.50 trial credit has a deadline, which is 7 days from the claim.
Am I charged when a request fails?
No. Failed or refused requests are not charged, and a 429 rate-limit response is not billed either.
How do I estimate my monthly cost?
Measure average input and output tokens per task, multiply by $0.15 and $0.50 per 1M, then multiply by tasks per month. Remember to count resent chat history as input.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.