Get AI model catalog
curl --request GET \
--url https://api.gleap.io/v3/ai/modelsimport requests
url = "https://api.gleap.io/v3/ai/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.gleap.io/v3/ai/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gleap.io/v3/ai/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gleap.io/v3/ai/models"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gleap.io/v3/ai/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gleap.io/v3/ai/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"models": [
{
"id": "<string>",
"displayName": "<string>",
"shortLabel": "<string>",
"description": "<string>",
"contextWindow": 123,
"costPerMillionTokens": {
"input": 123,
"output": 123,
"cachedInput": 123,
"cacheWriteInput": 123,
"longContextThreshold": 123,
"longInputMultiplier": 123,
"longOutputMultiplier": 123
},
"capabilities": {
"chat": true,
"vision": true,
"tools": true,
"streaming": true,
"transcription": true,
"reasoning": true,
"minimalReasoning": true,
"temperatureUnsupported": true
},
"pickers": {
"kaiAgent": true,
"kaiCodeCloud": true,
"kaiCodeOpenCode": true
},
"supportedEfforts": [],
"subagentModelId": "<string>",
"aliases": [
"<string>"
],
"opencodeId": "<string>",
"variant1M": true,
"averageCostPerAnswerUsd": "<string>"
}
],
"pickers": {
"transcription": [
{
"value": "<string>",
"label": "<string>"
}
],
"kaiCodeOpenCode": [
{
"value": "<string>",
"label": "<string>"
}
],
"kaiCodeCloud": [
{
"value": "<string>",
"label": "<string>"
}
],
"kaiAgent": [
{
"value": "<string>",
"label": "<string>"
}
]
},
"runtimeDefaults": {
"cloud": "<string>",
"opencode": "<string>",
"claudeCode": "<string>",
"codex": "<string>"
}
}AiModels
Get AI model catalog
Returns the full model catalog, the curated picker lists (Kai agent, Kai Code cloud, Kai Code OpenCode, transcription), and the per-runtime default model ids. Internal fields and markup metadata are not exposed; customer-facing cost figures are pre-computed.
GET
/
ai
/
models
Get AI model catalog
curl --request GET \
--url https://api.gleap.io/v3/ai/modelsimport requests
url = "https://api.gleap.io/v3/ai/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.gleap.io/v3/ai/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gleap.io/v3/ai/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.gleap.io/v3/ai/models"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.gleap.io/v3/ai/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gleap.io/v3/ai/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"models": [
{
"id": "<string>",
"displayName": "<string>",
"shortLabel": "<string>",
"description": "<string>",
"contextWindow": 123,
"costPerMillionTokens": {
"input": 123,
"output": 123,
"cachedInput": 123,
"cacheWriteInput": 123,
"longContextThreshold": 123,
"longInputMultiplier": 123,
"longOutputMultiplier": 123
},
"capabilities": {
"chat": true,
"vision": true,
"tools": true,
"streaming": true,
"transcription": true,
"reasoning": true,
"minimalReasoning": true,
"temperatureUnsupported": true
},
"pickers": {
"kaiAgent": true,
"kaiCodeCloud": true,
"kaiCodeOpenCode": true
},
"supportedEfforts": [],
"subagentModelId": "<string>",
"aliases": [
"<string>"
],
"opencodeId": "<string>",
"variant1M": true,
"averageCostPerAnswerUsd": "<string>"
}
],
"pickers": {
"transcription": [
{
"value": "<string>",
"label": "<string>"
}
],
"kaiCodeOpenCode": [
{
"value": "<string>",
"label": "<string>"
}
],
"kaiCodeCloud": [
{
"value": "<string>",
"label": "<string>"
}
],
"kaiAgent": [
{
"value": "<string>",
"label": "<string>"
}
]
},
"runtimeDefaults": {
"cloud": "<string>",
"opencode": "<string>",
"claudeCode": "<string>",
"codex": "<string>"
}
}⌘I