Models
/v1/models lists models available to the current API key.
Interface
| Item | Value |
|---|---|
| Method | GET |
| Path | /v1/models |
| Authentication | Authorization: Bearer YOUR_API_KEY |
Return Logic
The server returns models configured for the current group and accounts first. If none are configured, it falls back to platform defaults.
| Group platform | Default response |
|---|---|
| OpenAI | OpenAI default model list. |
| Gemini | Gemini default model list. |
| Other | Claude default model list. |
If the group enables a custom model list, the response is filtered by the custom list and available models.
Request Example
bash
curl https://api.llmapi.site/v1/models \
-H 'Authorization: Bearer YOUR_API_KEY'Response Example
json
{
"object": "list",
"data": [
{
"id": "gpt-5.1",
"object": "model",
"display_name": "gpt-5.1"
}
]
}| Field | Description |
|---|---|
object | Always list for OpenAI-compatible model lists. |
data[].id | Model name to use in request bodies. |
data[].display_name | Display name when available. |
Notes
- The current backend does not register a
/modelsalias without/v1.
Errors
| Status | Cause |
|---|---|
401 | API key is missing or invalid. |
403 | API key group or account access check failed. |
500 / 502 / 503 | Gateway or upstream provider failed while listing models. |