Models

List available models via the GET /v1/models endpoint

GET/v1/models

List all models available to your API key.

Request#

No request body required. Include your API key in the Authorization header.

cURL
curl https://api.foza.ai/v1/models \
  -H "Authorization: Bearer sk-foza-xxxxx"
Python
from openai import OpenAI
 
client = OpenAI(base_url="https://api.foza.ai/v1", api_key="sk-foza-xxxxx")
models = client.models.list()
 
for model in models.data:
    print(model.id)

Response#

Only models that are subscribed to your API key will appear in the response.