List models
curl --request GET \
--url https://api.hcompany.ai/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hcompany.ai/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://api.hcompany.ai/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://api.hcompany.ai/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://api.hcompany.ai/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://api.hcompany.ai/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hcompany.ai/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{
"data[].id": "<string>",
"data[].context_length": 123,
"data[].max_output_length": 123,
"data[].input_modalities": [
{}
],
"data[].supported_features": [
{}
],
"data[].supported_sampling_parameters": [
{}
],
"data[].pricing": {},
"data[].deprecation_date": "<string>",
"data[].is_active": true
}Endpoints
List models
Programmatic discovery of the served models, their capabilities, pricing, and deprecation dates.
GET
/
v1
/
models
List models
curl --request GET \
--url https://api.hcompany.ai/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hcompany.ai/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://api.hcompany.ai/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://api.hcompany.ai/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://api.hcompany.ai/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://api.hcompany.ai/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hcompany.ai/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{
"data[].id": "<string>",
"data[].context_length": 123,
"data[].max_output_length": 123,
"data[].input_modalities": [
{}
],
"data[].supported_features": [
{}
],
"data[].supported_sampling_parameters": [
{}
],
"data[].pricing": {},
"data[].deprecation_date": "<string>",
"data[].is_active": true
}Lists the models currently served by the API, with capabilities, limits, pricing, and lifecycle metadata. Use it to discover model IDs at runtime and to detect upcoming removals via
deprecation_date instead of hardcoding assumptions.
Returns a list object whose data array contains one object per model.
Response
string
The model ID to pass as
model in chat completions, e.g. holo4-27b.integer
Total context window in tokens.
integer
Hard ceiling on output tokens per request. 8,192 on the Holo3 models.
array
["text", "image"] for all Holo models.array
Capability flags:
reasoning on every model, and tools for native function calling on every model except holo3-122b-a10b.array
Accepted sampling fields, e.g.
temperature, top_p, top_k, max_tokens, stop, frequency_penalty, presence_penalty, seed.object
Per-token USD rates as decimal strings:
prompt and completion per input/output token, and input_cache_read per prompt token served from the cache. See Prompt caching.string
Set when the model is scheduled for removal;
null otherwise. After removal, requests to the ID fail with model_not_found.boolean
Whether the model is currently serving traffic (also see
is_ready).Examples
models = client.models.list()
for m in models.data:
print(m.id)
const models = await client.models.list();
for (const m of models.data) {
console.log(m.id);
}
curl https://api.hcompany.ai/v1/models \
-H "Authorization: Bearer $HAI_API_KEY"
Response (truncated)
{
"object": "list",
"data": [
{
"id": "holo3-1-35b-a3b",
"object": "model",
"name": "Holo3.1 35B A3B",
"context_length": 65536,
"max_output_length": 8192,
"input_modalities": ["text", "image"],
"supported_features": ["reasoning", "tools"],
"supported_sampling_parameters": ["temperature", "top_p", "top_k", "max_tokens", "stop", "frequency_penalty", "presence_penalty", "seed"],
"pricing": {"prompt": "0.00000025", "completion": "0.0000018", "input_cache_read": "0.000000025"},
"is_active": true,
"deprecation_date": null
}
]
}
Next steps
Chat completions
The endpoint these model IDs are used with.
Models API
Model cards and pricing.
Was this page helpful?