API Reference

List Models

Returns the list of models available for your API key's group.

GET
/v1/models

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"
  }
}