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)
const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};

fetch('https://app.ubik-agent.com/api/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
curl --request GET \
--url https://app.ubik-agent.com/api/v1/models \
--header 'X-API-KEY: <api-key>'
[
  {
    "name": "gpt-4o",
    "provider": "openai",
    "description": "<string>",
    "display_name": "GPT-4o",
    "default": false
  }
]
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

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.