baseURL set to https://llm.modellix.ai/v1, then call generateText / streamText with Modellix provider/name model IDs.
This page covers LLM text only (
https://llm.modellix.ai).Modellix model IDs are provider/name (for example openai/gpt-5.5). Pass that full string to the provider model factory. See Models & Pricing.Set Up the AI SDK
1
Install Packages
@ai-sdk/openai path below, also install @ai-sdk/openai. For Anthropic Messages, install @ai-sdk/anthropic.2
Set Credentials
3
Create an OpenAI Compatible Provider (Recommended)
Prefer Swap the model string for any catalog ID (
@ai-sdk/openai-compatible for third-party gateways:anthropic/claude-sonnet-5, google/gemini-3.6-flash, and so on). Traffic still uses Chat Completions on https://llm.modellix.ai/v1.4
Optional: Streaming
5
Optional: createOpenAI + Chat Completions
You can also customize See AI SDK OpenAI provider for
@ai-sdk/openai. The default modellix("...") factory targets the Responses API. Modellix supports Responses, but for Chat Completions–only client code paths use .chat():baseURL and .chat() details.6
Optional: Anthropic Provider (Messages)
For native Anthropic Messages instead of OpenAI-compatible Chat Completions:Same host shape as the Anthropic SDK: no
/v1 on baseURL. Most AI SDK apps should stay on createOpenAICompatible + /v1 unless you specifically need Messages.Troubleshooting
Related
- AI SDK — Providers and models — provider architecture
- OpenAI Compatible providers —
createOpenAICompatible - OpenAI provider —
createOpenAI,.chat(), Responses - OpenAI SDK — same
/v1gateway without the AI SDK - LangChain — another Chat Completions client path
- Models & Pricing — Model IDs and rates
- LLM API guide — protocols and curl examples