API Reference
Complete OpenAPI reference for every Yolo Router endpoint, with request and response schemas and a live playground.
Self-hosting? Replace https://api.yolorouter.com with your own instance, which defaults to http://localhost:8080.
Every page in this section is generated from the OpenAPI spec: full request and response schemas, every parameter, and a playground you can call with your own API key.
Base URL: https://api.yolorouter.com/v1Authenticate each request with Authorization: Bearer <your API key>.
Chat and generation
Create Chat Completion
OpenAI-compatible /v1/chat/completions, streaming and non-streaming.
Create Response
OpenAI Responses API.
Create Message
Anthropic Messages API.
Gemini Generate Content
Google Gemini native endpoint.
Gemini Stream Generate Content
Streaming variant of the Gemini native endpoint.
Create Completion
Legacy /v1/completions, kept for older SDKs.
Models
Embeddings, images and video
Create Embeddings
Vector embeddings for text.
Create Image
Generate images from a prompt.
Edit Image
Edit an existing image.
Create Video
Submit a video generation job.
Get Video
Poll a video generation job.
Self-hosted coverage
The open-source gateway serves the chat, generation, image-generation, image-edit and model-listing endpoints; embeddings and video are YoloRouter Cloud only. Each endpoint page states which group it belongs to — see Self-hosting for running your own instance.