Перейти к основному содержанию
GET
/
v1
/
models
Get Token Models
curl --request GET \
  --url https://api.example.com/v1/models

Documentation Index

Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Get the list of models that the current token (API Key) can access. If the token has no model restrictions, all enabled system models are returned. The currently supported public endpoint is:
GET /v1/models
GET /api/token/models is not a currently exposed public endpoint. Use /v1/models instead.

Authentication

Authenticate using an API Key (sk-xxx):
Authorization: Bearer sk-xxx

Response Format

{
  "success": true,
  "object": "list",
  "data": [
    {
      "id": "gpt-5.4",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "id": "claude-sonnet-4-6",
      "object": "model",
      "owned_by": "anthropic"
    }
  ]
}

Code Examples

from openai import OpenAI

client = OpenAI(
    api_key="sk-xxx",
    base_url="https://crazyrouter.com/v1"
)

# Get model list via OpenAI SDK
models = client.models.list()
for model in models.data:
    print(model.id)
If you use the OpenAI SDK, client.models.list() is effectively calling GET /v1/models.
Related pages: