Codex
Connect Codex to llmapi.cheap in about 30 seconds with one command, or edit ~/.codex/config.toml by hand. One key gives it Kimi K2.6, Mistral Large 4, Nemotron 3 Ultra, DeepSeek V4.1 Flash, GLM 5.3 Flash, MiniMax M3.1 Flash, Nemotron 3.5 Lightning and gpt-oss 20B.
Fastest: one command
Copy the command, paste it into a terminal, and paste your API key when it asks. It finds Codex, points it at llmapi.cheap with Kimi K2.6 as the default model, and backs up every file it changes. Nothing to install first.
curl -fsSL https://llmapi.cheap/install.sh | shirm https://llmapi.cheap/install.ps1 | iexManual setup
Replace YOUR_API_KEY with your key from Dashboard → API keys. It starts with sk-llm-.
Add llmapi as a provider and make it the default. The Codex CLI, IDE extension and desktop app all read this file.
model = "kimi-k2.6"
model_provider = "llmapi"
[model_providers.llmapi]
name = "llmapi"
base_url = "https://llmapi.cheap/v1"
wire_api = "responses"
experimental_bearer_token = "YOUR_API_KEY"Endpoints
Use the base URL that matches the protocol your tool speaks. These models work over OpenAI-compatible Chat Completions.
- OpenAI
- https://llmapi.cheap/v1
- Models
- https://llmapi.cheap/v1/models
Model IDs
Any of these work wherever Codex asks for a model. The setup command picks kimi-k2.6 as the default.
| Model | ID | Credits per token | Allowance |
|---|---|---|---|
| Kimi K2.6 | kimi-k2.6 | ×2 | Large-model |
| Mistral Large 4 | mistral-large-4 | ×2 | Large-model |
| Nemotron 3 Ultra | nemotron-3-ultra | ×2 | Large-model |
| DeepSeek V4.1 Flash | deepseek-v4.1-flash | ×1 | Standard |
| GLM 5.3 Flash | glm-5.3-flash | ×1 | Standard |
| MiniMax M3.1 Flash | minimax-m3.1-flash | ×1 | Standard |
| Nemotron 3.5 Lightning | nemotron-3.5-lightning | ×1 | Standard |
| gpt-oss 20B | gpt-oss-20b | ×1 | Standard |
Cached input counts at a tenth. The free trial includes the Standard-credit models; the Large-model credits come with every paid plan.
Troubleshooting
- 401 / invalid key: check that the key starts with
sk-llm-and has no extra spaces. Create a new one under Dashboard → API keys if needed. - Model not allowed: the free trial covers the Standard-credit models; the Large-model credits come with every paid plan.
- 404 on requests: OpenAI-style tools need
https://llmapi.cheap/v1; Anthropic-style tools needhttps://llmapi.cheapwithout/v1.
