Skip to navigation

Prepaid LLM API credits: how they work and the risks

In short: Prepaid LLM API credits explained: reservations, fees, expiry, spend caps and what an empty balance does, with terms read on 26 November 2026.

Published 21 min read
On this page

Prepaid LLM API credits are a balance you fund before you call a model: each request subtracts its token cost, and when the balance cannot cover the next request, the gateway refuses it. The risks sit around the edges of that simple idea, in fees charged when you buy, expiry clauses, short money-back windows at some providers, a reservation that can refuse a call while money remains, and a key that spends your balance faster than you do.

What are prepaid LLM API credits, and how do they differ from a bill?

A postpaid API sends an invoice after the fact: you use first and pay at the end of the month, usually against a card on file. A prepaid API flips the order. You put money in, usage draws it down, and the provider stops serving paid requests when it reaches zero. Official providers use it too: OpenAI’s error code reference has a dedicated entry for an organization with “no prepaid credits remaining”, which tells you the model is not only for resellers.

For a small team the difference shows up in three places. The first is the worst case: with prepaid credit, a bug that loops all night can burn the balance but not a card limit you never looked at. The second is cash flow, since you decide when money leaves your account and how much. The third is friction. A balance can run out at 3 a.m., and a stopped request is a harder failure than a late invoice. Most of what follows is about making that failure rare and boring.

A subscription is a third model, with a fixed monthly price and an allowance. Plans are closed on this gateway, so everything here is pay as you go: one balance, one rate per model, no monthly fee, as the billing documentation describes.

How does a request take money from the balance?

Four things happen to your balance on every priced request, and knowing the order explains most “why was I refused” questions. The diagram follows one call through the gateway as the routing documentation describes it.

One priced request and your balance

Key and limit checkenabled, not expired, under its spend limitReserve an estimatefrom the prompt size and max_tokensForward to the model providerretry twice, then fallback or auto routingSettle the real costtokens used, record written, hold released
The refusal for a low balance happens at step two, before any model runs, so nothing is charged. The gateway retries the named model up to twice; if it is still failing, fallback rules, presets and automatic routing move the request to another similar model. Only the attempt that answers is billed.

The reservation is the part people miss. Before the call, the gateway estimates its cost from the size of the prompt and from max_tokens, and holds that amount. After the call it replaces the hold with the real cost. That means a request can be refused while your balance still shows a few cents, because the estimate for a long prompt with no output cap is bigger than what is left. The error reference says so in plain words, and the fix is cheap: set max_tokens on every call. Our guide to cutting LLM API costs covers why that cap pays for itself twice.

Three details settle the edge cases. A reply that is already streaming when your balance reaches zero finishes and is billed in full, so the balance can end slightly negative and the next top-up covers that amount first. A stream you stop early is billed only for the tokens produced until then. And requests that fail before the model produces anything are not charged. OpenRouter’s pricing FAQ makes the same promise for fallbacks on its side: an attempt that errors is not charged, so with fallback you pay only for the run that answers.

The console shows a balance rounded down to the cent, so you never see money you do not have. Each charge is on the usage page with model, key, tokens and cost, and the billing page keeps the credit history. Those records hold counts only (tokens, cost, timing, model, key name and request id), never content: by default prompts and answers pass through and are not kept, and we do not train on your data. The privacy guide lists the exceptions, such as opt-in prompt logging per key. If a figure looks wrong, the arithmetic is in the billing docs, and a wrong charge is a technical issue you can take to support with the request id.

What do the terms cost you at different gateways?

The sticker price of a token is only half of a prepaid deal. The other half is what the provider takes when you buy, how long the money lives, and how fast you can get it back. The table collects what each provider’s own page said on 26 November 2026. A cell that says “not stated” means the page we read did not say, which is different from “no”.

Fee when you buy credit Do credits expire? Money back on unused credit Auto top-up
One AI API Key None: the amount you add is the amount you get Not while the account is open and in good standing No refunds once a key is created and usage is consumed; support looks at a key that does not work or a technical issue, see the terms No, credit is added by email today
OpenRouter 5.5% with an $0.80 minimum, 5% for crypto, 8% on Business The terms reserve the right to expire after one year Request within 24 hours; platform fees and crypto payments are not refunded Yes
Vercel AI Gateway No platform fee on tokens; you pay payment-processing fees Not stated on the pricing page Not stated on the pricing page Not stated on the pricing page
Cloudflare AI Gateway 5% on Unified Billing credits, card only Not stated on the pricing page Not stated on the pricing page Not stated on the pricing page
Fireworks Not stated on the pricing page Not stated on the pricing page Not stated on the pricing page Yes, with monthly spend limits

Two reading notes. OpenRouter’s FAQ also says deleting an account loses unused credits and they cannot be reclaimed if you sign up again, which is worth knowing before you close an account with a balance. And Cloudflare spells out its fee with an example: a $100 credit purchase results in a $105 charge. Compare that with a gateway that adds no fee at purchase. The honest caveat on our side is that we make our margin in the per-token rate, not in a purchase fee, so the fee-free line does not mean our tokens are cheaper than anyone’s. The fee comparison puts both parts in one calculation, the OpenRouter comparison page is dated and sourced, and the seven-gateway comparison lines up the other providers the same way. If you would rather not hold a prepaid balance with anyone, self-hosting LiteLLM means you pay each model provider directly, at the cost of running the proxy, which the self-host comparison prices out.

Fee charged on a $100 credit purchase

  • One AI API Key$0the amount you add is the amount you get
  • Vercel AI Gateway$0no platform fee, plus payment-processing fees
  • OpenRouter, crypto$5.00
  • Cloudflare Unified Billing$5.00card only
  • OpenRouter, Standard card$5.505.5% is above the $0.80 minimum at this size
  • OpenRouter, Business$8.00
Fees only, from each provider's own page on 26 November 2026. Vercel's processing fees depend on your payment method and are not a fixed figure. This chart says nothing about token prices, which differ by model and by provider.

The money-back column matters because of what it implies. OpenRouter allows a request within 24 hours, so that decision is made the day you buy. Here, once a key is created and usage is consumed it stays spent, so the sensible move is the same on both: buy small first and test.

How long will your balance last?

Runway is the number that matters, and most people guess it. The calculator turns a balance and your traffic into days. It starts with GPT-5.6 Terra at its published rates, $2 per million input tokens and $12 per million output tokens, read from the model list when this page was built. Replace them with the rates of the model you use from the model pages or the per-million price comparison, and the token counts with real averages from your usage page. One caveat: on 26 November 2026 every priced id, this one included, is marked unavailable on its model page because its upstream route is not answering, so the runway below is arithmetic on published rates, not a promise that the model will answer today.

Prepaid balance runway

Cost of one request
$0.0132
Cost per day
$1.98
Balance lasts
10.1 days
Cost for 30 days
$59.40
Top-up for 30 days
$39.40
Low-balance alert level (3 days of spend)
$5.94
Verdict
Fine today, plan the next top-up

The estimate assumes steady traffic and ignores cached-input discounts, so a prompt-caching workload will do better. Output tokens, including reasoning tokens, are billed at the output rate.

With the defaults, the answer is about ten days on $20, which is a good illustration of the usual surprise: output tokens cost several times what input tokens cost, so 600 output tokens a reply dominate the bill even though the prompts are five times longer. If you want to see where tokens go, the glossary defines input, output and cached tokens, and the cost control guide lists six habits that cut the number.

Days a $20 balance lasts at three traffic levels

  • 50 requests a day30.3 days
  • 150 requests a day10.1 days
  • 450 requests a day3.4 days
Same request size as the calculator defaults (3,000 input and 600 output tokens) at the published rates of the example model, ignoring caching. It is arithmetic on published rates, not a promise the model answers today.

The last output of the calculator is the one to act on. A low-balance alert at three days of spend gives you time to email for a top-up, and with email-based top-ups, time matters: a reply and a payment are not instant. Set the alert level on the console’s settings page, as the account security docs describe, and read the post on low-balance alerts by email and signed webhook if you want the alert to page you.

What can go wrong with a prepaid balance?

Most failures are boring and predictable. Here are the ones we see, roughly in order of how often they cost money or time.

  1. A loop spends the balance overnight. Coding agents and retry loops can issue hundreds of requests, each resending a long history. A balance does not care why a request was made. The fix is a spend limit per key, which stops that key and nothing else.
  2. A leaked key spends it faster. Under our terms, every request made with your key is charged to your balance whether or not you authorised it. Treat keys like passwords: the post on API key security for AI apps covers storage and rotation.
  3. A top-up arrives after the balance empties. Email top-ups are slower than a card checkout. We say so because the failure is yours to plan for, not a surprise to discover.
  4. A fee eats the top-up. A 5.5% fee on a $100 purchase is $5.50 before you have sent a token. For a small team that is real money.
  5. An expiry clause outlives your patience. Credits that can lapse after a year are fine if you spend them in a quarter and a poor fit for a savings-style top-up.
  6. Spent usage cannot come back. Once a key is created and usage is consumed, we do not give money back, and other providers’ windows are short too. This is why the first top-up should be small, and why the sign-up credit and the free models exist: you find out first.
  7. Closing the account with a balance on it. OpenRouter’s FAQ says deleting an account loses unused credits. Ask any provider what closing does before you close.
  8. A provider changes a price or retires a model. Your balance keeps its dollar value and works on other models, but your costs per request move.
  9. A cheap reseller delivers less than you paid for. Low prices alone predict nothing about quality: the research on reseller risks found swapped models and padded token counts, and a prepaid balance is a poor place to find that out. The six checks to verify the model take an afternoon with a few dollars.

None of these is exotic. Each is cheaper to prevent than to fix, and the checklist below turns them into things you can tick before you add money.

Before you top up a prepaid API balance

0 of 8 ticked

Not yet

Start with the free models and the sign-up credit, and add real money only after you can tick most of these.

Which error means the balance is empty?

Providers disagree on the status code for “you are out of money”, which is why a retry loop written for one provider misbehaves on another. The table lists what each one’s docs say. The common thread, stated in OpenAI’s guide, is that retrying a billing, spend or quota error does not restore access: you have to change the credit or the limit first.

Situation One AI API Key OpenRouter OpenAI
Balance is $0 402, code paid_needs_deposit 402 (credit limits) 429, code credit_balance_exhausted
Balance too low for this one request 403, code insufficient_user_quota 402 (credit limits, including the in-flight budget) Not listed on the error page
A key or project spend limit reached 403, code pre_consume_token_quota_failed 403 (budget limits, including the key’s own limit once spent) 429, code project_spend_limit_exceeded
Account-wide spend cap reached 429, code account_spend_cap, with a Retry-After 403 (workspace and guardrail budgets) 429, code organization_spend_limit_exceeded
Too many requests per minute 429 429 429

Sources for the columns are our error reference, OpenRouter’s limits page and OpenAI’s error codes. The practical rule is to branch on the HTTP status first and the error.code second, never on message text, and to treat a 402 or a 403 as “stop and tell a human” while a 429 about speed gets a backoff. The post on LLM API 429 errors separates the three kinds of 429 in detail, because a spend cap and a rate limit share a status and need opposite handling.

What an empty balance looks like
# A paid call on an account with no balance. The status and code are what your error handler should branch on.
curl -i https://api.oneaiapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $ONEAIAPIKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-5.6-terra", "max_tokens": 50, "messages": [{"role": "user", "content": "ping"}]}'

# HTTP/2 402 ... "code": "paid_needs_deposit"   (balance is $0)
# HTTP/2 403 ... "code": "insufficient_user_quota"   (balance too low for this one request)
# HTTP/2 403 ... "code": "pre_consume_token_quota_failed"   (this key reached its own spend limit)

If you would rather not discover this in production, test it once on purpose with a throwaway key that has a tiny spend limit. A request that stops on the limit leaves your balance and your other keys untouched, and you will have seen the exact body your code needs to handle.

How do you cap the damage from a bug or a leak?

Three layers, from narrow to wide, and each stops a different accident.

A spend limit on every key. A key that reaches its limit stops working on its own; the account balance and the other keys keep going. Set one on every app, environment and teammate, together with an expiry date for temporary access and a model allowlist so a typo cannot move an app onto an expensive model. The cost-control page and the authentication docs describe each setting, and you manage them under Keys.

An account spend cap. This protects the balance itself. In the console settings you can set an amount per day, week or month (all UTC), and every metered request counts, whichever key made it. At the cap, paid models are refused with a 429 and a Retry-After that counts down to the reset, while free models still answer. A cap of $0 switches paid models off for the account without touching any key, which is a handy emergency brake. The request that crosses the cap still finishes, so the total can end slightly above it. The cost-control docs have the details.

A budget in your own code. The gateway cannot know that one script run should cost less than five dollars. A few lines can. The snippet below keeps a running total from the usage object in each reply and stops before the next call. It uses the rates you copy from the model page, so it needs an update when a price changes, and it complements the server-side limits rather than replacing them.

A per-run spend guard, OpenAI SDK
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.oneaiapikey.com/v1", api_key=os.environ["ONEAIAPIKEY_API_KEY"])

# Dollars per 1M tokens, copied from the model's page. Check them again after a price change.
INPUT_RATE, OUTPUT_RATE = 2, 12
SESSION_BUDGET = 5.00   # the most this script may spend in one run
spent = 0.0


def ask(prompt: str) -> str:
    global spent
    if spent >= SESSION_BUDGET:
        raise RuntimeError("session budget used up, stopping before the next call")
    reply = client.chat.completions.create(
        model="gpt-5.6-terra",
        max_tokens=300,  # also lowers the amount the gateway reserves before the call
        messages=[{"role": "user", "content": prompt}],
    )
    usage = reply.usage
    spent += (usage.prompt_tokens * INPUT_RATE + usage.completion_tokens * OUTPUT_RATE) / 1_000_000
    return reply.choices[0].message.content

Spend limits per key are also how you keep a shared account sane. The post on one key per project with spend limits shows a layout for three environments, and the coding agent key guide covers the case where an agent holds the key.

How does a top-up work here today?

Plainly, and with some friction we would like to remove. Online checkout is not open yet. To add credit you email support@oneaiapikey.com (or use the Email to buy button on the billing page) with your username and the amount. We reply with how to pay, and the credit is added to your balance once the payment is received. The packs are $10, $50, $200 at one credit per dollar, and any amount from $1 works. No processing fees, no card deposit fees: the amount you add is the amount you get. The pricing page shows the current steps and the billing docs describe how credit is deducted.

A few rules that matter for a prepaid balance, all from our published policies:

  • Sign-up credit comes first. Every new account gets $10 once, with no card, and it pays for every model at the listed price. It is given once per internet connection and device, and it has no cash value.
  • Free ids are separate. The 47 ids ending in :free work with a $0 balance: no top-up and no card, and they keep working after the sign-up credit is spent. They share 100 requests and 3,000,000 tokens a day per account, refilled at 00:00 UTC, and bill $0 per token. The free models list has every id, the guide to free models says which suits what, and the guide to a free LLM API with no credit card compares the daily caps of other providers.
  • Spent usage stays spent. We do not provide refunds once a key is created and usage is consumed; people can change their mind, but it is an online product. Support looks at a key that does not work or a technical problem on our side, you write to somdutt777@gmail.com with a genuine concern, and exceptions are decided case by case. The terms and the guide to money-back terms go through it.
  • No shutdown clause. There is no separate rule for the case where we close the service, so that would be decided case by case. Keep balances small.

What we do not have is the part of the prepaid experience people like most: no auto-reload, no card checkout, no invoicing, no team billing roles. If you need those today, the table above shows who offers them, and the post on choosing an LLM API provider lists what else to weigh. We would rather you pick the provider that fits than hold a balance somewhere that does not.

How much should you add?

Less than you think, at first. A first top-up has two jobs: pay for real traffic and show you what real traffic costs. A pack of $10 does both for most small projects, and nothing stops you adding a larger amount once the daily number is steady.

A workable rule is two to four weeks of the daily cost from the calculator, plus an alert at three days. That keeps the money you could lose to an expiry, a policy change or a mistake small, and it makes a top-up a routine task, not an event. Stable teams that spend steadily can move to monthly top-ups timed to the usage report that arrives by email if you opt in, which shows spend, top models and top keys and an estimate of how long the balance lasts at that rate.

Before you add anything, use the free lane to settle the open questions: whether the model quality is good enough, whether your error handling copes with a 429, and whether your token estimate was right. The browser chat draws on the same daily allowance and needs no code, and the chat guide shows what it can do. When the free allowance stops fitting, you have a number to put in the calculator, which is a better position than guessing. If you are moving a balance over from OpenRouter, the migration guide covers base URL, keys and model ids, so you can run both and spend the old balance down first. If you are weighing us against other gateways, the review says what we are and are not, and what an LLM gateway is explains the layer we sit in.

Does an uptime promise come with a prepaid balance?

No, and that surprises people. A balance buys tokens at a rate, not availability. We offer no uptime guarantee, as the terms say, and there are no service credits for downtime. What we publish instead is evidence: a status page, a 24-hour strip on every model page and public counts on rankings.

Reserved capacity is a different product. Fireworks’ pricing page separates pay-per-token serverless, whose usage draws down prepaid credits, from Reserved Throughput, which carries a throughput SLA and 99.9% uptime terms and a commitment. If a contract-backed uptime number matters, that is the shape of product that offers one. For everyone else, the practical protection is a fallback list: our gateway retries the named model up to twice, and if the model is still failing, fallback rules, presets and automatic routing move the request to another similar model (up to three ids in X-Fallback-Models, and the free lane also retries a failing :free call on another model). Only the attempt that answers is billed. The post on uptime and fallbacks turns that into numbers.

Find out what your traffic costs before you add a cent

$10 sign-up credit, 47 free models sharing 100 requests and 3,000,000 tokens a day, no card.

Frequently asked questions

What are prepaid LLM API credits?
A balance you fund before you make calls. Each request deducts its token cost from that balance at the model's per-token rate, and requests stop when the balance cannot cover them. You cannot owe more than you added, which is the main reason people prefer it to a monthly invoice. The billing documentation shows the arithmetic on this gateway.
Do prepaid API credits expire?
It depends on the provider. OpenRouter's FAQ says it reserves the right to expire unused credits one year after purchase. Here, purchased credit does not expire while your account is open and in good standing, as the billing page states. Always read the expiry line before a large top-up.
Can I get unused credits back?
It depends on the provider, and often only inside a short window. OpenRouter allows a refund request within 24 hours of the transaction and does not refund platform fees. Here, once a key is created and usage has been consumed, we do not give money back. Support looks at a key that does not work or a technical problem on our side, and you write to somdutt777@gmail.com with a genuine concern. The terms carry the legal text, and the guide to money-back terms covers more cases.
Why can a request be refused when my balance is above zero?
Before a request runs, the gateway reserves an estimate of its cost, and the estimate depends on your prompt and on max_tokens. If the balance cannot cover the reservation, the request stops with a 403 even though a few cents remain. A lower max_tokens lowers the reservation. The error reference explains the codes.
What happens when my balance reaches zero?
Priced models are refused with HTTP 402 (code paid_needs_deposit), nothing is charged and nothing else about your account changes. The 47 free ids work with a $0 balance, with no top-up and no card, and keep working after the sign-up credit is spent. Their only limit is the shared daily allowance of 100 requests and 3,000,000 tokens, refilled at 00:00 UTC, and the guide to free models says which one suits which job. A reply that was already running when the balance hit zero finishes and is billed in full, so the balance can end slightly below zero, and the next top-up covers that first.
How do I stop a leaked key or a runaway loop from draining the balance?
Give every project its own key with a spend limit, set an account spend cap, and turn on a low-balance alert. The cost-control page lists the limits, and the post on one key per project walks through the setup. Keys that leak are still charged to your balance under the terms, so a limit is the real protection.
How do I add credit here today?
Online checkout is not open yet. Email support@oneaiapikey.com with your username and the amount, and we reply with how to pay. Any amount from $1 works and there are no processing fees. The pricing page always shows the current steps.
How much should I top up at first?
Add what you expect to spend in the next two to four weeks, not a year of budget. Start with the $10 sign-up credit and the 47 free models, work out your real cost per day, then add credit. The cost calculator and the guide to estimating a monthly LLM bill help with the number.
More in Blog

Try it

One API key for GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2 and Roleplay.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.

New accounts$10 credit on sign-up
  • 100requests
    per day
  • 3Mtokens
    per day
  • 47free
    models
  • $0per
    token
  • No card
  • No end date
Claim $10 credit →