Anthropic API
Models
Lists Tokenless routing profiles in the compatible Anthropic model-list shape. For the upstream model API, see the Claude Models API reference.
Models
curl --request GET \
--url https://api.usetokenless.com/anthropic/v1/models \
--header 'anthropic-version: <anthropic-version>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.usetokenless.com/anthropic/v1/models"
headers = {
"anthropic-version": "<anthropic-version>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'anthropic-version': '<anthropic-version>', 'x-api-key': '<api-key>'}
};
fetch('https://api.usetokenless.com/anthropic/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.usetokenless.com/anthropic/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 => [
"anthropic-version: <anthropic-version>",
"x-api-key: <api-key>"
],
]);
$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.usetokenless.com/anthropic/v1/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("anthropic-version", "<anthropic-version>")
req.Header.Add("x-api-key", "<api-key>")
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.usetokenless.com/anthropic/v1/models")
.header("anthropic-version", "<anthropic-version>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usetokenless.com/anthropic/v1/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["anthropic-version"] = '<anthropic-version>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "tokenless-pro",
"type": "model",
"display_name": "<string>",
"created_at": "1970-01-01T00:00:00Z"
}
],
"has_more": false,
"first_id": "tokenless-pro",
"last_id": "tokenless-pro"
}{
"type": "<string>",
"error": {}
}GET
For the upstream model API, see the Claude Models API reference./anthropic/v1/modelsAuthorizations
Tokenless API key. Include anthropic-version on Anthropic-compatible requests.
Headers
Selects the Anthropic-compatible response format.
Response
Anthropic-compatible list of available routing profiles.
⌘I
Models
curl --request GET \
--url https://api.usetokenless.com/anthropic/v1/models \
--header 'anthropic-version: <anthropic-version>' \
--header 'x-api-key: <api-key>'import requests
url = "https://api.usetokenless.com/anthropic/v1/models"
headers = {
"anthropic-version": "<anthropic-version>",
"x-api-key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'anthropic-version': '<anthropic-version>', 'x-api-key': '<api-key>'}
};
fetch('https://api.usetokenless.com/anthropic/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.usetokenless.com/anthropic/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 => [
"anthropic-version: <anthropic-version>",
"x-api-key: <api-key>"
],
]);
$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.usetokenless.com/anthropic/v1/models"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("anthropic-version", "<anthropic-version>")
req.Header.Add("x-api-key", "<api-key>")
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.usetokenless.com/anthropic/v1/models")
.header("anthropic-version", "<anthropic-version>")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usetokenless.com/anthropic/v1/models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["anthropic-version"] = '<anthropic-version>'
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "tokenless-pro",
"type": "model",
"display_name": "<string>",
"created_at": "1970-01-01T00:00:00Z"
}
],
"has_more": false,
"first_id": "tokenless-pro",
"last_id": "tokenless-pro"
}{
"type": "<string>",
"error": {}
}