API Reference
List Models
Returns the list of models available for your API key's group.
Authorization
ApiKeyAuth AuthorizationBearer <token>
Your Yolo Router API key. Format: Bearer sk-...
In: header
Response Body
application/json
application/json
curl -X GET "https://api.yolorouter.com/v1/models"{
"object": "list",
"data": [
{
"id": "gpt-4o",
"object": "model",
"created": 1715000000,
"owned_by": "yolo-router"
},
{
"id": "claude-3-5-sonnet-20241022",
"object": "model",
"created": 1715000000,
"owned_by": "yolo-router"
}
]
}{
"error": {
"type": "invalid_request_error",
"code": "invalid_api_key",
"message": "Invalid API key"
}
}Create Response POST
Creates a model response. Supports streaming via `stream: true`. Compatible with the OpenAI Responses API. Automatically routes to the best available provider (OpenAI, Anthropic, Google, etc.).
CogView-4
Zhipu AI's image generation model with strong Chinese/English text rendering and multiple resolution support.