API pricing per 1M tokens
Your APIRail balance is plain USD. Every model is billed at 30% of the provider's list price, per token for text models and per image for image models. Each request's cost is rounded up to the nearest micro-dollar ($0.000001) and deducted from your balance. Top up from $20; there is no subscription.
Claude API pricing
| Model | Context | Input / 1M | Cached input / 1M | Output / 1M | List price in / out |
|---|---|---|---|---|---|
| Claude Opus 5.5claude-opus-5-5 | 1M | $1.20 | $0.06 | $6.00 | $4.00 / $20.00 |
| Claude Opus 5claude-opus-5 | 1M | $1.50 | $0.15 | $7.50 | $5.00 / $25.00 |
| Claude Sonnet 5.5claude-sonnet-5-5 | 1M | $0.60 | $0.03 | $3.00 | $2.00 / $10.00 |
| Claude Sonnet 5claude-sonnet-5 | 1M | $0.60 | $0.06 | $3.00 | $2.00 / $10.00 |
| Claude Haiku 5.5claude-haiku-5-5 | 1M | $0.03 | $0.003 | $0.15 | $0.10 / $0.50 |
| Claude Opus 4.8claude-opus-4-8 | 1M | $1.50 | $0.15 | $7.50 | $5.00 / $25.00 |
GPT API pricing
| Model | Context | Input / 1M | Cached input / 1M | Output / 1M | List price in / out |
|---|---|---|---|---|---|
| GPT-6.2 Solgpt-6.2-sol | 922K | $0.60 | $0.03 | $3.00 | $2.00 / $10.00 |
| GPT-6.2 Astragpt-6.2-astra | 922K | $2.40 | $0.12 | $12.00 | $8.00 / $40.00 |
| GPT-6.1 Solgpt-6.1-sol | 922K | $0.60 | $0.03 | $3.00 | $2.00 / $10.00 |
| GPT-6 Solgpt-6-sol | 922K | $0.60 | $0.06 | $3.00 | $2.00 / $10.00 |
| GPT-6 Astragpt-6-astra | 922K | $3.00 | $0.30 | $15.00 | $10.00 / $50.00 |
| GPT-6 Lunagpt-6-luna | 922K | $0.03 | $0.003 | $0.15 | $0.10 / $0.50 |
| GPT-5.6 Solgpt-5.6-sol | 922K | $1.20 | $0.12 | $6.00 | $4.00 / $20.00 |
| GPT-5.6 Terragpt-5.6-terra | 922K | $0.60 | $0.06 | $3.60 | $2.00 / $12.00 |
| GPT-5.6 Lunagpt-5.6-luna | 922K | $0.06 | $0.006 | $0.36 | $0.20 / $1.20 |
| GPT-5.5gpt-5.5 | 1.05M | $1.50 | $0.15 | $9.00 | $5.00 / $30.00 |
| GPT-5.4gpt-5.4 | 1.05M | $0.75 | $0.075 | $4.50 | $2.50 / $15.00 |
Gemini API pricing
| Model | Context | Input / 1M | Cached input / 1M | Output / 1M | List price in / out |
|---|---|---|---|---|---|
| Gemini 4 Neongemini-4-neon | 1M | $0.90 | $0.045 | $4.50 | $3.00 / $15.00 |
| Gemini 4 Argongemini-4-argon | 1M | $0.60 | $0.03 | $3.00 | $2.00 / $10.00 |
| Gemini 4 Carbongemini-4-carbon | 1M | $0.60 | $0.03 | $3.00 | $2.00 / $10.00 |
| Gemini 4 Hydrogengemini-4-hydrogen | 1M | $0.45 | $0.0225 | $2.25 | $1.50 / $7.50 |
| Gemini 3.8 Flashgemini-3.8-flash | 1M | $0.225 | $0.0225 | $1.125 | $0.75 / $3.75 |
| Gemini 3.5 Flash Litegemini-3.5-flash-lite | 1M | $0.09 | $0.009 | $0.75 | $0.30 / $2.50 |
Image API pricing
| Model | Per image |
|---|---|
| GPT Image 2gpt-image-2 | $0.04 |
| GPT Image 2.5 Flaregpt-image-2.5-flare | $0.04 |
| GPT Image 2.5 Sunburstgpt-image-2.5-sunburst | $0.04 |
| GPT Image 2.6 Flaregpt-image-2.6-flare | $0.04 |
| GPT Image 2.6 Sunburstgpt-image-2.6-sunburst | $0.04 |
How billing works
Top up
Top up your balance with crypto (USDT, BTC and other coins via NOWPayments) from $20. When the payment is confirmed, the amount is added to your account 1:1 in USD. The balance does not expire.
Per-request metering
Each request is priced from its token counts, or its number of images, at the rates on this page. Cached input is billed at the cached rate. The cost is rounded up to the nearest micro-dollar and recorded in your usage log.
Key limits
Each API key can have a monthly spending limit and a list of allowed models. When a key reaches its limit, its requests stop until the next month or until you raise the limit.
FAQ
What is the minimum top-up?
$20. Each top-up can be any whole amount from $20 to $5,000, and it is added to your balance in USD.
Does my balance expire?
No. Your USD balance stays on your account until you spend it.
How is cached input billed?
When the model provider serves part of your prompt from its cache, those tokens are billed at the cached input rate in the tables above, which is much lower than the normal input rate. Models with a cache write rate bill cache writes at that rate.
Am I charged for failed requests?
No charge when the model provider returns an error. If you cancel a stream midway, you pay for the tokens already generated.
Can I get a refund?
Email [email protected] with your account email and the order ID, and we will review your request.
Ready to call a model?
Top up from $20 and use the same key for every model on this page.
Top up balance