OpenAI Compatible API

One API, every major model

Unified access to GPT, Claude, Gemini, DeepSeek, Qwen and more — OpenAI-compatible, no code changes required.

Low latency

Global CDN, P99 < 200ms

Unified models

One key, 50+ leading models

OpenAI compatible

Drop-in replacement

30-second integration

Swap the base URL and API key — your existing OpenAI SDK and request shape just work.

See the full quickstart
curl https://code.b886.top/v1/chat/completions \
  -H "Authorization: Bearer $AI_GATEWAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [
      { "role": "user", "content": "Hello, AI Gateway!" }
    ]
  }'

All major model families

One account, one bill, switch on demand. More providers continuously onboarded.

Browse the full model list

Anthropic Claude

Opus 4.7 · Sonnet 4.6 · Haiku 4.5

OpenAI GPT

GPT-5.5 · GPT-5.4 · GPT-5.3-codex

iFlytek Spark

gpt-5.3-codex-spark

Image models

gpt-image-2 · gpt-image-2-pro

Setup Guides

From environment to client integration — every step is reproducible.