LLM
AI API Reference
LLM
Generate text using a language model.
POST
LLM
Documentation Index
Fetch the complete documentation index at: https://na-36-merge-docs-v2-dev-draft-into-docs-v2-clean-20260525.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The LLM pipeline is OpenAI API-compatible but does not implement all
features of the OpenAI API.
The default Gateway used in this guide is the public
Livepeer.cloud Gateway. It is free to use but
not intended for production-ready applications. For production-ready
applications, consider using the Livepeer Studio
Gateway, which requires an API token. Alternatively, you can set up your own
Gateway node or partner with one via the
ai-video channel on
Discord.Streaming Responses
Ensure your client supports SSE and processes each
data: line as it arrives./llm endpoint returns a single JSON response in the OpenAI
chat/completions
format, as shown in the sidebar.
To receive responses token-by-token, set "stream": true in the request body.
The server will then use Server-Sent Events (SSE) to stream output in real
time.
Each streamed chunk will look like:
"finish_reason": "stop":
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Last modified on May 26, 2026