API documentation

Integrate the gateway into any OpenAI- or Anthropic-compatible client.

Base URL
https://api.aiproxyhub.dev/v1

Authentication

Pass your key as a Bearer token (OpenAI style) or an x-api-key header (Anthropic style). Both work on every endpoint.

OpenAI
Authorization: Bearer sk-boost-…
Anthropic
x-api-key: sk-boost-…

Endpoints

POST /v1/chat/completions
curl https://api.aiproxyhub.dev/v1/chat/completions \
  -H "Authorization: Bearer sk-boost-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4.8",
    "messages": [{"role": "user", "content": "Hello!"}],
    "stream": true
  }'
POST /v1/messages · Anthropic
curl https://api.aiproxyhub.dev/v1/messages \
  -H "x-api-key: sk-boost-YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4.8",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Check your balance

curl https://api.aiproxyhub.dev/v1/balance \
  -H "Authorization: Bearer sk-boost-YOUR_KEY"

List models

curl https://api.aiproxyhub.dev/v1/models \
  -H "Authorization: Bearer sk-boost-YOUR_KEY"

Integrations

Drop the gateway into your favourite AI coding tools.

Cursor

Settings → Models → add an OpenAI key, then set the Override base URL to our gateway. Your key authenticates every model.

Cline

Pick the "OpenAI Compatible" provider, paste your key and the base URL, and select any model by its full name.

Continue

In config.json add a model with provider "openai", your apiKey and apiBase pointing at the gateway.

Any OpenAI SDK

Point base_url at the gateway and use your key as the API key — the OpenAI and Anthropic SDKs both work unchanged.

Any OpenAI-compatible client works — set the base URL to https://api.aiproxyhub.dev/v1

Model aliases

Short names you can use instead of the full model id.

Model Alias
claude-fable-5 ch-f5
gemini-3.1-pro-preview ch-gm31p
gemini-3.5-flash ch-gm35f
gpt-5.6-terra ch-g56t
gpt-5.6-sol ch-g56s
claude-opus-5 ch-5o
claude-opus-4.8 ch-48
claude-opus-4.7 ch-47
claude-opus-4.6 ch-46
claude-sonnet-5 ch-5s
claude-sonnet-4.6 ch-46s
claude-haiku-4.5 ch-45h
qwen3.7-max ch-qw37m