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
| Endpoint | Use when |
|---|---|
/v1/models | Your client SDK uses OpenAI's models.list() interface |
/api/models/catalog | You 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:
- It's enabled (
status=1) on at least one Lazu channel - 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
- Catalog — richer schema
- Chat completions