Skip to main content
The /v1/models endpoint returns all models that your API key has permission to use. Anyone 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 API key using the header that matches the format you want in the response: You can also pass the Gemini API key as a ?key=YOUR_TOKEN query parameter instead of the x-goog-api-key header.

Response (OpenAI format)

When you authenticate with a Bearer API key and no Claude or Gemini headers are present, the response follows the OpenAI models list format:
string
Always "list".
object[]
Array of model objects.

GET /v1/models/:model

Retrieve information about a specific model by its ID.
Returns a single model object in the same format as an entry in the 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/models with x-goog-api-key header
  • GET /v1beta/models with any valid API key

Example

Example response (OpenAI format)

The models returned reflect what your specific API key is authorized to use. If you expect a model to appear but it does not, ask your Anyone administrator to grant access via the API key settings in the dashboard.