cURL
curl --request GET \
--url https://recoup-api.vercel.app/api/ai/modelsimport requests
url = "https://recoup-api.vercel.app/api/ai/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://recoup-api.vercel.app/api/ai/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://recoup-api.vercel.app/api/ai/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://recoup-api.vercel.app/api/ai/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://recoup-api.vercel.app/api/ai/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://recoup-api.vercel.app/api/ai/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{
"models": [
{
"id": "anthropic/claude-3-5-sonnet",
"name": "Claude 3.5 Sonnet",
"description": "<string>",
"modelType": "language",
"pricing": {
"input": "<string>",
"output": "<string>"
},
"specification": {},
"context_window": 200000,
"cost": {
"input": 3,
"output": 15
}
}
]
}{
"message": "<string>"
}Chats
List Models
Returns the catalog of language models available through the Vercel AI Gateway. Embedding models are filtered out. The full schema mirrors the Vercel AI Gateway response (GatewayLanguageModelEntry from @ai-sdk/gateway); the documented properties below are the load-bearing fields used by clients. No authentication required.
GET
/
api
/
ai
/
models
cURL
curl --request GET \
--url https://recoup-api.vercel.app/api/ai/modelsimport requests
url = "https://recoup-api.vercel.app/api/ai/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://recoup-api.vercel.app/api/ai/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://recoup-api.vercel.app/api/ai/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://recoup-api.vercel.app/api/ai/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://recoup-api.vercel.app/api/ai/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://recoup-api.vercel.app/api/ai/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{
"models": [
{
"id": "anthropic/claude-3-5-sonnet",
"name": "Claude 3.5 Sonnet",
"description": "<string>",
"modelType": "language",
"pricing": {
"input": "<string>",
"output": "<string>"
},
"specification": {},
"context_window": 200000,
"cost": {
"input": 3,
"output": 15
}
}
]
}{
"message": "<string>"
}Response
Model catalog retrieved successfully
List of language models available through the Vercel AI Gateway
Show child attributes
Show child attributes
Was this page helpful?
⌘I
