Skip to main content
GET
/
models
List available models
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
  }
]

Authorizations

X-API-KEY
string
header
required

Headers

X-End-User-ID
string | null

Response

Successful Response

name
string
required

The internal name of the model.

Example:

"gpt-4o"

provider
string
required

The provider of the model.

Example:

"openai"

description
string | null

A description of the model.

display_name
string | null

A user-friendly display name for the model.

Example:

"GPT-4o"

default
boolean
default:false

Whether this is the default model.