List Models
curl --request GET \
--url https://slides-api.getalai.com/api/modern/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://slides-api.getalai.com/api/modern/v1/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://slides-api.getalai.com/api/modern/v1/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://slides-api.getalai.com/api/modern/v1/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://slides-api.getalai.com/api/modern/v1/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://slides-api.getalai.com/api/modern/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://slides-api.getalai.com/api/modern/v1/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "openai/gpt-5.6-sol",
"label": "<string>",
"internal_only": false,
"default": false
}
]Start Here
List Models
GET
/
api
/
modern
/
v1
/
models
List Models
curl --request GET \
--url https://slides-api.getalai.com/api/modern/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://slides-api.getalai.com/api/modern/v1/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://slides-api.getalai.com/api/modern/v1/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://slides-api.getalai.com/api/modern/v1/models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://slides-api.getalai.com/api/modern/v1/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://slides-api.getalai.com/api/modern/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://slides-api.getalai.com/api/modern/v1/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "openai/gpt-5.6-sol",
"label": "<string>",
"internal_only": false,
"default": false
}
]List the AI models available to the authenticated user. The response mirrors the model choices available to that user in Alai and marks the default model with
default: true.
Pass a returned id in the model object of a generate or edit request. If model is omitted, Alai uses the current default. Version 1 supports fallback_policy: "deny": Alai fails the operation instead of silently switching away from your selected model.
{
"model": {
"id": "anthropic/claude-opus-4.8",
"fallback_policy": "deny"
}
}
Model availability can differ by account and may change over time. Discover models at runtime instead of hard-coding the full model list.
Authorizations
Your Alai API key. Get one from your account settings at app.getalai.com
Response
200 - application/json
Successful Response
Selectable primary model for the modern deck and design system agents.
Values are OpenRouter model IDs (see OpenRouterModels in ai_models/model_list.py).
Available options:
openai/gpt-5.6-sol, openai/gpt-5.6-terra, anthropic/claude-opus-4.8, anthropic/claude-sonnet-5, anthropic/claude-sonnet-4-6, anthropic/claude-haiku-4-5, google/gemini-3.1-pro-preview, moonshotai/kimi-k2.6, z-ai/glm-5.2, anthropic/claude-opus-4.8-fast, anthropic/claude-fable-5 Was this page helpful?