The models endpoint returns the list of AI models that are currently available on your Newapi instance. The response format adapts automatically based on your request headers — OpenAI format by default, or Anthropic/Gemini format when the appropriate headers are present.Documentation Index
Fetch the complete documentation index at: https://doc.hitopen.com/llms.txt
Use this file to discover all available pages before exploring further.
The list of available models reflects what your administrator has configured. Models that exist in the underlying provider but are not mapped to an active channel will not appear here.
Endpoint
Request headers
The response format is determined automatically:| Condition | Response format |
|---|---|
x-api-key and anthropic-version headers present | Anthropic format |
x-goog-api-key header or key query parameter present | Gemini format |
| All other requests | OpenAI format (default) |
Authorization: Bearer header and you will receive the OpenAI format.
Query parameters
Google API key. When present, the response is returned in Gemini format. Most users should use the
Authorization header instead.Response fields (OpenAI format)
Always
"list".