GPT-6.2 Sol
gpt-6.2-sol
- Context
- 922K
- Input / 1M
- $2.00$0.60
- Output / 1M
- $10.00$3.00
Pay-as-you-go API gateway
OpenAI- and Anthropic-compatible endpoints. Pay as you go at 30% of each provider's list price. No subscription.
$ curl https://api.apirail.dev/v1/chat/completions \ -H "Authorization: Bearer ar-live-…" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5-5", "stream": true, "messages": [{"role": "user", "content": "Say hello in one sentence."}] }' data: {"model":"claude-sonnet-5-5","choices":[{"delta":{"content":"Hello"}}]} data: {"model":"claude-sonnet-5-5","choices":[{"delta":{"content":"! Your request"}}]} data: {"model":"claude-sonnet-5-5","choices":[{"delta":{"content":" reached Claude"}}]} data: {"model":"claude-sonnet-5-5","choices":[{"delta":{"content":" through APIRail."}}]} data: {"choices":[],"usage":{"prompt_tokens":14,"completion_tokens":11}} data: [DONE] # Hello! Your request reached Claude through APIRail.
APIRail prices per 1M tokens, next to the provider's list price.
gpt-6.2-sol
gpt-6.2-astra
gpt-5.5
claude-opus-5-5
claude-sonnet-5-5
claude-haiku-5-5
gemini-4-neon
gemini-4-hydrogen
gpt-image-2
Change the base URL and the key. The rest of your code stays the same.
Base URL https://api.apirail.dev/v1 for Chat Completions, Responses and Images. Works for GPT, Claude and Gemini model IDs.
from openai import OpenAI
client = OpenAI(base_url="https://api.apirail.dev/v1", api_key="ar-live-YOUR_KEY")
stream = client.chat.completions.create(
model="gpt-6.2-sol",
messages=[{"role": "user", "content": "Say hello in one sentence."}],
stream=True,
)
for chunk in stream:
if chunk.choices:
print(chunk.choices[0].delta.content or "", end="")APIRail sits between your app and the model provider. It checks, meters and passes the request through.
Sends a request with an ar-live key
Key check, balance check, usage metering
Runs the model you asked for
Tokens reach your app as they are generated
Give each key a monthly limit in USD and a list of allowed models. A key that reaches its limit stops with a clear error instead of draining your balance.
Each call is recorded with its model, key, token counts, cost, time to first token, latency and status, so you can see where every cent went.
While a long request waits for its first token, APIRail sends keep-alive comments so proxies and load balancers do not close the stream early.
2,000 input tokens and 500 output tokens, priced from the current catalog.
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.
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.
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.
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.
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.
No charge when the model provider returns an error. If you cancel a stream midway, you pay for the tokens already generated.
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.
No. APIRail logs request metadata only (model, token counts, cost, latency, status). Prompt and response bodies are passed through and not stored.
Sign in with Google, top up your balance and send your first request to api.apirail.dev.
Get your API key