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
Models
Passmodel 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
Responses
Messages (Anthropic)
Auth may use Bearer or
x-api-key. Optional anthropic-version header is forwarded when present.
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
200with a JSON body matching the protocol (chat.completion, response, or message). - Streaming: HTTP
200,Content-Type: text/event-stream, protocol-specific SSE events.
usage (often on the final stream event). Billing uses token usage; see Billing.
Errors
code and param.
Billing
Successful responses are billed from tokenusage. 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.