Actionable notes around “AI API relay” for teams that smoke-test before production.
An API relay unifies Claude, GPT, Gemini and more behind one OpenAI-compatible endpoint. 59API lets Claude Code, Codex and OpenAI SDKs share a single base URL and key — pay per token, no monthly lock-in.
Same model families at competitive usage rates.
Point base_url / BASE_URL at the relay and keep your SDK.
Claude + GPT + Gemini style access from one account.
Keep official endpoints as a backup path.
Prefer protocol compatibility and smoke tests over marketing slides.
| Dimension | What to check |
|---|---|
| OpenAI-compatible | SDK / Codex only need base_url + key changes. |
| Streaming | First-token latency and true SSE, not buffered dumps. |
| Errors | 401/429 bodies are readable for ops. |
| Multi-client | Same key works for CLI, SDK, HTTP. |
| Topic | AI API relay |
| Host | 3g.read.liuzhiwenhua.com |
# AI API relay
export OPENAI_BASE_URL="https://59api.com/v1"
export OPENAI_API_KEY="sk-your-key"
# Map ANTHROPIC_* for Claude Code per relay docs if needed