curl --request GET \
--url https://api.tikway.ai/v1beta/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tikway.ai/v1beta/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/v1beta/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/v1beta/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/v1beta/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/v1beta/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tikway.ai/v1beta/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{
"models": [
{
"name": "models/happyhorse-1.0",
"baseModelId": "happyhorse-1.0",
"version": "1.0",
"displayName": "HappyHorse 1.0",
"description": "HappyHorse 1.0",
"inputTokenLimit": null,
"contextLength": null,
"supportedParameters": [],
"supportedGenerationMethods": [],
"thinking": false,
"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": []
}
}
]
}{
"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 为准。
curl --request GET \
--url https://api.tikway.ai/v1beta/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tikway.ai/v1beta/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/v1beta/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/v1beta/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/v1beta/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/v1beta/models")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tikway.ai/v1beta/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{
"models": [
{
"name": "models/happyhorse-1.0",
"baseModelId": "happyhorse-1.0",
"version": "1.0",
"displayName": "HappyHorse 1.0",
"description": "HappyHorse 1.0",
"inputTokenLimit": null,
"contextLength": null,
"supportedParameters": [],
"supportedGenerationMethods": [],
"thinking": false,
"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": []
}
}
]
}{
"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 /v1beta/models 的 HTTP 200 响应。模型范围与 OpenAI 列表相同,保留 Gemini 分页格式。实际可调用接口以 capabilities.endpoints 为准。
Hide child attributes
Hide child attributes
models/ 加完整平台模型 ID,例如 models/google/gemini-3.8-flash,保留供应商命名空间以区分同名模型。
8^models/.+去掉供应商命名空间后的基础模型 ID。
由模型 ID 推导的版本字符串,无法推导时为 unknown。
输入 token 上限,未配置时为 null。
x >= 0上下文 token 上限,当前与 inputTokenLimit 相同。
x >= 0Gemini 原生参数名;没有 Gemini 参数配置时为空数组。
模型的 Gemini 协议方法;没有 Gemini 协议能力时为空数组。完整目录中的模型应按 capabilities.endpoints 选择调用接口。
是否存在 Gemini thinkingConfig 参数配置。
模型的可用别名,来自当前平台配置;未配置时返回空数组。
当前平台定义的端点、参数和推理档位。与其他协议格式中的这组字段一致。
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"
]
}
输出 token 上限;配置或参数定义中可推导时返回,否则省略。
x >= 0配置的默认温度,未配置或无法读取时省略。
配置的温度上限,未配置或无法读取时省略。
配置的默认 topP,未配置或无法读取时省略。
配置的默认 topK,未配置或无法读取时省略。
x >= 0存在下一页时返回;填入下次请求的 pageToken。最后一页省略,不返回 null。
1
