curl --request GET \
--url https://{region}.api.slng.ai/v1/catalog/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.slng.ai/v1/catalog/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{region}.api.slng.ai/v1/catalog/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://{region}.api.slng.ai/v1/catalog/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://{region}.api.slng.ai/v1/catalog/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://{region}.api.slng.ai/v1/catalog/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.slng.ai/v1/catalog/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{
"items": [
{
"code": "deepgram/aura:2",
"name": "Aura 2",
"service_type": "tts",
"provider_code": "deepgram",
"hosted_by": "Deepgram",
"languages": [
"en"
],
"voice_count": 41,
"available_regions": [
"au",
"eu-west",
"in",
"us-east"
],
"supported_protocols": [
"https",
"wss"
],
"voices": [],
"similar_models": [],
"pricing": {
"min_price": 50,
"unit": "microdollars_per_min"
},
"agent_availability": [
{
"region": "eu-west",
"language": "en",
"voice_ids": [
"aura-2-amalthea-en",
"aura-2-andromeda-en"
]
}
]
}
],
"meta": {
"page": 1,
"page_size": 1,
"total": 6,
"pages": 6
}
}List models
List catalog models, or the models available to agents in an agent region and language.
curl --request GET \
--url https://{region}.api.slng.ai/v1/catalog/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.slng.ai/v1/catalog/models"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{region}.api.slng.ai/v1/catalog/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://{region}.api.slng.ai/v1/catalog/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://{region}.api.slng.ai/v1/catalog/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://{region}.api.slng.ai/v1/catalog/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.slng.ai/v1/catalog/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{
"items": [
{
"code": "deepgram/aura:2",
"name": "Aura 2",
"service_type": "tts",
"provider_code": "deepgram",
"hosted_by": "Deepgram",
"languages": [
"en"
],
"voice_count": 41,
"available_regions": [
"au",
"eu-west",
"in",
"us-east"
],
"supported_protocols": [
"https",
"wss"
],
"voices": [],
"similar_models": [],
"pricing": {
"min_price": 50,
"unit": "microdollars_per_min"
},
"agent_availability": [
{
"region": "eu-west",
"language": "en",
"voice_ids": [
"aura-2-amalthea-en",
"aura-2-andromeda-en"
]
}
]
}
],
"meta": {
"page": 1,
"page_size": 1,
"total": 6,
"pages": 6
}
}Authorizations
Optional SLNG API key, sent as Authorization: Bearer $SLNG_API_KEY. Returns your organization's models and pricing. An invalid key returns 401; it never falls back to the public catalog.
Query Parameters
Set to agent to list only the models enabled for agents and to add agent_availability to each model. Omit for the general catalog.
agent Agent region code, for example eu-west or us-east-slng. Requires surface=agent. This is the agent's region, not a gateway code or a model hosting region. An unknown code returns an empty list. See Agent regions.
50^[a-z0-9]+(?:-[a-z0-9]+)*$"eu-west"
Language code, for example en. Repeat the parameter for several languages, up to 16. With surface=agent, matches the languages an agent can use the model in.
1635^[a-zA-Z]{2,8}(?:-[a-zA-Z0-9]{1,8})*$["en"]
Return models of one service type. The general catalog lists speech models (stt and tts); LLMs for agents appear with surface=agent.
stt, llm, tts Provider code, for example deepgram. Repeat for several.
Hosting location of the model's deployments, as listed in available_regions. Repeat for several. Not an agent region code.
Use case tag. Repeat for several.
Capability tag. Repeat for several.
Return models that support this protocol.
https, wss Return only SLNG-hosted models. Accepts true, false, 1, or 0.
Search text matched against model names and descriptions.
200Page number, starting at 1.
1 <= x <= 10000Results per page. In the general catalog a page holds this many model families, and each family brings its matching variants, so items can be longer than page_size. With surface=agent each model counts once.
1 <= x <= 100