Trae
Trae is an AI IDE from ByteDance with built-in Agent and SOLO modes. Trae lets you add custom models with a choice of two API formats: OpenAI Chat Completions or Anthropic Messages.
1. Get an API Key
Open the API Keys page, click Create API Key, set Group to default, and copy the key (it starts with sk-).
2. Add a Custom Model
- Open Trae Settings → Models → Add Model.
- Select Custom Model.
- Fill in the fields as shown below. The Chinese edition (TRAE CN) shows the same fields in Chinese.
| Setting | Value |
|---|---|
| API Format | OpenAI Chat Completions |
| Custom Request URL | See the notes below |
| Model ID | The model ID on BeeRoute, for example claude-sonnet-5-5 or gpt-6.2-sol |
| Display Name | Any name you like, for example Claude Sonnet 5.5 |
| API Key | Your BeeRoute key sk-xxx |
- When you save, Trae first sends a request to check the key. Once the check passes, the model appears in the model list, and you can select it in Agent or SOLO.
What to Enter for the Request URL
Next to the request URL there is a Full URL switch. The URL must match the state of the switch; if they do not match, you get a 404:
| Full URL switch | Request URL |
|---|---|
| On (recommended) | https://beeroute.ai/v1/chat/completions |
| Off | https://beeroute.ai/v1 (Trae appends /chat/completions automatically) |
Each model must be added separately. The model ID must match the model ID on BeeRoute exactly. See the Pricing page for all models.
3. Use the Native Anthropic Format for Claude Models (Optional)
When adding a Claude model, you can also set API Format to Anthropic Messages, turn on the Full URL switch, and enter this request URL:
https://beeroute.ai/v1/messages
Fill in the other fields the same way as above.
4. Recommended Models
| Use case | Model ID |
|---|---|
| Everyday coding | claude-sonnet-5-5, gpt-6.2-sol |
| Complex tasks | claude-opus-5-5, gemini-4-neon |
| Low cost | deepseek-flash, kimi-k3.1-pro, glm-5.3 |
5. FAQ
The check fails or returns 404 when saving?
Check that the Full URL switch and the request URL match: when the switch is on, the URL must end with /chat/completions (or /messages); when it is off, enter the URL only up to /v1.
Getting a 401 error?
The key was not copied completely or has extra spaces.
Model not found?
The model ID is misspelled or has the wrong case, or the key's group does not include that model.
For more details, see the official Trae documentation: Models.
Last updated 2026-11-29 · Markdown source · llms.txt