curl --request GET \
--url https://api.tikway.ai/anthropic/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tikway.ai/anthropic/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.tikway.ai/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.tikway.ai/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 => [
"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.tikway.ai/anthropic/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.tikway.ai/anthropic/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tikway.ai/anthropic/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": [
{
"type": "model",
"id": "happyhorse-1.0",
"display_name": "HappyHorse 1.0",
"created_at": "1970-01-01T00:00:00Z",
"description": null,
"context_length": null,
"max_input_tokens": null,
"max_tokens": null,
"supported_parameters": [],
"allowed_fallback_models": [],
"aliases": [
"happyhorse-1.0",
"happyhorse-1.0-20260624"
],
"architecture": {
"input_modalities": [
"text",
"image",
"video"
],
"output_modalities": [
"video"
]
},
"capabilities": {
"endpoints": [
"/v1/videos"
],
"parameters": {
"/v1/videos": [],
"common": [
"seed",
"model",
"prompt",
"duration",
"extra_body",
"resolution",
"aspect_ratio",
"callback_url",
"frame_images",
"input_references"
]
},
"reasoning_efforts": [],
"batch": {
"supported": false
},
"citations": {
"supported": false
},
"code_execution": {
"supported": false
},
"compaction": null,
"context_management": {
"clear_thinking_20251015": null,
"clear_tool_uses_20250919": null,
"compact_20260112": null,
"supported": false
},
"effort": {
"high": {
"supported": false
},
"low": {
"supported": false
},
"max": {
"supported": false
},
"medium": {
"supported": false
},
"supported": false,
"xhigh": {
"supported": false
}
},
"image_input": {
"supported": false
},
"pdf_input": {
"supported": false
},
"structured_outputs": {
"supported": false
},
"thinking": {
"supported": false,
"types": {
"adaptive": {
"supported": false
},
"enabled": {
"supported": false
}
}
}
}
}
],
"first_id": "happyhorse-1.0",
"has_more": false,
"last_id": "happyhorse-1.0"
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Get Models
返回与 GET /v1/models 相同的完整可调用模型目录,覆盖全部供应商、文本、图片、视频、语音、嵌入和决策模型,不按当前协议隐式过滤。保留当前协议的外层响应结构和分页;可用 provider、mode、type 显式筛选。
每个模型都包含 aliases、architecture、capabilities.endpoints、capabilities.parameters 和 capabilities.reasoning_efforts,取值与 OpenAI 列表一致。参数读取方式:common 与端点路径数组取并集。列表展示不表示每个模型都能使用当前协议生成内容,实际可调用路径以 capabilities.endpoints 为准。
GET /v1/models 携带 anthropic-version 请求头时也返回此格式。
curl --request GET \
--url https://api.tikway.ai/anthropic/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tikway.ai/anthropic/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.tikway.ai/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.tikway.ai/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 => [
"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.tikway.ai/anthropic/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.tikway.ai/anthropic/v1/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tikway.ai/anthropic/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": [
{
"type": "model",
"id": "happyhorse-1.0",
"display_name": "HappyHorse 1.0",
"created_at": "1970-01-01T00:00:00Z",
"description": null,
"context_length": null,
"max_input_tokens": null,
"max_tokens": null,
"supported_parameters": [],
"allowed_fallback_models": [],
"aliases": [
"happyhorse-1.0",
"happyhorse-1.0-20260624"
],
"architecture": {
"input_modalities": [
"text",
"image",
"video"
],
"output_modalities": [
"video"
]
},
"capabilities": {
"endpoints": [
"/v1/videos"
],
"parameters": {
"/v1/videos": [],
"common": [
"seed",
"model",
"prompt",
"duration",
"extra_body",
"resolution",
"aspect_ratio",
"callback_url",
"frame_images",
"input_references"
]
},
"reasoning_efforts": [],
"batch": {
"supported": false
},
"citations": {
"supported": false
},
"code_execution": {
"supported": false
},
"compaction": null,
"context_management": {
"clear_thinking_20251015": null,
"clear_tool_uses_20250919": null,
"compact_20260112": null,
"supported": false
},
"effort": {
"high": {
"supported": false
},
"low": {
"supported": false
},
"max": {
"supported": false
},
"medium": {
"supported": false
},
"supported": false,
"xhigh": {
"supported": false
}
},
"image_input": {
"supported": false
},
"pdf_input": {
"supported": false
},
"structured_outputs": {
"supported": false
},
"thinking": {
"supported": false,
"types": {
"adaptive": {
"supported": false
},
"enabled": {
"supported": false
}
}
}
}
}
],
"first_id": "happyhorse-1.0",
"has_more": false,
"last_id": "happyhorse-1.0"
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求头
上游速度cost、stable、fast
查询参数
按模型类型筛选,省略返回全部。支持 text/image/video/music/embedding,忽略大小写和周围空格。多个类型逗号分隔或重复 type,未知或空值返回 400。
1"text"
"image"
"video"
"music"
"embedding"
"image,video"
响应
当前可调用模型目录;示例能力值仅用于展示结构,实际以返回值为准。
GET /anthropic/v1/models 的 HTTP 200 响应;GET /v1/models 携带 anthropic-version 时也使用此结构。模型范围与 OpenAI 列表相同,保留 Anthropic 游标分页。
Hide child attributes
Hide child attributes
"model"完整平台模型 ID,保留供应商命名空间。
1模型显示名称。
模型发布时间。未配置时返回 1970-01-01T00:00:00Z。
上下文 token 上限,未配置时为 null。
x >= 0最大输入 token 数,当前与 context_length 相同。
x >= 0最大输出 token 数;未配置且无法从参数配置推导时为 null。
x >= 0Anthropic 原生参数名;没有 Anthropic 协议参数配置时返回空数组。实际调用端点参数见 capabilities.parameters。
允许的回退模型 ID 列表,当前返回空数组。
模型的可用别名,来自当前平台配置;未配置时返回空数组。
当前平台定义的端点、参数和推理档位。与其他协议格式中的这组字段一致。
Hide child attributes
Hide child attributes
按实际端点参数配置汇总的推理档位;无可配置档位时返回空数组。
模型当前实际可调用的 API 路径,来自平台路由配置。
1common 为所有可调用端点共有的参数,各端点路径下只列额外参数。该端点的完整参数集为 common 与端点数组的并集;单端点模型的参数可全部位于 common。
{
"/v1/videos": [],
"common": [
"seed",
"model",
"prompt",
"duration",
"extra_body",
"resolution",
"aspect_ratio",
"callback_url",
"frame_images",
"input_references"
]
}
当前实现未提供压缩能力详情,返回 null。
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
当前页第一个模型 ID;当前页为空时为 null。
是否还有其他页。向前查询时用 last_id 作为下次 after_id;使用 before_id 时按对应方向继续查询。
当前页最后一个模型 ID;当前页为空时为 null。

