Skip to content
API Reference

List All Models

Retrieve the models your API key can call. The list is scoped to your key and covers LLMs, image models, video models and more. Each entry has id (the model code to pass as model), object, created and owned_by.

GET https://llm.siraya.ai/v1/models
curl https://llm.siraya.ai/v1/models \
  -H "Authorization: Bearer <API_KEY>"
from openai import OpenAI

client = OpenAI(
    base_url="https://llm.siraya.ai/v1",
    api_key="<API_KEY>"
)

models = client.models.list()
for model in models:
    print(model.id)

Example Response

{
  "object": "list",
  "data": [
    {
      "id": "claude-sonnet-4.5",
      "object": "model",
      "created": 1704067200,
      "owned_by": "anthropic"
    },
    {
      "id": "gpt-5.4-pro",
      "object": "model",
      "created": 1704067200,
      "owned_by": "openai"
    }
  ]
}