Skip to main content
Modellix LLM is a text gateway at https://llm.modellix.ai with three protocol surfaces: Calls are synchronous (optional streaming SSE). Request and response shapes follow the corresponding official protocols; this guide lists core fields only. Full OpenAPI specs: Chat Completions, Responses, Messages.
Media generation (image, video, speech) uses https://api.modellix.ai and async tasks. Do not mix that host with the LLM gateway.

Base URL and auth

Both headers are equivalent. If both are sent, they must be the same key. Get a key from the console—not a vendor platform key.

Models

Pass model in the JSON body as provider/name. See Models & Pricing for the full Model ID list and rates. Availability follows the console and product releases.

Choose a protocol

The three endpoints use different URLs and body shapes. Do not mix fields across protocols. Routing tips

Chat Completions

Streaming:
See Create chat completion.

Responses

See Create response.

Messages (Anthropic)

Auth may use Bearer or x-api-key. Optional anthropic-version header is forwarded when present.
See Create message.

Session header

For multi-turn session affinity, send: Some native tools send their own session header (for example Claude Code’s X-Claude-Code-Session-Id). If both are present, X-Mdlx-Session-Id takes precedence.

Success responses

  • Non-streaming: HTTP 200 with a JSON body matching the protocol (chat.completion, response, or message).
  • Streaming: HTTP 200, Content-Type: text/event-stream, protocol-specific SSE events.
Responses usually include usage (often on the final stream event). Billing uses token usage; see Billing.

Errors

Optional fields may include code and param.

Billing

Successful responses are billed from token usage. Unit prices and final charges follow the console and account invoice. Insufficient balance returns 402 with insufficient_quota.

Rate limits

Back off and reduce request rate after 429.

Client quick reference

Google models (google/...) on the OpenAI-compatible path use OPENAI_* and the /v1 base URL.

Differences from vendor docs

Official field catalogs: OpenAI Chat Completions, OpenAI Responses, Anthropic Messages.