Skip to main content
GET
List Models

Introduction

Get list of available models. Response format is auto-detected by headers:
  • With x-api-key and anthropic-version headers: Anthropic format
  • With x-goog-api-key header or key query param: Gemini format
  • Otherwise: OpenAI format

Authentication

string
required
Bearer Token, e.g. Bearer sk-xxxxxxxxxx

cURL Example

Python Example

Response Fields

Notes

  • Model list varies based on your API Key permissions
  • Use to check if a specific model is available
  • Requires openai: pip install openai