# APIRail > APIRail (apirail.dev) is a pay-as-you-go API gateway: one API key calls GPT, Claude and Gemini text models and GPT Image models through OpenAI-compatible and Anthropic-compatible endpoints and the native Gemini API at https://api.apirail.dev. Every model is billed in USD at 30% of the provider's list price, from a prepaid balance topped up with crypto from $20. APIRail is an independent API service and is not affiliated with OpenAI, Anthropic or Google. Model names are trademarks of their respective owners. ## What this site is APIRail (apirail.dev) is a pay-as-you-go API gateway: one API key calls GPT, Claude and Gemini text models and GPT Image models through OpenAI-compatible and Anthropic-compatible endpoints and the native Gemini API at https://api.apirail.dev. Every model is billed in USD at 30% of the provider's list price, from a prepaid balance topped up with crypto from $20. ## Key facts - The catalog has 23 text models and 5 image models from OpenAI, Anthropic and Google. - Endpoints: `POST /v1/chat/completions`, `POST /v1/responses`, `POST /v1/messages` and `/v1/messages/count_tokens`, `POST /v1/images/generations`, native Gemini `/v1beta/models/{model}:generateContent`, `GET /v1/models` and `GET /v1beta/models`. Video generation is not available. - Authentication: send the key as `Authorization: Bearer`, `x-api-key` or `x-goog-api-key`; Gemini routes also accept `?key=`. Keys start with `ar-live-`. - Each account can have up to 20 keys. Each key can have a monthly spending limit in USD and a list of allowed models. - Request metadata (model, token counts, cost, latency, status) is logged; prompt and response bodies are not stored. - Payment is crypto only (USDT, BTC and other coins via NOWPayments), from $20 to $5,000 per top-up. The balance does not expire. There is no subscription and no free tier. - Support: support@apirail.dev ## Product - [APIRail home](https://apirail.dev/) - [API pricing per 1M tokens](https://apirail.dev/pricing) - [API documentation](https://apirail.dev/docs) - [Dashboard](https://apirail.dev/dashboard): sign-in required ## Claude models - [Claude Opus 5.5 API](https://apirail.dev/models/claude-opus-5-5) - [Claude Opus 5 API](https://apirail.dev/models/claude-opus-5) - [Claude Sonnet 5.5 API](https://apirail.dev/models/claude-sonnet-5-5) - [Claude Sonnet 5 API](https://apirail.dev/models/claude-sonnet-5) - [Claude Haiku 5.5 API](https://apirail.dev/models/claude-haiku-5-5) - [Claude Opus 4.8 API](https://apirail.dev/models/claude-opus-4-8) ## GPT models - [GPT-6.2 Sol API](https://apirail.dev/models/gpt-6.2-sol) - [GPT-6.2 Astra API](https://apirail.dev/models/gpt-6.2-astra) - [GPT-6.1 Sol API](https://apirail.dev/models/gpt-6.1-sol) - [GPT-6 Sol API](https://apirail.dev/models/gpt-6-sol) - [GPT-6 Astra API](https://apirail.dev/models/gpt-6-astra) - [GPT-6 Luna API](https://apirail.dev/models/gpt-6-luna) - [GPT-5.6 Sol API](https://apirail.dev/models/gpt-5.6-sol) - [GPT-5.6 Terra API](https://apirail.dev/models/gpt-5.6-terra) - [GPT-5.6 Luna API](https://apirail.dev/models/gpt-5.6-luna) - [GPT-5.5 API](https://apirail.dev/models/gpt-5.5) - [GPT-5.4 API](https://apirail.dev/models/gpt-5.4) - [GPT Image 2 API](https://apirail.dev/models/gpt-image-2) - [GPT Image 2.5 Flare API](https://apirail.dev/models/gpt-image-2.5-flare) - [GPT Image 2.5 Sunburst API](https://apirail.dev/models/gpt-image-2.5-sunburst) - [GPT Image 2.6 Flare API](https://apirail.dev/models/gpt-image-2.6-flare) - [GPT Image 2.6 Sunburst API](https://apirail.dev/models/gpt-image-2.6-sunburst) ## Gemini models - [Gemini 4 Neon API](https://apirail.dev/models/gemini-4-neon) - [Gemini 4 Argon API](https://apirail.dev/models/gemini-4-argon) - [Gemini 4 Carbon API](https://apirail.dev/models/gemini-4-carbon) - [Gemini 4 Hydrogen API](https://apirail.dev/models/gemini-4-hydrogen) - [Gemini 3.8 Flash API](https://apirail.dev/models/gemini-3.8-flash) - [Gemini 3.5 Flash Lite API](https://apirail.dev/models/gemini-3.5-flash-lite) ## Company - [About](https://apirail.dev/about) - [Contact](https://apirail.dev/contact) - [Terms of Service](https://apirail.dev/terms) - [Privacy Policy](https://apirail.dev/privacy) ## Pricing Every model is billed at 30% of the provider's list price: per token for text models (cached input at the cached rate) and per image for image models. Prices below are APIRail prices in USD. - GPT-6.2 Sol (`gpt-6.2-sol`): $0.60 / 1M input tokens, $3.00 / 1M output tokens. - GPT-6.2 Astra (`gpt-6.2-astra`): $2.40 / 1M input tokens, $12.00 / 1M output tokens. - GPT-6.1 Sol (`gpt-6.1-sol`): $0.60 / 1M input tokens, $3.00 / 1M output tokens. - GPT-6 Sol (`gpt-6-sol`): $0.60 / 1M input tokens, $3.00 / 1M output tokens. - GPT-6 Astra (`gpt-6-astra`): $3.00 / 1M input tokens, $15.00 / 1M output tokens. - GPT-6 Luna (`gpt-6-luna`): $0.03 / 1M input tokens, $0.15 / 1M output tokens. - GPT-5.6 Sol (`gpt-5.6-sol`): $1.20 / 1M input tokens, $6.00 / 1M output tokens. - GPT-5.6 Terra (`gpt-5.6-terra`): $0.60 / 1M input tokens, $3.60 / 1M output tokens. - GPT-5.6 Luna (`gpt-5.6-luna`): $0.06 / 1M input tokens, $0.36 / 1M output tokens. - GPT-5.5 (`gpt-5.5`): $1.50 / 1M input tokens, $9.00 / 1M output tokens. - GPT-5.4 (`gpt-5.4`): $0.75 / 1M input tokens, $4.50 / 1M output tokens. - Claude Opus 5.5 (`claude-opus-5-5`): $1.20 / 1M input tokens, $6.00 / 1M output tokens. - Claude Opus 5 (`claude-opus-5`): $1.50 / 1M input tokens, $7.50 / 1M output tokens. - Claude Sonnet 5.5 (`claude-sonnet-5-5`): $0.60 / 1M input tokens, $3.00 / 1M output tokens. - Claude Sonnet 5 (`claude-sonnet-5`): $0.60 / 1M input tokens, $3.00 / 1M output tokens. - Claude Haiku 5.5 (`claude-haiku-5-5`): $0.03 / 1M input tokens, $0.15 / 1M output tokens. - Claude Opus 4.8 (`claude-opus-4-8`): $1.50 / 1M input tokens, $7.50 / 1M output tokens. - Gemini 4 Neon (`gemini-4-neon`): $0.90 / 1M input tokens, $4.50 / 1M output tokens. - Gemini 4 Argon (`gemini-4-argon`): $0.60 / 1M input tokens, $3.00 / 1M output tokens. - Gemini 4 Carbon (`gemini-4-carbon`): $0.60 / 1M input tokens, $3.00 / 1M output tokens. - Gemini 4 Hydrogen (`gemini-4-hydrogen`): $0.45 / 1M input tokens, $2.25 / 1M output tokens. - Gemini 3.8 Flash (`gemini-3.8-flash`): $0.225 / 1M input tokens, $1.125 / 1M output tokens. - Gemini 3.5 Flash Lite (`gemini-3.5-flash-lite`): $0.09 / 1M input tokens, $0.75 / 1M output tokens. - GPT Image 2 (`gpt-image-2`): $0.04 per image. - GPT Image 2.5 Flare (`gpt-image-2.5-flare`): $0.04 per image. - GPT Image 2.5 Sunburst (`gpt-image-2.5-sunburst`): $0.04 per image. - GPT Image 2.6 Flare (`gpt-image-2.6-flare`): $0.04 per image. - GPT Image 2.6 Sunburst (`gpt-image-2.6-sunburst`): $0.04 per image. - [Pricing](https://apirail.dev/pricing) ## Frequently asked questions ### How do I get a Claude API key on APIRail? Sign in with Google, create a key under Dashboard → API keys, top up at least $20, then point your client at `https://api.apirail.dev`. The same key works for GPT and Gemini. ### Is APIRail compatible with the OpenAI and Anthropic SDKs? Yes. `/v1/chat/completions`, `/v1/responses`, `/v1/messages` (+ `count_tokens`), `/v1/images/generations`, and native Gemini `/v1beta/models/{model}:generateContent`. Change the base URL and key; the rest of your code stays the same. ### How is usage priced? Per token, at 30% of the provider's list price, with cached input billed at the cached rate. Each request's cost is rounded up to the nearest micro-dollar and shown in your usage log. ### Can I use it with Claude Code or Codex CLI? Yes: `ANTHROPIC_BASE_URL=https://api.apirail.dev` + `ANTHROPIC_AUTH_TOKEN=ar-live-…` for Claude Code; `OPENAI_BASE_URL=https://api.apirail.dev/v1` + `OPENAI_API_KEY` for Codex CLI. ### How do I pay? Top up your USD balance with crypto (USDT, BTC and other coins via NOWPayments), from $20. Balance does not expire. Card payment is not available yet. ### Am I charged when a request fails? No charge when the model provider returns an error. If you cancel a stream midway, you pay for the tokens already generated. ### Can I limit what a key can spend? Yes. Each key can have a monthly spending limit and a list of allowed models, and can be disabled at any time. Up to 20 keys per account. ### Do you store my prompts or outputs? No. APIRail logs request metadata only (model, token counts, cost, latency, status). Prompt and response bodies are passed through and not stored. Languages: English has no URL prefix. Other locales use `/zh`, `/ru`, `/de`, `/fr`, `/ja`, `/ko`, `/es`, `/pt`, `/tr`.