/v1/models endpoint returns all models that your token has permission to use. OpenOpen8 inspects your request headers and returns the model list in the format that matches your client: OpenAI format by default, Anthropic format when Claude headers are present, or Gemini format when Google headers are present.
GET /v1/models
Authentication
Pass your token using the header that matches the format you want in the response:| Auth method | Headers required | Response format |
|---|---|---|
| OpenAI (default) | Authorization: Bearer YOUR_TOKEN | OpenAI model list |
| Anthropic (Claude) | x-api-key: YOUR_TOKEN and anthropic-version: 2023-06-01 | Anthropic model list |
| Gemini (Google) | x-goog-api-key: YOUR_TOKEN | Gemini model list |
?key=YOUR_TOKEN query parameter instead of the x-goog-api-key header.
Response (OpenAI format)
When you authenticate with a Bearer token and no Claude or Gemini headers are present, the response follows the OpenAI models list format:Always
"list".Array of model objects.
GET /v1/models/:model
Retrieve information about a specific model by its ID.data array above. When Claude headers are present, this endpoint returns the Anthropic model format instead.
Gemini format endpoint
To list models in Gemini format, you can use either of the following paths:GET /v1/modelswithx-goog-api-keyheaderGET /v1beta/modelswith any valid token