Passer au contenu principal
GET
/
models
Lister les modèles disponibles
import requests

url = "https://app.ubik-agent.com/api/v1/models"

headers = {"X-API-KEY": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
[
  {
    "name": "gpt-4o",
    "provider": "openai",
    "description": "<string>",
    "display_name": "GPT-4o",
    "default": false
  }
]

Autorisations

X-API-KEY
string
header
requis

En-têtes

X-End-User-ID
string | null

Réponse

Successful Response

name
string
requis

The internal name of the model.

Exemple:

"gpt-4o"

provider
string
requis

The provider of the model.

Exemple:

"openai"

description
string | null

A description of the model.

display_name
string | null

A user-friendly display name for the model.

Exemple:

"GPT-4o"

default
boolean
défaut:false

Whether this is the default model.