Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Models list

GET /v1/models — flat OpenAI-compatible list of accessible models for the current API key.

Call

curl https://api.lazu.ai/v1/models \
  -H "Authorization: Bearer $LAZU_API_KEY"

Response:

{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o-mini",
      "object": "model",
      "created": 1721347200,
      "owned_by": "openai"
    },
    {
      "id": "claude-haiku-4-5-20251001",
      "object": "model",
      "created": 1730851200,
      "owned_by": "anthropic"
    },
    ...
  ]
}

When to use /v1/models vs /api/models/catalog

EndpointUse when
/v1/modelsYour client SDK uses OpenAI's models.list() interface
/api/models/catalogYou need richer metadata: pricing per lane, modality, parameters, context length

For agents and any code that picks a model dynamically, prefer /api/models/catalog — it has the data you actually need to pick well.

Python (OpenAI SDK)

from openai import OpenAI
client = OpenAI(base_url="https://api.lazu.ai/v1", api_key="...")
 
for m in client.models.list().data:
    print(m.id, m.owned_by)

What gets filtered

A model appears in this list only if:

  1. It's enabled (status=1) on at least one Lazu channel
  2. The current API key has access (no per-key model restriction excluding it)

If a model exists in the system but your key can't use it, it won't appear.

See also