AI model APIModelsList models
Native OpenAI format
List available models. The response format is selected from the request:
x-api-keyandanthropic-versionheaders: Anthropicx-goog-api-keyheader orkeyquery parameter: Gemini- otherwise: OpenAI
Authorization
BearerAuth AuthorizationBearer <token>
Authenticate with a Bearer token: Authorization: Bearer sk-xxxxxx.
In: header
Query Parameters
key?string
Google API key for the Gemini format
Header Parameters
x-api-key?string
Anthropic API key for the Claude format
anthropic-version?string
Anthropic API version
x-goog-api-key?string
Google API key for the Gemini format
Response Body
application/json
application/json
curl -X GET "https://example.com/v1/models"{ "object": "list", "data": [ { "id": "gpt-4", "object": "model", "created": 0, "owned_by": "openai" } ]}