Skip to main content
GET
https://llm.ai-nebula.com
/
v1
/
models
List Models
curl --request GET \
  --url https://llm.ai-nebula.com/v1/models \
  --header 'Authorization: <authorization>'
{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1234567890,
      "owned_by": "openai"
    },
    {
      "id": "claude-sonnet-4-20250514",
      "object": "model",
      "created": 1234567890,
      "owned_by": "anthropic"
    },
    {
      "id": "gemini-2.5-pro",
      "object": "model",
      "created": 1234567890,
      "owned_by": "google"
    }
  ]
}

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

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

cURL Example

curl https://llm.ai-nebula.com/v1/models \
  -H "Authorization: Bearer sk-XyLy**************************mIqSt"

Python Example

from openai import OpenAI

client = OpenAI(
    api_key="sk-XyLy**************************mIqSt",
    base_url="https://llm.ai-nebula.com/v1"
)

models = client.models.list()

for model in models.data:
    print(model.id)
{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "created": 1234567890,
      "owned_by": "openai"
    },
    {
      "id": "claude-sonnet-4-20250514",
      "object": "model",
      "created": 1234567890,
      "owned_by": "anthropic"
    },
    {
      "id": "gemini-2.5-pro",
      "object": "model",
      "created": 1234567890,
      "owned_by": "google"
    }
  ]
}

Response Fields

FieldTypeDescription
objectstringAlways list
dataarrayModel list
data[].idstringModel identifier
data[].objectstringAlways model
data[].createdintegerCreation timestamp
data[].owned_bystringModel provider

Notes

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