LLM Gateway · Compatible with OpenAI and Anthropic

Modellix LLM

One gateway to leading language models

Use one Modellix API key for Chat Completions, Responses, and Messages. Requests are synchronous with optional SSE. Image and video generation continue to use the media API.

https://llm.modellix.ai

This is the text gateway host. OpenAI-compatible clients should use https://llm.modellix.ai/v1.

Quickstart

Connect your client in three steps

Set the base URL, provide a Modellix API key, and set model to provider/name.

  1. 01 · Key

    Create an API key

    Create it under Console → API Key, then send it as Bearer or x-api-key.

    Console → API Key
    Authorization: Bearer mdlx-xxxxxxxx
  2. 02 · Base URL

    Choose the host for your protocol

    OpenAI-compatible clients include /v1; Anthropic and Claude Code do not.

    https://llm.modellix.ai/v1
  3. 03 · Model

    Pass a model ID

    Always use provider/name. Refer to the product documentation for available models.

    openai/gpt-5.6-sol

Gateway capabilities

A gateway built for common clients and agents

One key covers Chat Completions, Responses, and Anthropic Messages.

  • Three mainstream protocols

    Chat Completions, Responses, and Messages each have their own URL and request body. Choose the protocol for your client and do not mix their fields.

  • Compatible with common clients

    OpenAI and Anthropic SDKs plus Codex, Claude Code, Cursor, OpenCode, and more connect by overriding the base URL. No Modellix-specific SDK is required.

  • One Modellix key

    Bearer and x-api-key are both supported. Use a key from Modellix Console, not a provider-issued key.

  • Synchronous with optional streaming

    Text calls return synchronously. Setting stream: true enables the protocol-specific SSE stream. Media generation remains asynchronous.

  • Consistent model IDs

    Set model to provider/name, such as openai/gpt-5.6-sol or anthropic/claude-sonnet-5.

  • Transparent per-token pricing

    Successful responses are billed from usage. Models with Input Context tiers show every tier in the price table.

Protocol selection

Choose the protocol before sending a request

Changing only the URL is not enough. Chat Completions uses messages, Responses uses input, and Messages requires max_tokens.

POST /v1/chat/completions · For the OpenAI SDK, Codex, Cursor, and most chat clients. The base URL must include /v1.

curl -sS "https://llm.modellix.ai/v1/chat/completions" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.6-sol",
    "stream": false,
    "max_tokens": 256,
    "messages": [{"role": "user", "content": "Introduce yourself in one sentence"}]
  }'
Chat CompletionsResponsesMessages
Path/v1/chat/completions/v1/responses/v1/messages
Primary inputmessagesinputmessages + optional system
Length fieldmax_tokens / max_completion_tokensmax_output_tokensmax_tokens (required)
Base URLhttps://llm.modellix.ai/v1https://llm.modellix.ai/v1https://llm.modellix.ai

Model catalog

Models and pricing

Prices are in USD per 1M tokens. The Context column shows the model’s supported window. Some models use Input Context pricing tiers; the number of tiers varies by model and is independent of the context-window size.

Cost calculator

Estimate one call

The input-token count automatically selects the matching Input Context tier. Struck-through amounts are official list prices, followed by Modellix prices.

openai/gpt-5.6-sol
Input tokens
Output tokens
Cached Read tokens
Cached Write tokens
Input Context ≤ 272KPriced by this request’s Input Context
Input$0.256
Output$0.032
Cached Read$0
Cached Write$0
Estimated Modellix cost$0.288

Official list estimate: $0.36 , approximately 20% less

Price table

Filter by provider
Input modality
ModelInput modalitiesOutput modalitiesContextInput ContextInputOutputCached ReadCached WriteDiscount
Claude Haiku 4.5
anthropic/claude-haiku-4.5
TextImageText200K$1.00$0.97$5.00$4.85$0.1$0.097$1.25$1.213% OFF
Claude Opus 5
anthropic/claude-opus-5
TextImageText1M$5.00$4.85$25.00$24.25$0.5$0.485$6.25$6.063% OFF
Claude Sonnet 5
anthropic/claude-sonnet-5
TextImageText1M$2.00$1.94$10.00$9.70$0.2$0.194$2.50$2.423% OFF
Deepseek V4 Flash
deepseek/deepseek-v4-flash
TextText1.05M$0.44$1.32$0.014$0
Deepseek V4 Flash Vision
deepseek/deepseek-v4-flash-vision
TextImageText1.05M$0.44$1.32$0.014$0
Deepseek V4 Pro
deepseek/deepseek-v4-pro
TextText1.05M$1.33$3.96$0.044$0

Context is the supported model window. Input and output modalities include text, image, audio, and video. Successful responses are billed from token usage.

Client integrations

Supported clients

Point your existing OpenAI or Anthropic configuration at Modellix without changing the application protocol.

See the LLM API guide for the complete list.

Help

Frequently asked questions

Direct answers about developer integration and billing.

What is Modellix LLM?

Modellix LLM is a text-model gateway hosted at https://llm.modellix.ai. With one Modellix API key, you can call OpenAI-compatible Chat Completions and Responses or Anthropic-compatible Messages. Requests are synchronous with optional SSE streaming.

How is the LLM gateway different from the image and video API?

LLM text requests use https://llm.modellix.ai and return synchronously. Image, video, and speech generation use the asynchronous media API at https://api.modellix.ai. Do not mix the hosts or request fields.

How do I authenticate?

Create a key on the API Key page and send it as Authorization: Bearer or x-api-key. Do not use a model-provider platform key. The headers are equivalent; if both are present, they must contain the same key.

How should I format a model ID?

Pass provider/name in the request body, such as openai/gpt-5.6-sol, anthropic/claude-sonnet-5, or google/gemini-3.6-flash. Refer to product documentation for current models and prices.

Why do some models have pricing tiers?

Some models are priced by the request’s input-token count (Input Context). Tier count varies and is separate from the model context window. Context in the table is the supported window; Input Context is the pricing tier. Claude, most Gemini Flash, Qwen, and DeepSeek models are flat-rate. The calculator selects the tier automatically.

Which should I use: Chat Completions, Responses, or Messages?

OpenAI SDK, Codex, and Cursor use Chat Completions or Responses with https://llm.modellix.ai/v1. Anthropic SDK and Claude Code use Messages with https://llm.modellix.ai without /v1. The protocols have different URLs and request bodies; do not mix their fields.

How does billing work?

Successful responses are billed from token usage in USD per 1M tokens. Struck-through amounts are official list prices, followed by Modellix prices. Availability and prices may change; refer to product documentation. Insufficient balance returns 402.

Modellix LLM

Compatible with OpenAI and Anthropic protocols

Modellix does not require a separate SDK. Create an API key and point your existing client base URL at Modellix to call LLMs from Cursor, Claude Code, or your backend.