Continue
Use cheapaimodel models for chat, edit and apply in the Continue extension for VS Code and JetBrains.
Continue reaches OpenAI-compatible services through its openai provider with a custom apiBase, set in your config.yaml.
| Continue setting | Value | |
|---|---|---|
| Base URL | apiBase | https://api.cheapaimodel.ai/v1 |
| API key | apiKey | Your key from the console's API Keys page |
| Model ID | model | glm-5.3, or any ID from the catalog |
Set it up
Save your key in Continue's secrets file. Continue reads ${{ secrets.NAME }} values from .env files; the IDE extensions cannot see variables exported in your shell.
CHEAPAIMODEL_API_KEY=sk-...Then add a model to ~/.continue/config.yaml (%USERPROFILE%\.continue\config.yaml on Windows):
name: Main Config
version: 1.0.0
schema: v1
models:
- name: GLM-5.3 (cheapaimodel)
provider: openai
model: glm-5.3
apiBase: https://api.cheapaimodel.ai/v1
apiKey: ${{ secrets.CHEAPAIMODEL_API_KEY }}
roles:
- chat
- edit
- applySave the file and select GLM-5.3 (cheapaimodel) as the chat model in the Continue sidebar. To use more models, add one entry per model ID from the catalog.
Autocomplete, embeddings and reranking
Leave these roles on other providers:
autocomplete: Continue's Tab completion expects a fill-in-the-middle (FIM) model; chat models do poorly at it. The catalog's models are chat models.embedandrerank: cheapaimodel has no embeddings or reranking models. Codebase indexing keeps using Continue's built-in embedder (VS Code) or another provider.
Common mistakes
- The key is set in your shell but Continue doesn't use it. The VS Code and JetBrains extensions cannot read shell environment variables. Put the key in
~/.continue/.env(no quotes around the value) and restart the IDE. - Changes to
config.yamldon't show up. Run Developer: Reload Window from the VS Code command palette. 404with the plain-text bodyfault filter abort.apiBaseis missing/v1, so requests go to/chat/completions, which is not an API path. Sethttps://api.cheapaimodel.ai/v1.404withInvalid URL (POST /v1/chat/completions/chat/completions).apiBaseincludes the endpoint path. Continue adds/chat/completionsitself; sethttps://api.cheapaimodel.ai/v1only.503withmodel_not_found. Themodelvalue is not a model ID we serve. Copy the ID exactly from the catalog;nameis only a label.