🚀 One API for every frontier model on FastInfra

Browse models

Transparent per-token pricing → compare providers on FastInfra

View pricing

OpenAI-compatible chat completions → start in minutes

Read the docs

⚡ Server Auction → Enterprise bare metal from $78.15/mo (173 in stock)

Browse deals

FastInfra Solutions

One OpenAI-compatible API. Hundreds of models.

Point your existing OpenAI SDK at FastInfra — same request format, smarter routing, transparent per-token pricing.

Why FastInfra

  • OpenAI SDK compatible — change base_url and API key only
  • 500+ models with live per-token pricing
  • Automatic cheapest-provider routing and failover
  • Free-tier models at $0, prepaid credits for paid usage
  • Streaming, vision, video (LTX), and Kokoro / Chatterbox TTS endpoints

What an OpenAI-compatible API means in practice

An OpenAI-compatible API accepts the same request and response shapes as OpenAI's Chat Completions endpoint: a model string, a messages array, optional tools, response_format, stream and the usual sampling parameters. Because the contract is identical, the official OpenAI SDKs for Python and Node.js, LangChain, LlamaIndex, the Vercel AI SDK and most agent frameworks work without code changes. You only change two values: the base URL and the API key.

FastInfra exposes 714 models behind that single contract — Claude, GPT, Gemini, DeepSeek, Qwen, Kimi, Grok, GLM, Llama and many open-weight models — so switching models is a one-string change in model, not a new SDK, a new account or a new invoice.

Switch in two lines

Set base_url to https://api.fastinfra.ai/v1, use your FastInfra key, and keep everything else.

from openai import OpenAI

client = OpenAI(base_url="https://api.fastinfra.ai/v1", api_key="YOUR_FASTINFRA_KEY")

resp = client.chat.completions.create(
    model="deepseek/deepseek-v4-flash",
    messages=[{"role": "user", "content": "Summarise this ticket in one line."}],
)
print(resp.choices[0].message.content)

Streaming (stream=True), tool calling, JSON mode and vision inputs follow the OpenAI format for models that support them. GET /models returns every model ID you can call, with the same response schema as OpenAI's model list.

Live prices for popular models

Prices below come from the live catalog and are charged per million tokens from prepaid credits. Each row links to the model's page with specs, a cost calculator and code samples.

Popular LLMs on FastInfra with live input and output prices (USD per 1M tokens)
ModelInput $/1MOutput $/1MRoutes
Claude Opus 5
anthropic/claude-opus-5
$5.4$271
Claude Sonnet 5
anthropic/claude-sonnet-5
$2.16$10.81
Claude Haiku 5.5
anthropic/claude-haiku-5.5
$0.108$0.541
Claude Fable 5.1
anthropic/claude-fable-5.1
$10.8$541
GPT-5.5
openai/gpt-5.5
$5.4$32.41
GPT-6 Sol
openai/gpt-6-sol
$2.16$10.81
GPT-OSS 120B
gpt-oss-120b
$0.0302$0.11025
Gemini 3.8 Flash
google/gemini-3.8-flash
$0.81$4.051
DeepSeek V4 Pro
deepseek/deepseek-v4-pro
$1.728$3.4562
DeepSeek V4 Flash
deepseek/deepseek-v4-flash
$0.0983$0.19662
Qwen3.6 27B
qwen/qwen3.6-27b
$0.486$2.9162
Kimi K3
moonshotai/kimi-k3
$0.2074$16.23
Grok 4.7
x-ai/grok-4.7
$2.16$6.481
GLM 5.3
glm-5.3
$0.0864$3.8884
Llama 4 Maverick
meta-llama/llama-4-maverick
$0.2025$0.70471

Why teams use one compatible API instead of several SDKs

  • No lock-in. Swap between providers by changing the model ID; prompts, parsing and retries stay the same.
  • One bill. Every model draws from the same prepaid wallet, with per-request usage in the dashboard.
  • Routing and failover. Each model ID has live upstream routes. Requests go to the lowest-cost healthy route and fail over automatically when one degrades.
  • Free tier for development. 12 models are available at $0 so you can build and test before you spend.

Compatibility checklist before you migrate

  1. Replace the base URL and key in your environment variables.
  2. Map each OpenAI model to its equivalent (for example GPT-5.5 stays openai/gpt-5.5; a cheaper default could be deepseek/deepseek-v4-flash).
  3. Check max_tokens against the model's output limit on its model page.
  4. Keep your retry logic: rate-limit responses use the standard 429 status and error shape.
  5. Watch the first day of usage in the dashboard and compare cost per request against your previous provider.

Frequently asked questions

Is FastInfra a drop-in OpenAI replacement?

Yes. Use the official OpenAI SDK and set base_url to the FastInfra API host. Chat completions, streaming, and model listing use the same JSON shapes.

Do I need separate API keys per provider?

No. One FastInfra API key routes to the cheapest healthy upstream automatically.

Is there a free tier?

Yes. Multiple chat models are available at $0; paid models bill per token from prepaid credits.

Which SDKs work with FastInfra?

Any client that speaks the OpenAI Chat Completions format: the official OpenAI Python and Node.js SDKs, LangChain, LlamaIndex, the Vercel AI SDK, LiteLLM and plain HTTP with curl.

Do Claude and Gemini work through the OpenAI format?

Yes. Claude, Gemini and Grok models are called with the same Chat Completions messages array as GPT models and return the same response shape.

Is streaming supported?

Yes. Set stream to true and read server-sent events exactly as you would from OpenAI, including incremental tool-call deltas on models that support tools.