Prerequisites
- TRAE installed (download at trae.ai)
- BetterToken API Key (register here)
Setup
Open model settings
Click the Settings icon in the top-right corner of the TRAE AI chat panel, then select the Models tab.
Enter BetterToken config
| Field | Value |
|---|---|
| API URL | https://www.bettertoken.com/v1 |
| API Key | Your BetterToken API Key |
| Model name | claude-sonnet-4-5 (or another supported model) |
Save and verify
Click Add Model. TRAE will validate your API Key automatically:
- Success: the model appears in your model list
- Failure: check the API URL and API Key
Supported models
| Series | Model | Description |
|---|---|---|
| Claude | claude-sonnet-4-5 | Balanced — recommended |
| Claude | claude-opus-4-5 | Most capable |
| Claude | claude-haiku-4-5 | Fastest |
| GPT | gpt-4o | OpenAI flagship |
| GPT | gpt-4o-mini | Lightweight, faster |