curl --request GET \
--url https://{region}.api.slng.ai/v1/catalog/models/{model_code} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.slng.ai/v1/catalog/models/{model_code}"
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/{model_code}', 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/{model_code}",
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/{model_code}"
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/{model_code}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.slng.ai/v1/catalog/models/{model_code}")
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{
"code": "deepgram/aura:2",
"name": "Aura 2",
"service_type": "tts",
"provider_code": "deepgram",
"provider": {
"code": "<string>",
"name": "<string>",
"website": "<string>",
"logo_url": "<string>"
},
"hosted_by": "<string>",
"short_description": "<string>",
"long_description": "<string>",
"best_for": "<string>",
"use_cases": [
"<string>"
],
"capabilities": [
"<string>"
],
"languages": [
"<string>"
],
"streaming": true,
"batch": true,
"accuracy": 123,
"voice_count": 123,
"api_path": "<string>",
"code_example": "<string>",
"code_examples": {},
"docs_url": "<string>",
"tags": [
"<string>"
],
"family_code": "<string>",
"family_name": "<string>",
"available_regions": [
"au",
"eu-west",
"in",
"us-east"
],
"region_details": [
{
"code": "<string>",
"country": "<string>",
"world_part_code": "<string>",
"world_part_label": "<string>",
"latency_ms": 123,
"price": 123,
"discounted_price": 123
}
],
"region_picker_options": [
{
"code": "<string>",
"label": "<string>",
"flag": "<string>",
"min_price": 123,
"discounted_min_price": 123,
"latency_ms_avg": 123
}
],
"served_regions": [
"eu-north",
"eu-west",
"gb"
],
"served_region_details": [
{
"code": "<string>",
"country": "<string>",
"world_part_code": "<string>",
"world_part_label": "<string>",
"latency_ms": 123,
"price": 123,
"discounted_price": 123
}
],
"served_region_picker_options": [
{
"code": "<string>",
"label": "<string>",
"flag": "<string>",
"min_price": 123,
"discounted_min_price": 123,
"latency_ms_avg": 123
}
],
"supported_protocols": [
"https"
],
"voices": [
{
"voice_id": "aura-2-amalthea-en",
"name": "Amalthea",
"language": "en",
"gender": "<string>",
"tone": "<string>",
"use_case": "<string>",
"age_range": "<string>",
"preview_url": "<string>",
"enabled": true
}
],
"similar_models": [
{
"code": "<string>",
"name": "<string>",
"provider_name": "<string>",
"service_type": "<string>",
"description": "<string>"
}
],
"pricing": {},
"agent_availability": [
{
"region": "eu-west",
"language": "en",
"voice_ids": [
"<string>"
]
}
]
}Get model
Get one catalog model and its voices.
curl --request GET \
--url https://{region}.api.slng.ai/v1/catalog/models/{model_code} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.slng.ai/v1/catalog/models/{model_code}"
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/{model_code}', 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/{model_code}",
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/{model_code}"
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/{model_code}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.slng.ai/v1/catalog/models/{model_code}")
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{
"code": "deepgram/aura:2",
"name": "Aura 2",
"service_type": "tts",
"provider_code": "deepgram",
"provider": {
"code": "<string>",
"name": "<string>",
"website": "<string>",
"logo_url": "<string>"
},
"hosted_by": "<string>",
"short_description": "<string>",
"long_description": "<string>",
"best_for": "<string>",
"use_cases": [
"<string>"
],
"capabilities": [
"<string>"
],
"languages": [
"<string>"
],
"streaming": true,
"batch": true,
"accuracy": 123,
"voice_count": 123,
"api_path": "<string>",
"code_example": "<string>",
"code_examples": {},
"docs_url": "<string>",
"tags": [
"<string>"
],
"family_code": "<string>",
"family_name": "<string>",
"available_regions": [
"au",
"eu-west",
"in",
"us-east"
],
"region_details": [
{
"code": "<string>",
"country": "<string>",
"world_part_code": "<string>",
"world_part_label": "<string>",
"latency_ms": 123,
"price": 123,
"discounted_price": 123
}
],
"region_picker_options": [
{
"code": "<string>",
"label": "<string>",
"flag": "<string>",
"min_price": 123,
"discounted_min_price": 123,
"latency_ms_avg": 123
}
],
"served_regions": [
"eu-north",
"eu-west",
"gb"
],
"served_region_details": [
{
"code": "<string>",
"country": "<string>",
"world_part_code": "<string>",
"world_part_label": "<string>",
"latency_ms": 123,
"price": 123,
"discounted_price": 123
}
],
"served_region_picker_options": [
{
"code": "<string>",
"label": "<string>",
"flag": "<string>",
"min_price": 123,
"discounted_min_price": 123,
"latency_ms_avg": 123
}
],
"supported_protocols": [
"https"
],
"voices": [
{
"voice_id": "aura-2-amalthea-en",
"name": "Amalthea",
"language": "en",
"gender": "<string>",
"tone": "<string>",
"use_case": "<string>",
"age_range": "<string>",
"preview_url": "<string>",
"enabled": true
}
],
"similar_models": [
{
"code": "<string>",
"name": "<string>",
"provider_name": "<string>",
"service_type": "<string>",
"description": "<string>"
}
],
"pricing": {},
"agent_availability": [
{
"region": "eu-west",
"language": "en",
"voice_ids": [
"<string>"
]
}
]
}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.
Path Parameters
Full model code, including slashes and the version suffix.
"deepgram/aura:2"
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 that support this protocol.
https, wss Response
The model.
Model code. Use it in API paths, and in an agent's models.stt, models.llm, or models.tts.
"deepgram/aura:2"
"Aura 2"
stt, llm, tts "tts"
"deepgram"
Show child attributes
Show child attributes
Who hosts the model.
Supported language codes. With surface=agent, the languages agents can use the model in, within the selected filters.
Number of voices. With surface=agent, the number of voices available for the selected region and language.
Show child attributes
Show child attributes
Where the model's deployments run: region or gateway codes. Filter on these with region.
["au", "eu-west", "in", "us-east"]
Price and latency per entry in available_regions.
Show child attributes
Show child attributes
The region_details entries grouped by gateway region.
Show child attributes
Show child attributes
Gateway codes of the regions that can serve the model, including regions that reach a deployment hosted elsewhere.
["eu-north", "eu-west", "gb"]
Price and latency per served region. Figures are the best available from that region, not a quote for a particular request.
Show child attributes
Show child attributes
The served_region_details entries grouped by gateway region.
Show child attributes
Show child attributes
https, wss Voices for a text to speech model. Always empty in the list response; get the model to fill it. With surface=agent, only the voices available for the selected region and language.
Show child attributes
Show child attributes
Related models. Empty with surface=agent.
Show child attributes
Show child attributes
Pricing metadata, for example min_price in microdollars_per_min. An empty object means no pricing metadata is available.
Agent regions and languages the model is available in, with the selectable voice IDs. Filled only with surface=agent.
Show child attributes
Show child attributes