Skip to main content
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": [
    {
      "type": "<string>",
      "display_name": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true
}
{
"type": "<string>",
"error": {}
}
GET/anthropic/v1/models
For the upstream model API, see the Claude Models API reference.

Authorizations

x-api-key
string
header
required

Tokenless API key. Include anthropic-version on Anthropic-compatible requests.

Headers

anthropic-version
string
required

Selects the Anthropic-compatible response format.

Response

Anthropic-compatible list of available routing profiles.

data
object[]
required
has_more
boolean
required
first_id
enum<string>
Available options:
tokenless-pro,
tokenless-max,
tokenless-ultra-saver
last_id
enum<string>
Available options:
tokenless-pro,
tokenless-max,
tokenless-ultra-saver