Code API — AI Model Gateway
## Code API — AI Model Gateway Access the world's best AI models through a single, unified API. Compatible with **OpenAI** and **Anthropic** SDKs — works out of the box with **Claude Code**, **Qwen Code**, **Open Code**, Cursor, and any OpenAI-compatible client. --- ### Features - **Dual Protocol Support** — OpenAI-compatible (`/v1/chat/completions`) and Anthropic-compatible (`/v1/messages`)…
Code API — AI Model Gateway endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
Messages /v1/messages |
Anthropic-compatible endpoint for Claude Code and other Anthropic clients. Supports streaming. |
| GET |
List Models /v1/models |
Returns available models for your subscription plan. |
| GET |
Health Check /health |
Returns API status. Use to verify the service is running. |
| POST |
Chat Completions /v1/chat/completions |
OpenAI-compatible chat completions endpoint. Send messages and receive AI responses. Supports streaming. Compatible with any OpenAI SDK client including Claude Code and Qwen Code. |