List models
curl --request GET \
--url https://api.pre.dev/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pre.dev/v1/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.pre.dev/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://api.pre.dev/v1/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.pre.dev/v1/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.pre.dev/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pre.dev/v1/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{
"data": [
{
"id": "anthropic/claude-sonnet-5",
"canonical_slug": "anthropic/claude-sonnet-5",
"name": "Anthropic: Claude Sonnet 5",
"created": 1782843083,
"context_length": 1000000,
"architecture": {
"modality": "text+image+file->text",
"input_modalities": [
"text",
"image",
"file"
],
"output_modalities": [
"text"
]
},
"supported_parameters": [
"max_tokens",
"reasoning",
"response_format",
"structured_outputs",
"tools",
"tool_choice"
],
"predev": {
"credits_per_m_input": 40,
"credits_per_m_output": 200,
"credits_per_m_cache_read": 4,
"credits_per_m_cache_write": 50
}
}
],
"total_count": 1
}Models
Model catalog
Read-only catalog endpoints with credit prices, refreshed every 15 minutes.
GET
/
v1
/
models
List models
curl --request GET \
--url https://api.pre.dev/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pre.dev/v1/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.pre.dev/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://api.pre.dev/v1/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.pre.dev/v1/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.pre.dev/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pre.dev/v1/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{
"data": [
{
"id": "anthropic/claude-sonnet-5",
"canonical_slug": "anthropic/claude-sonnet-5",
"name": "Anthropic: Claude Sonnet 5",
"created": 1782843083,
"context_length": 1000000,
"architecture": {
"modality": "text+image+file->text",
"input_modalities": [
"text",
"image",
"file"
],
"output_modalities": [
"text"
]
},
"supported_parameters": [
"max_tokens",
"reasoning",
"response_format",
"structured_outputs",
"tools",
"tool_choice"
],
"predev": {
"credits_per_m_input": 40,
"credits_per_m_output": 200,
"credits_per_m_cache_read": 4,
"credits_per_m_cache_write": 50
}
}
],
"total_count": 1
}The catalog lists every model the gateway serves, with pre.dev credit prices added. Reads are free, not rate-limited, and do not need credits.
The
Each model row carries its prices in credits (see pricing):
The numbers above are illustrative; read the live row for current prices. The other fields in the row (
| Method | Path | Returns |
|---|---|---|
| GET | /v1/models | All models, each row with a predev price object |
| GET | /v1/models/count | Number of models in /v1/models |
| GET | /v1/embeddings/models | Embedding models |
| GET | /v1/images/models | Image generation models |
| GET | /v1/videos/models | Video generation models |
| GET | /v1/models/public | Every model with its lab and modalities and no prices; needs no key |
curl --fail-with-body -i https://api.pre.dev/v1/models \
-H "Authorization: Bearer $PREDEV_API_KEY"
The predev object
Each model row carries its prices in credits (see pricing):
| Field | Unit | Present when |
|---|---|---|
credits_per_m_input | Credits per million input tokens | Always; null when the model has no token price |
credits_per_m_output | Credits per million output tokens | Always; null when the model has no token price |
credits_per_m_cache_read | Credits per million cached input tokens read | The model prices cache reads |
credits_per_m_cache_write | Credits per million tokens written to cache | The model prices cache writes |
credits_per_image | Credits per image | The model prices images |
credits_per_request | Credits per request | The model has a per-request price |
credits_per_second_output | Credits per second of generated video | Video models priced by the second |
credits_per_m_video_tokens | Credits per million video tokens | Video models priced by the token |
credits_per_m_output_image_tokens | Credits per million generated image tokens | Image models priced by the token |
billables | Each priced unit as { billable, unit, credits } | Image models with itemized prices |
{
"id": "anthropic/claude-sonnet-5",
"name": "Anthropic: Claude Sonnet 5",
"context_length": 1000000,
"predev": {
"credits_per_m_input": 40,
"credits_per_m_output": 200,
"credits_per_m_cache_read": 4,
"credits_per_m_cache_write": 50
}
}
name, context_length, architecture with input and output modalities, supported_parameters, and so on) describe the model itself.
Freshness
x-predev-catalog-age on every catalog response is the number of seconds since the catalog last refreshed. The catalog refreshes every 15 minutes, so a newly released model can appear up to 15 minutes after it becomes available.
Paths outside this table return 404.Was this page helpful?

