Models endpoint
GET https://API_HOST/v1/models lists the models your key can call. Use the returned id in the model field of your requests.
Request
curl https://API_HOST/v1/models -H "Authorization: Bearer $UI_API_KEY"
Response
{
"object": "list",
"data": [
{"id": "MODEL_ID", "object": "model", "owned_by": "..."}
]
}
With the SDKs
for m in client.models.list():
print(m.id)
Why read the id from the API
Ids can change when a model is replaced. Reading them from /models at start-up, or keeping
the id in configuration, avoids a code change. What each model is, and its limits, is described on the
models page.
Last updated: 2 December 2026