List ai gateway models
curl --request POST \
--url https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 5,
"provider": "openai",
"type": "chat"
}
'import requests
url = "https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models"
payload = {
"limit": 5,
"provider": "openai",
"type": "chat"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 5, provider: 'openai', type: 'chat'})
};
fetch('https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-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.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 5,
'provider' => 'openai',
'type' => 'chat'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models"
payload := strings.NewReader("{\n \"limit\": 5,\n \"provider\": \"openai\",\n \"type\": \"chat\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 5,\n \"provider\": \"openai\",\n \"type\": \"chat\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 5,\n \"provider\": \"openai\",\n \"type\": \"chat\"\n}"
response = http.request(request)
puts response.read_body{
"count": 5,
"listed_count": 416,
"models": [
{
"cached_input_price_per_million": 0.13,
"capabilities": [
"file-input",
"implicit-caching",
"reasoning",
"tool-use",
"vision",
"web-search",
"structured-output"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "GPT‑5.1-Codex-Max is purpose-built for agentic coding.",
"id": "openai/gpt-5.1-codex-max",
"input_price_per_million": 1.25,
"max_output_tokens": 128000,
"output_price_per_million": 10,
"providers": [
"azure"
],
"rank": 1,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.1-codex-max",
"zero_data_retention": true
},
{
"cached_input_price_per_million": 0.03,
"capabilities": [
"file-input",
"implicit-caching",
"reasoning",
"tool-use",
"vision",
"web-search",
"structured-output"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "GPT-5.1 Codex mini is a smaller, faster, and cheaper version of GPT-5.1 Codex.",
"id": "openai/gpt-5.1-codex-mini",
"input_price_per_million": 0.25,
"max_output_tokens": 128000,
"output_price_per_million": 2,
"providers": [
"azure"
],
"rank": 2,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.1-codex-mini",
"zero_data_retention": true
},
{
"cached_input_price_per_million": 0.13,
"capabilities": [
"tool-use",
"implicit-caching",
"file-input",
"reasoning",
"vision",
"web-search",
"fast",
"structured-output"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "An upgraded version of GPT-5 that adapts thinking time more precisely to the question to spend more time on complex questions and respond more quickly to simpler tasks.",
"id": "openai/gpt-5.1-thinking",
"input_price_per_million": 1.25,
"max_output_tokens": 128000,
"output_price_per_million": 10,
"providers": [
"openai",
"azure"
],
"rank": 3,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.1-thinking",
"zero_data_retention": true
},
{
"cached_input_price_per_million": 0.17,
"capabilities": [
"file-input",
"implicit-caching",
"reasoning",
"tool-use",
"vision",
"web-search",
"structured-output",
"websockets"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "GPT-5.2 is OpenAI's best general-purpose model, part of the GPT-5 flagship model family. It's their most intelligent model yet for both general and agentic tasks.",
"id": "openai/gpt-5.2",
"input_price_per_million": 1.75,
"max_output_tokens": 128000,
"output_price_per_million": 14,
"providers": [
"azure",
"openai"
],
"rank": 4,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.2",
"zero_data_retention": true
},
{
"cached_input_price_per_million": null,
"capabilities": [
"tool-use",
"vision",
"reasoning",
"file-input",
"web-search",
"structured-output"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "Version of GPT-5.2 that produces smarter and more precise responses.",
"id": "openai/gpt-5.2-pro",
"input_price_per_million": 21,
"max_output_tokens": 128000,
"output_price_per_million": 168,
"providers": [
"openai"
],
"rank": 5,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.2-pro",
"zero_data_retention": true
}
],
"next_offset": 5,
"observed_at_ms": 1792700000000,
"query": {
"capability": null,
"limit": 5,
"offset": 0,
"provider": "openai",
"q": null,
"type": "chat"
},
"source_url": "https://vercel.com/ai-gateway/models.md",
"total_count": 42,
"types": [
"chat",
"embedding",
"video",
"evaluation",
"image",
"reranking",
"speech",
"transcription",
"realtime",
"tool"
]
}Vercel
List ai gateway models
To compare AI Gateway models and prices, or find which models a provider serves; read one model’s page with get_ai_gateway_model.
POST
https://api.aisa.one
/
apis
/
v1
/
vercel-com
/
developer-documentation
/
list-ai-gateway-models
List ai gateway models
curl --request POST \
--url https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 5,
"provider": "openai",
"type": "chat"
}
'import requests
url = "https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models"
payload = {
"limit": 5,
"provider": "openai",
"type": "chat"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 5, provider: 'openai', type: 'chat'})
};
fetch('https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-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.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 5,
'provider' => 'openai',
'type' => 'chat'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models"
payload := strings.NewReader("{\n \"limit\": 5,\n \"provider\": \"openai\",\n \"type\": \"chat\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 5,\n \"provider\": \"openai\",\n \"type\": \"chat\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 5,\n \"provider\": \"openai\",\n \"type\": \"chat\"\n}"
response = http.request(request)
puts response.read_body{
"count": 5,
"listed_count": 416,
"models": [
{
"cached_input_price_per_million": 0.13,
"capabilities": [
"file-input",
"implicit-caching",
"reasoning",
"tool-use",
"vision",
"web-search",
"structured-output"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "GPT‑5.1-Codex-Max is purpose-built for agentic coding.",
"id": "openai/gpt-5.1-codex-max",
"input_price_per_million": 1.25,
"max_output_tokens": 128000,
"output_price_per_million": 10,
"providers": [
"azure"
],
"rank": 1,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.1-codex-max",
"zero_data_retention": true
},
{
"cached_input_price_per_million": 0.03,
"capabilities": [
"file-input",
"implicit-caching",
"reasoning",
"tool-use",
"vision",
"web-search",
"structured-output"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "GPT-5.1 Codex mini is a smaller, faster, and cheaper version of GPT-5.1 Codex.",
"id": "openai/gpt-5.1-codex-mini",
"input_price_per_million": 0.25,
"max_output_tokens": 128000,
"output_price_per_million": 2,
"providers": [
"azure"
],
"rank": 2,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.1-codex-mini",
"zero_data_retention": true
},
{
"cached_input_price_per_million": 0.13,
"capabilities": [
"tool-use",
"implicit-caching",
"file-input",
"reasoning",
"vision",
"web-search",
"fast",
"structured-output"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "An upgraded version of GPT-5 that adapts thinking time more precisely to the question to spend more time on complex questions and respond more quickly to simpler tasks.",
"id": "openai/gpt-5.1-thinking",
"input_price_per_million": 1.25,
"max_output_tokens": 128000,
"output_price_per_million": 10,
"providers": [
"openai",
"azure"
],
"rank": 3,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.1-thinking",
"zero_data_retention": true
},
{
"cached_input_price_per_million": 0.17,
"capabilities": [
"file-input",
"implicit-caching",
"reasoning",
"tool-use",
"vision",
"web-search",
"structured-output",
"websockets"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "GPT-5.2 is OpenAI's best general-purpose model, part of the GPT-5 flagship model family. It's their most intelligent model yet for both general and agentic tasks.",
"id": "openai/gpt-5.2",
"input_price_per_million": 1.75,
"max_output_tokens": 128000,
"output_price_per_million": 14,
"providers": [
"azure",
"openai"
],
"rank": 4,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.2",
"zero_data_retention": true
},
{
"cached_input_price_per_million": null,
"capabilities": [
"tool-use",
"vision",
"reasoning",
"file-input",
"web-search",
"structured-output"
],
"context_text": "400K",
"context_window": 400000,
"creator": "openai",
"description": "Version of GPT-5.2 that produces smarter and more precise responses.",
"id": "openai/gpt-5.2-pro",
"input_price_per_million": 21,
"max_output_tokens": 128000,
"output_price_per_million": 168,
"providers": [
"openai"
],
"rank": 5,
"type": "chat",
"url": "https://vercel.com/ai-gateway/models/gpt-5.2-pro",
"zero_data_retention": true
}
],
"next_offset": 5,
"observed_at_ms": 1792700000000,
"query": {
"capability": null,
"limit": 5,
"offset": 0,
"provider": "openai",
"q": null,
"type": "chat"
},
"source_url": "https://vercel.com/ai-gateway/models.md",
"total_count": 42,
"types": [
"chat",
"embedding",
"video",
"evaluation",
"image",
"reranking",
"speech",
"transcription",
"realtime",
"tool"
]
}Request contract
- Method and path: POST /apis/v1/vercel-com/developer-documentation/list-ai-gateway-models
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models
{
"operationId": "vercel-com.developer-documentation.list-ai-gateway-models",
"method": "POST",
"path": "/apis/v1/vercel-com/developer-documentation/list-ai-gateway-models",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"limit": 5,
"provider": "openai",
"type": "chat"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"capability": {
"description": "Capability tag, e.g. `vision`, `reasoning`, `tool-use`, `open-weights`.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"limit": {
"description": "Results per call, 1 to 500. Defaults to 25.\n\nProvider reference: minimum 1; maximum 500.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 500,
"min": 1
}
},
"offset": {
"description": "Skip this many matches; pass the previous `next_offset` (also the continuation).\n\nProvider reference: minimum 0; maximum 100000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100000,
"min": 0
}
},
"provider": {
"description": "Creator or serving provider, e.g. `openai`, `anthropic`, `bedrock` (case-insensitive).",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"q": {
"description": "Words that must all appear in the id, tags or description, e.g. `claude` or `embedding`.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"type": {
"description": "Model type as listed in `types`, e.g. `chat`, `embedding`, `image`.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
Every model in the Vercel AI Gateway catalog (GET /ai-gateway/models.md, about 400 models) with id, creator, type, context window, input, output and cached-input prices per million tokens, serving providers, capability tags, zero data retention, description and detail URL. provider matches the creator or any serving provider; type, capability and q narrow it. Paginates with offset.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
count | number | |
listed_count | number | |
models | object[] | |
next_offset | number | |
observed_at_ms | number | Observation time, Unix milliseconds. |
query | object | |
source_url | string | |
total_count | number | |
types | string[] |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.