curl --request POST \
--url https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-4o"
}
'import requests
url = "https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model"
payload = { "model": "openai/gpt-4o" }
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({model: 'openai/gpt-4o'})
};
fetch('https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model', 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/get-ai-gateway-model",
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([
'model' => 'openai/gpt-4o'
]),
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/get-ai-gateway-model"
payload := strings.NewReader("{\n \"model\": \"openai/gpt-4o\"\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/get-ai-gateway-model")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"openai/gpt-4o\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model")
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 \"model\": \"openai/gpt-4o\"\n}"
response = http.request(request)
puts response.read_bodyGet ai gateway model
To read details, pricing and usage guidance for a specific AI Gateway model.
curl --request POST \
--url https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-4o"
}
'import requests
url = "https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model"
payload = { "model": "openai/gpt-4o" }
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({model: 'openai/gpt-4o'})
};
fetch('https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model', 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/get-ai-gateway-model",
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([
'model' => 'openai/gpt-4o'
]),
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/get-ai-gateway-model"
payload := strings.NewReader("{\n \"model\": \"openai/gpt-4o\"\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/get-ai-gateway-model")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"openai/gpt-4o\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model")
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 \"model\": \"openai/gpt-4o\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/vercel-com/developer-documentation/get-ai-gateway-model
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model
{
"operationId": "vercel-com.developer-documentation.get-ai-gateway-model",
"method": "POST",
"path": "/apis/v1/vercel-com/developer-documentation/get-ai-gateway-model",
"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": {
"max_chars": 800,
"model": "openai/gpt-4o"
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"model": {}
},
"required": [
"model"
]
},
{
"properties": {
"url": {}
},
"required": [
"url"
]
}
]
}
],
"properties": {
"max_chars": {
"description": "Cut `content` to this many characters.\n\nProvider reference: minimum 200; maximum 3000000.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 3000000,
"min": 200
}
},
"model": {
"description": "Model id like `openai/gpt-4o`, or the page slug like `gpt-4o`.",
"type": "string"
},
"url": {
"description": "Alternatively a page URL like https://vercel.com/ai-gateway/models/gpt-4o. Pattern: ^https?://.",
"type": "string"
}
},
"type": "object"
}
}
},
"required": true
},
"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
- Option 1
- Option 2
Alternatively a page URL like https://vercel.com/ai-gateway/models/gpt-4o. Pattern: ^https?://.
Response
One AI Gateway model page (GET /ai-gateway/models/{slug}.md): id, name, type, serving providers, context window, maximum output tokens, input and output prices per million tokens, description, outline and the page Markdown (supported parameters, example, guidance). Accepts a model id (openai/gpt-4o), a bare slug or a model page URL. A full id must match the page's Model ID; unknown models are not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
chars | number | |
content | string | |
context_window | number | Tokens; null when not applicable. |
creator | string | |
description | string | |
id | string | |
input_price_per_million | number | |
markdown_url | string | |
max_output_tokens | number | Tokens; null when 0 or not applicable. |
name | string | Page title. |
observed_at_ms | number | Observation time, Unix milliseconds. |
outline | object[] | |
output_price_per_million | number | Null for input-only models such as embeddings. |
pricing_text | string | Pricing line as published. |
providers | string[] | |
truncated | boolean | |
type | string | |
url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.