Skip to content

DocsAPI reference

Models

GET /v1/models — the models your API key can reach right now, with their context windows, readiness and instances.

HTTP
GET https://osarai.xyz/v1/models

Lists the models your running instances serve. Tools call it to fill their model pickers; you can use it to check that an instance is Ready before sending work.

Terminal
curl "https://osarai.xyz/v1/models" -H "Authorization: Bearer $OSARAI_API_KEY"

Response

JSON
{
  "object": "list",
  "data": [
    {
      "id": "qwen3.8-27b",
      "object": "model",
      "created": 1793952000,
      "owned_by": "osarai",
      "display_name": "qwen3.8-27b",
      "type": "model",
      "max_model_len": 131072,
      "ready": true,
      "instances": [{ "id": "a1b2c3d4e5", "ready": true, "max_model_len": 131072 }]
    }
  ]
}
FieldMeaning
idThe model id to send as model
display_name, typeFor Anthropic clients such as Claude Code's model picker
max_model_lenContext window in tokens; with several instances, the smallest among the ready ones
readytrue when at least one instance answers requests
instancesEach instance with its id (for X-Instance-Id), readiness and context window

An instance appears from the moment you deploy it, with ready: false until it finishes starting. With no instance running, data is empty and requests answer 503.