Code editor · ScaleMax integration
Use ScaleMax models in the Zed editor
Zed’s agent panel can use any OpenAI-compatible provider. Add ScaleMax under language_models in settings.json (or through Agent settings) and keep the key out of the file.
- Choose in the client
- An OpenAI-compatible LLM provider (Agent settings → LLM Providers → Add Provider)
- Protocol
- OpenAI Chat Completions
- ScaleMax installer
- Manual setup
- Video lesson
- Not yet
Zed settings for ScaleMax
Enter these values in Zed. A Pay as you go key and a token pack key use different base URLs — use the one that matches the key you bought.
| Setting | Value |
|---|---|
| Provider | scalemax (under language_models → openai_compatible) |
| api_url | https://api.scalemax.pro/v1 (or https://api.scalemax.pro/token/v1 for a token pack) |
| available_models | Each model’s exact ID as name, plus its context window as max_tokens |
| API key | Entered in Agent settings, or the SCALEMAX_API_KEY environment variable — never in settings.json |
{
"language_models": {
"openai_compatible": {
"scalemax": {
"api_url": "https://api.scalemax.pro/v1",
"available_models": [
{ "name": "claude-sonnet-5-5", "display_name": "Claude Sonnet 5.5", "max_tokens": 1000000 }
]
}
}
}
}Step by step
- Open Agent settings (agent: open settings) and find the LLM Providers section.
- Choose Add Provider, name it scalemax, and enter the ScaleMax API URL.
- Add each model by its exact ID with its context window, or paste the settings.json block above.
- Enter the key in the provider settings, or export SCALEMAX_API_KEY before starting Zed.
Installer support
The ScaleMax installer does not configure Zed. Add the provider from Zed’s Agent settings or with the settings.json block below.
Models to use in Zed
Rates are the published ScaleMax rates per million tokens, read from the live catalogue. Your key must include a model before Zed can call it — GET /v1/models with the key lists exactly which.
Claude models
| Model | Model ID | Input / 1M tokens | Output / 1M tokens |
|---|---|---|---|
| Claude Haiku 4.5 | claude-haiku-4-5-20251001 | $1 | $5 |
| Claude Haiku 5.5 | claude-haiku-5-5 | $0.20 | $1 |
| Claude Opus 4.6 | claude-opus-4-6 | $5 | $25 |
GPT models
| Model | Model ID | Input / 1M tokens | Output / 1M tokens |
|---|---|---|---|
| GPT-6.1 Sol | gpt-6.1-sol | $2 | $10 |
| GPT-6 Sol | gpt-6-sol | $2 | $10 |
| GPT-6 Luna | gpt-6-luna | $0.10 | $0.50 |
DeepSeek, Gemini and other models
| Model | Model ID | Input / 1M tokens | Output / 1M tokens |
|---|---|---|---|
| DeepSeek V4 Pro | deepseek-v4-pro | $1 | $4 |
| DeepSeek V4 Flash | deepseek-v4-flash | $0.19 | $0.51 |
| Gemini 3.8 Flash | gemini-3.8-flash | $0.75 | $3.75 |
Good to know
- Zed names the key variable after the provider ID in upper snake case plus _API_KEY, so a provider called scalemax reads SCALEMAX_API_KEY.
- Use the context window from the model’s ScaleMax page as max_tokens.
Troubleshooting
- Zed reports a missing API key
- Enter it in the provider’s settings, or start Zed from a shell where SCALEMAX_API_KEY is exported.
- A model returns 403 or not found
- Its name must be an exact ID your key includes. Check with GET /v1/models.
Zed's field names on this page were checked against Zed: Use API access (OpenAI compatible) on October 14, 2026. If Zed has renamed a setting since, follow its documentation and keep the ScaleMax values above.
ScaleMax is not affiliated with the makers of Zed. Compatibility describes the API protocol; Zed's own features and plans are provided by its developer.
Zed and ScaleMax: questions
Can I use Claude in Zed with a ScaleMax key?
Yes. Add ScaleMax as an OpenAI-compatible provider and list the Claude model ID, for example claude-sonnet-5-5, under available_models.
Where should the ScaleMax key go in Zed?
In the provider’s settings inside Zed, or in the SCALEMAX_API_KEY environment variable. Zed’s documentation advises against putting keys in settings.json.
Does the ScaleMax installer configure Zed?
No. Zed takes a few lines of settings, shown on this page.
Related setup guides
Run Zed on a prepaid key
Pay by UPI, card or crypto, copy the base URL and model ID, and you are coding in minutes. No subscription.