Skip to content

Models

/v1/models lists models available to the current API key.

Interface

ItemValue
MethodGET
Path/v1/models
AuthenticationAuthorization: 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 platformDefault response
OpenAIOpenAI default model list.
GeminiGemini default model list.
OtherClaude 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"
    }
  ]
}
FieldDescription
objectAlways list for OpenAI-compatible model lists.
data[].idModel name to use in request bodies.
data[].display_nameDisplay name when available.

Notes

  • The current backend does not register a /models alias without /v1.

Errors

StatusCause
401API key is missing or invalid.
403API key group or account access check failed.
500 / 502 / 503Gateway or upstream provider failed while listing models.