List a tool's models
curl --request GET \
--url https://api.varg.ai/v2/tools/{tool_key}/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.varg.ai/v2/tools/{tool_key}/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.varg.ai/v2/tools/{tool_key}/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.varg.ai/v2/tools/{tool_key}/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.varg.ai/v2/tools/{tool_key}/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.varg.ai/v2/tools/{tool_key}/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.varg.ai/v2/tools/{tool_key}/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{
"version": "<string>",
"page": 123,
"limit": 123,
"total": 123,
"data": [
{
"model": "kling_v2_6",
"tool": "video",
"display_name": "<string>",
"description": "<string>",
"routes": [
{
"model_key": "fal:kling_v2_6/text_to_video",
"provider": "fal",
"modality": [
"text-to-video"
],
"output_type": "video",
"description": "<string>",
"priority": 123,
"accepts_files": true,
"pricing": {
"pricing_id": "<string>",
"rule": {},
"user_price_estimate_cents": 123,
"min_user_price_cents": 123
},
"ops": {
"delivery": "poll",
"poll_interval_ms": 123,
"estimated_duration_ms": 123,
"max_timeout_ms": 123
},
"schema_url": "<string>"
}
],
"example": {},
"input_schema": {}
}
]
}{
"error": {
"code": "tool_not_found",
"message": "Unknown tool: imag"
}
}Tools
List a tool's models
The models of one tool, paginated by canonical model. Same route and
pricing data as GET /models, plus a real generation example and the
explicit per-model input_schema (JSON Schema). Auth is optional;
pipeline models are visible only to callers granted access.
GET
/
tools
/
{tool_key}
/
models
List a tool's models
curl --request GET \
--url https://api.varg.ai/v2/tools/{tool_key}/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.varg.ai/v2/tools/{tool_key}/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.varg.ai/v2/tools/{tool_key}/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.varg.ai/v2/tools/{tool_key}/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.varg.ai/v2/tools/{tool_key}/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.varg.ai/v2/tools/{tool_key}/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.varg.ai/v2/tools/{tool_key}/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{
"version": "<string>",
"page": 123,
"limit": 123,
"total": 123,
"data": [
{
"model": "kling_v2_6",
"tool": "video",
"display_name": "<string>",
"description": "<string>",
"routes": [
{
"model_key": "fal:kling_v2_6/text_to_video",
"provider": "fal",
"modality": [
"text-to-video"
],
"output_type": "video",
"description": "<string>",
"priority": 123,
"accepts_files": true,
"pricing": {
"pricing_id": "<string>",
"rule": {},
"user_price_estimate_cents": 123,
"min_user_price_cents": 123
},
"ops": {
"delivery": "poll",
"poll_interval_ms": 123,
"estimated_duration_ms": 123,
"max_timeout_ms": 123
},
"schema_url": "<string>"
}
],
"example": {},
"input_schema": {}
}
]
}{
"error": {
"code": "tool_not_found",
"message": "Unknown tool: imag"
}
}Authorizations
varg API key (varg_...). Get one at app.varg.ai
or run bunx vargai login. App sessions may alternatively send a
Supabase JWT.
Path Parameters
Tool key (image, video, speech, ...).
Example:
"image"
Query Parameters
Required range:
x >= 1Models per page. Out-of-range values are clamped.
Required range:
1 <= x <= 50Was this page helpful?