Skip to main content
Use CrewAI against the Modellix LLM gateway. Pass an OpenAI-compatible base_url of https://llm.modellix.ai/v1 to the built-in LLM class — you do not need a custom BaseLLM subclass for Modellix.
This page covers LLM text only (https://llm.modellix.ai).Modellix model IDs are provider/name (for example openai/gpt-5.5). Set that full string as model. See Models & Pricing.Custom LLM (BaseLLM) is for non-OpenAI protocols or special auth. Prefer the LLM + base_url path below for Modellix.

Set Up CrewAI

1

Install CrewAI

Or with uv:
The [openai] extra covers the native OpenAI-compatible client path used with custom_openai=True.
2

Set Credentials

Create a Modellix API key in the console:
Use a Modellix key, not an OpenAI platform key. Do not point CrewAI at the media host (https://api.modellix.ai). Prefer setting base_url (or custom_openai=True with env vars) so traffic does not fall back to api.openai.com.
3

Create an LLM Pointed at Modellix

Recommended: construct LLM with an explicit base_url and custom_openai=True so CrewAI uses the native OpenAI SDK against your gateway:
Change model to any catalog ID (anthropic/claude-sonnet-5, google/gemini-3.6-flash, and so on). Traffic still uses Chat Completions on https://llm.modellix.ai/v1.
On some CrewAI versions, a leading openai/ routing prefix may be stripped before the request is sent. If openai/gpt-5.5 fails with model-not-found, confirm the upstream model field still includes openai/. Prefer custom_openai=True with an explicit base_url, and try a non-openai/ catalog ID (for example anthropic/claude-sonnet-5) to verify the gateway path first.
If OPENAI_BASE_URL / OPENAI_API_BASE is already set, you can omit base_url in code, but keep custom_openai=True for unknown / namespaced model IDs so CrewAI does not route to the default OpenAI host. For the native OpenAI SDK path, install crewai[openai].
4

Optional: Environment-Only Configuration

CrewAI resolves the base URL from base_url, then api_base, then OPENAI_BASE_URL, then legacy OPENAI_API_BASE.
5

Optional: Multi-Agent Crew

Share one Modellix LLM across agents, or give each agent a different catalog ID on the same gateway:

Troubleshooting