Get Models
curl --request GET \
--url https://ai-gateway.helicone.ai/v1/modelsimport requests
url = "https://ai-gateway.helicone.ai/v1/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ai-gateway.helicone.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://ai-gateway.helicone.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",
]);
$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://ai-gateway.helicone.ai/v1/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://ai-gateway.helicone.ai/v1/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://ai-gateway.helicone.ai/v1/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{
"object": "list",
"data": [
{
"id": "<string>",
"object": "model",
"created": 123,
"owned_by": "<string>"
}
]
}{
"error": {
"message": "<string>",
"type": "<string>"
}
}Models
Get Models
Returns all available models supported by Helicone AI Gateway (OpenAI-compatible endpoint)
GET
/
v1
/
models
Get Models
curl --request GET \
--url https://ai-gateway.helicone.ai/v1/modelsimport requests
url = "https://ai-gateway.helicone.ai/v1/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://ai-gateway.helicone.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://ai-gateway.helicone.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",
]);
$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://ai-gateway.helicone.ai/v1/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://ai-gateway.helicone.ai/v1/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://ai-gateway.helicone.ai/v1/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{
"object": "list",
"data": [
{
"id": "<string>",
"object": "model",
"created": 123,
"owned_by": "<string>"
}
]
}{
"error": {
"message": "<string>",
"type": "<string>"
}
}This endpoint returns a list of all AI models supported by the Helicone AI Gateway. This is an OpenAI-compatible endpoint that follows the same response format as OpenAI’s
/v1/models endpoint.
Use this endpoint to discover which models are available for routing through the AI Gateway.
Endpoint URL
https://ai-gateway.helicone.ai/v1/models
Example Request
curl https://ai-gateway.helicone.ai/v1/models
Example Response
{
"object": "list",
"data": [
{
"id": "claude-opus-4",
"object": "model",
"created": 1747180800,
"owned_by": "anthropic"
},
{
"id": "gpt-4o",
"object": "model",
"created": 1715558400,
"owned_by": "openai"
},
...
]
}
Use Cases
- OpenAI Compatibility: Use this endpoint as a drop-in replacement for OpenAI’s
/v1/modelsendpoint - Model Discovery: Discover which models are available through Helicone AI Gateway
- Integration Testing: Verify model availability for your applications
Was this page helpful?