Get public model data
curl --request GET \
--url https://model-demand-analytics.vercel.app/api/v1/modelsimport requests
url = "https://model-demand-analytics.vercel.app/api/v1/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://model-demand-analytics.vercel.app/api/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://model-demand-analytics.vercel.app/api/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://model-demand-analytics.vercel.app/api/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://model-demand-analytics.vercel.app/api/v1/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://model-demand-analytics.vercel.app/api/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{
"schema_version": "model-demand.agent-api.v1",
"generated_at": "2023-11-07T05:31:56Z",
"evaluation_cutoff": "2023-11-07T05:31:56Z",
"freshness": {
"state": "fresh",
"fresh_until": "2023-11-07T05:31:56Z",
"reason": "<string>"
},
"window": {
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"days": 30
},
"source": {
"name": "OpenRouter",
"url": "<string>",
"terms_url": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"license": "CC BY 4.0",
"attribution": "<string>"
},
"query": {
"mode": "list",
"model_id": null,
"sort": "tokens_30d",
"order": "asc",
"limit": 50,
"offset": 4503599627370495
},
"pagination": {
"total_matching_models": 1,
"offset": 1,
"limit": 50,
"returned_count": 50,
"has_next_page": true
},
"models": [
{
"model_id": "<string>",
"model_release_id": "<string>",
"first_visible_date": "2023-12-25",
"latest_rank": {
"value": 2,
"state": "available",
"reason": "<string>"
},
"latest_tokens": {
"value": "<string>",
"unit": "tokens",
"state": "available",
"reason": "<string>"
},
"tokens_7d": {
"value": "<string>",
"unit": "tokens",
"state": "available",
"reason": "<string>"
},
"tokens_30d": {
"value": "<string>",
"unit": "tokens",
"state": "available",
"reason": "<string>"
},
"share_7d": {
"value": "<string>",
"unit": "fraction",
"state": "available",
"reason": "<string>"
},
"share_30d": {
"value": "<string>",
"unit": "fraction",
"state": "available",
"reason": "<string>"
},
"share_prior_7d": {
"value": "<string>",
"unit": "fraction",
"state": "available",
"reason": "<string>"
},
"trend": {
"direction": "rising",
"state": "available",
"reason": "<string>",
"relative_change": "<string>",
"percentage_point_change": "<string>"
},
"facts": {
"total_parameters": {
"value": "<string>",
"unit": "parameters",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"active_parameters": {
"value": "<string>",
"unit": "parameters",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"architecture_type": {
"value": "<string>",
"unit": "architecture",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"base_checkpoint_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"bf16_weights_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": null,
"source_url": "<string>"
},
"smallest_quant_checkpoint_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"smallest_quant_format": {
"value": "<string>",
"unit": "format",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"smallest_quant_bit_width": {
"value": "<string>",
"unit": "bits",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"attention_bytes_per_token": {
"value": "<string>",
"unit": "bytes_per_token",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"full_sequence_attention_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"recurrent_state_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"calculation_sequence_length": {
"value": "<string>",
"unit": "tokens",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
}
},
"supply": {
"state": "available",
"reason": null,
"summary": {
"route_id": "<string>",
"route_type": "paid",
"collection_finished_at": "2023-11-07T05:31:56Z",
"history_ready": true,
"listed_endpoints": {
"value": 1,
"unit": "endpoints",
"state": "available",
"reason": "<string>"
},
"listed_providers": {
"value": 1,
"unit": "providers",
"state": "available",
"reason": "<string>"
},
"median_input_price_per_million": {
"value": "<string>",
"unit": "usd_per_million_tokens",
"state": "available",
"reason": "<string>"
},
"median_output_price_per_million": {
"value": "<string>",
"unit": "usd_per_million_tokens",
"state": "available",
"reason": "<string>"
},
"median_latency_ms": {
"value": "<string>",
"unit": "milliseconds",
"state": "available",
"reason": "<string>"
},
"median_throughput_tokens_per_second": {
"value": "<string>",
"unit": "tokens_per_second",
"state": "available",
"reason": "<string>"
},
"median_uptime_percent": {
"value": "<string>",
"unit": "percent",
"state": "available",
"reason": "<string>"
},
"maximum_context_tokens": {
"value": 1,
"unit": "tokens",
"state": "available",
"reason": "<string>"
},
"quantizations": [
"<string>"
]
}
}
}
]
}{
"schema_version": "model-demand.agent-api-error.v1",
"error": "invalid_query",
"message": "The request query is invalid."
}{
"schema_version": "model-demand.agent-api-error.v1",
"error": "model_not_found",
"message": "The requested model was not found."
}{
"schema_version": "model-demand.agent-api-error.v1",
"error": "data_unavailable",
"message": "Data is unavailable."
}Endpoints
Get public model data
List ranked public model records or return one exact model.
GET
/
api
/
v1
/
models
Get public model data
curl --request GET \
--url https://model-demand-analytics.vercel.app/api/v1/modelsimport requests
url = "https://model-demand-analytics.vercel.app/api/v1/models"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://model-demand-analytics.vercel.app/api/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://model-demand-analytics.vercel.app/api/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://model-demand-analytics.vercel.app/api/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://model-demand-analytics.vercel.app/api/v1/models")
.asString();require 'uri'
require 'net/http'
url = URI("https://model-demand-analytics.vercel.app/api/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{
"schema_version": "model-demand.agent-api.v1",
"generated_at": "2023-11-07T05:31:56Z",
"evaluation_cutoff": "2023-11-07T05:31:56Z",
"freshness": {
"state": "fresh",
"fresh_until": "2023-11-07T05:31:56Z",
"reason": "<string>"
},
"window": {
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"days": 30
},
"source": {
"name": "OpenRouter",
"url": "<string>",
"terms_url": "<string>",
"checked_at": "2023-11-07T05:31:56Z",
"license": "CC BY 4.0",
"attribution": "<string>"
},
"query": {
"mode": "list",
"model_id": null,
"sort": "tokens_30d",
"order": "asc",
"limit": 50,
"offset": 4503599627370495
},
"pagination": {
"total_matching_models": 1,
"offset": 1,
"limit": 50,
"returned_count": 50,
"has_next_page": true
},
"models": [
{
"model_id": "<string>",
"model_release_id": "<string>",
"first_visible_date": "2023-12-25",
"latest_rank": {
"value": 2,
"state": "available",
"reason": "<string>"
},
"latest_tokens": {
"value": "<string>",
"unit": "tokens",
"state": "available",
"reason": "<string>"
},
"tokens_7d": {
"value": "<string>",
"unit": "tokens",
"state": "available",
"reason": "<string>"
},
"tokens_30d": {
"value": "<string>",
"unit": "tokens",
"state": "available",
"reason": "<string>"
},
"share_7d": {
"value": "<string>",
"unit": "fraction",
"state": "available",
"reason": "<string>"
},
"share_30d": {
"value": "<string>",
"unit": "fraction",
"state": "available",
"reason": "<string>"
},
"share_prior_7d": {
"value": "<string>",
"unit": "fraction",
"state": "available",
"reason": "<string>"
},
"trend": {
"direction": "rising",
"state": "available",
"reason": "<string>",
"relative_change": "<string>",
"percentage_point_change": "<string>"
},
"facts": {
"total_parameters": {
"value": "<string>",
"unit": "parameters",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"active_parameters": {
"value": "<string>",
"unit": "parameters",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"architecture_type": {
"value": "<string>",
"unit": "architecture",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"base_checkpoint_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"bf16_weights_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": null,
"source_url": "<string>"
},
"smallest_quant_checkpoint_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"smallest_quant_format": {
"value": "<string>",
"unit": "format",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"smallest_quant_bit_width": {
"value": "<string>",
"unit": "bits",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"attention_bytes_per_token": {
"value": "<string>",
"unit": "bytes_per_token",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"full_sequence_attention_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"recurrent_state_bytes": {
"value": "<string>",
"unit": "bytes",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
},
"calculation_sequence_length": {
"value": "<string>",
"unit": "tokens",
"state": "available",
"reason": "<string>",
"source_url": "<string>"
}
},
"supply": {
"state": "available",
"reason": null,
"summary": {
"route_id": "<string>",
"route_type": "paid",
"collection_finished_at": "2023-11-07T05:31:56Z",
"history_ready": true,
"listed_endpoints": {
"value": 1,
"unit": "endpoints",
"state": "available",
"reason": "<string>"
},
"listed_providers": {
"value": 1,
"unit": "providers",
"state": "available",
"reason": "<string>"
},
"median_input_price_per_million": {
"value": "<string>",
"unit": "usd_per_million_tokens",
"state": "available",
"reason": "<string>"
},
"median_output_price_per_million": {
"value": "<string>",
"unit": "usd_per_million_tokens",
"state": "available",
"reason": "<string>"
},
"median_latency_ms": {
"value": "<string>",
"unit": "milliseconds",
"state": "available",
"reason": "<string>"
},
"median_throughput_tokens_per_second": {
"value": "<string>",
"unit": "tokens_per_second",
"state": "available",
"reason": "<string>"
},
"median_uptime_percent": {
"value": "<string>",
"unit": "percent",
"state": "available",
"reason": "<string>"
},
"maximum_context_tokens": {
"value": 1,
"unit": "tokens",
"state": "available",
"reason": "<string>"
},
"quantizations": [
"<string>"
]
}
}
}
]
}{
"schema_version": "model-demand.agent-api-error.v1",
"error": "invalid_query",
"message": "The request query is invalid."
}{
"schema_version": "model-demand.agent-api-error.v1",
"error": "model_not_found",
"message": "The requested model was not found."
}{
"schema_version": "model-demand.agent-api-error.v1",
"error": "data_unavailable",
"message": "Data is unavailable."
}Use
See the query guide and field glossary.
model_id by itself for an exact lookup. For lists, use sort, order, limit, and offset.
Keep unavailable values as unknown. Demand does not prove that a model is underserved. The separate supply feed is outside the formal v1 models schema.
Query Parameters
Return one exact model ID. Do not combine model_id with sort, order, limit, or offset.
Minimum string length:
1Example:
"public/model-example"
Sort list results by one supported field.
Available options:
tokens_30d, latest_rank, total_parameters, active_parameters, smallest_quant_checkpoint_bytes, full_sequence_attention_bytes Use ascending or descending list order.
Available options:
asc, desc Return 1 through 100 models.
Required range:
1 <= x <= 100Skip zero or more matching models before the returned page.
Required range:
0 <= x <= 9007199254740991Response
A valid public model result.
Allowed value:
"model-demand.agent-api.v1"Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
- Option 1
- Option 2
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes