POST /v1/chat/completions.
Modellix media generation (image / video / speech) uses a different host and async task API. This page covers LLM text only (
https://llm.modellix.ai).Before you start
- Create a Modellix API key in the console.
- Pick a model ID in
provider/nameform (for exampleopenai/gpt-5.5). See Models & Pricing for the full list.
Add an OpenAI-compatible provider
In Cursor settings, open the models / providers section and add a custom OpenAI-compatible (or equivalent override) endpoint:
Cursor sends
Authorization: Bearer <key>, which Modellix accepts. Include /v1 in the base URL so paths resolve to /v1/chat/completions.
Model ID tips
- Prefer
openai/...orgoogle/...for the OpenAI-compatible path (same as OpenAI SDK). anthropic/...can work on Chat Completions for many clients; for Anthropic-native tools use Messages instead (see Claude Code).- Browse available Model IDs and rates on Models & Pricing—do not assume bare upstream names without the
provider/prefix.
Optional: Anthropic-style override
If your Cursor build allows a separate Anthropic base URL override, use:
Otherwise keep the OpenAI-compatible setup above for Chat Completions.
Troubleshooting
Related
- LLM API guide — auth, protocols, errors
- OpenAI SDK — same gateway settings for app code
- Codex · OpenCode — other OpenAI-compatible clients