Skip to main content

Endpoint

GET https://api.pipellm.ai/v1/models

Authentication

Use any supported authentication header:
HeaderExample
AuthorizationBearer $PIPELLM_API_KEY
x-api-key$PIPELLM_API_KEY

Code Examples

curl https://api.pipellm.ai/v1/models \
  -H "Authorization: Bearer $PIPELLM_API_KEY"

Response

{
  "object": "list",
  "data": [
    {
      "id": "claude-sonnet-4-20250514",
      "display_name": "Claude Sonnet 4",
      "type_target": "anthropic",
      "created_at": "2025-05-14T00:00:00Z"
    },
    {
      "id": "gpt-4o",
      "display_name": "Gpt 4o",
      "type_target": "openai",
      "created_at": "2024-05-01T00:00:00Z"
    },
    {
      "id": "gemini-2.5-pro",
      "display_name": "Gemini 2.5 Pro",
      "type_target": "openai",
      "created_at": "2025-03-01T00:00:00Z"
    }
  ],
  "total": 3
}

Response Fields

FieldTypeDescription
objectstringAlways "list"
dataarrayArray of model objects
data[].idstringModel ID, used in API requests
data[].display_namestringHuman-readable model name
data[].type_targetstringAPI format: openai or anthropic
data[].created_atstringModel creation timestamp (RFC3339)
totalintegerTotal number of available models