DOCS://INTEGRATE

Plug in. One minute.

Gantryx works like Anthropic's API with a different address. Where a tool asks for a base URL and API key, use these. Pick a client below, or let an AI agent set it up. New words? Plain English.

one minuteAnthropic + OpenAInothing stored

Let an AI agent do it new

Paste one prompt into Claude Code, Cursor, Codex or a chat assistant. It writes the config, keeps the key in an env var, and runs the verification call.

Includes Anthropic + OpenAI endpoints, model IDs and error handling.OPEN THE PROMPT →

Claude Code primary

Two environment variables tell Claude Code where to send requests. Set them once, then use claude normally.

bash
export ANTHROPIC_BASE_URL="https://api.gantryx.ai"
export ANTHROPIC_AUTH_TOKEN="sk-gx-…"
claude

OpenCode

In opencode.json, add Gantryx as a provider. The model IDs below are examples — any from /v1/models works.

opencode.json
{
  "provider": {
    "gantryx": {
      "apiKey": "sk-gx-…",
      "baseURL": "https://api.gantryx.ai/v1",
      "models": {
        "claude-sonnet-5-5": { "name": "Claude Sonnet 5.5" },
        "claude-opus-5-5":   { "name": "Claude Opus 5.5" },
        "claude-fable-5-2":  { "name": "Claude Fable 5.2" }
      }
    }
  }
}

Then select gantryx/claude-sonnet-5-5 in the model picker.

Cline (VS Code)

Cline → Settings → API Provider → Anthropic.

Base URLhttps://api.gantryx.ai
API Keysk-gx-…
Modelclaude-sonnet-5-5

Cursor

Settings → Models → OpenAI API Key. Override base URL to https://api.gantryx.ai/v1, paste your key, add claude-sonnet-5-5 as a custom model.

Windsurf / Continue.dev

Same pattern: provider Anthropic or OpenAI, base URL https://api.gantryx.ai (or /v1 for OpenAI), key sk-gx-…, model claude-sonnet-5-5.

Cherry Studio

Provider type Anthropic · address https://api.gantryx.ai · key sk-gx-… · model claude-sonnet-5-5 or any from /v1/models.

Codex CLI

~/.codex/config.toml
model_provider = "gantryx"
model = "claude-sonnet-5-5"
wire_api = "responses"

[model_providers.gantryx]
name = "gantryx"
base_url = "https://api.gantryx.ai/v1"
requires_openai_auth = true

Key in ~/.codex/auth.json: {"OPENAI_API_KEY":"sk-gx-…"}

CC Switch

Add provider → paste base URL + key → name it gantryx → switch. Applies to Claude Code and Codex at once.

Raw curl

bash
curl https://api.gantryx.ai/v1/messages \
  -H "Authorization: Bearer sk-gx-…" \
  -H "content-type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{"model":"claude-sonnet-5-5","max_tokens":64,
       "messages":[{"role":"user","content":"Say hello"}]}'

OpenAI-compatible (any client)

Base URL https://api.gantryx.ai/v1 · auth Bearer sk-gx-…. Any OpenAI SDK works. Chat at /v1/chat/completions, Responses at /v1/responses.

Your usage dashboard

Portal at app.gantryx.ai: balance, window bars, key management, top-up. Or GET /v1/status for JSON.

Errors

What the status codes mean, and what to do. A 429 is temporary — wait, do not change your key.

CodeMeaningWhat to do
401bad keycheck your key, issue a new one
402balance emptytop up (min $3)
403model not in your tierupgrade or pick another model
429rate limited (yours or pool)retry after retry_after s
503temporary capacity pressureretry once shortly
529overloadedretry, we are moving you to other capacity

Every response carries X-Request-Id. Include it in support messages — it is the fastest way to trace a bad call.

Privacy

Zero data retention (ZDR) from Gantryx: we keep no prompts and no answers — only billing facts (tokens, model, delay, status). Nothing is used for training. Prompts continue to Anthropic under their own terms.

50× cheaper than API list (98% below). Standard models 2%, Fable 3%. Full matrix in pricing. Machine-readable contract: OpenAPI 3.1.