On this page
DOCUMENTATION
Twelver Documentation
Wire-level Chat Completions API, async Media Generation API, remote Streamable HTTP MCP servers, and error contracts — generated directly from live server schemas.
Documentation Tracks
API Reference by Surface
/docs/en/api/chat-completions/Twelver Chat Completions API: Model Series & reasoning_effort
Reference for POST/api/ai/<config-id>/v1/chat/completions and GET/v1/models: model series, live rates, reasoning_effort, max_tokens, vision, and tools.
/docs/en/api/media/Twelver Media Generation API: Image, Video, Music & Speech
Async request and response schema for POST/v1/media/files, POST/v1/media/generations, polling GET/v1/media/generations/:taskId, and media toolsets.
/docs/en/api/mcp/Twelver Remote MCP API: Streamable HTTP Toolset Servers
Endpoint pattern /api/mcp/v1/<toolset>, Bearer sk-… vs OAuth 2.1 authentication, plan tier gates, and the full catalog of MCP toolsets and methods.
/docs/en/api/errors/Error Codes, Streaming, Caching & Billing — Twelver API
OpenAI-compatible error envelopes (400, 401, 402, 404, 429, 502/503), in-band SSE stream errors, token reservation & settlement, and prompt caching.
Machine-readable feeds for LLMs, Cursor @Docs & coding agents: /llms.txt · /llms-full.txt