Complete API reference for 15code platform
15code supports both OpenAI and Anthropic API protocols. Use OpenAI protocol for GPT/GLM models, Anthropic protocol for Claude models.
| Protocol | Base URL | Supported Models |
|---|---|---|
| OpenAI | https://cli.15code.com/v1 | GPT-5.5 / GPT-5.6, Claude, GLM-5.3, DeepSeek V4 Pro, Qwen3.8 |
| Anthropic | https://claude.15code.com | Claude Opus 5.0, Claude Sonnet 5 |
All requests require API Key authentication. Get your key from Dashboard.
| Endpoint | Method | Description |
|---|---|---|
| /v1/chat/completions | POST | Chat completion (main endpoint) |
| /v1/models | GET | List available models |
| Endpoint | Method | Description |
|---|---|---|
| /v1/messages | POST | Create message (main endpoint) |
/v1/models
/v1/images/generations or /v1/images/edits. Images are billed per image; confirm pricing on the image pricing page or in the completed request.| Code | Description | Solution |
|---|---|---|
| 400 | Invalid request | Check parameters format |
| 401 | Authentication failed | Check API Key |
| 403 | Permission denied | Check balance or access |
| 404 | Model not found | Check model name |
| 429 | Rate limit exceeded | Slow down, retry later |
| 500 | Server error | Retry or contact support |
| Model | Context Window | Max Output |
|---|---|---|
| Claude Opus 5.0 | Upstream model limit | Upstream model limit |
| Claude Sonnet 5 | Upstream model limit | Upstream model limit |
| GPT-5.6 Terra | Upstream model limit | Upstream model limit |
| GPT-5.6 Sol | Upstream model limit | Upstream model limit |
| GLM-5.3 | Upstream model limit | Upstream model limit |
The 15code Image plugin uses the 15code OpenAI-compatible Images API to generate or edit images and saves the result in the current workspace. It uses the separate OPENAI_API_KEY_15CODE environment variable.
On Windows PowerShell, run irm https://15code.com/install/15code-image.ps1 | iex. Restart Codex when installation finishes, then ask it to “generate an image” or “edit this image”.