List models
curl --request GET \
--url https://api.xhuoapi.ai/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.xhuoapi.ai/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.xhuoapi.ai/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>"
}
]
}接口
模型列表
你的令牌可以调用的模型 ID。
GET
/
models
List models
curl --request GET \
--url https://api.xhuoapi.ai/v1/models \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.xhuoapi.ai/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.xhuoapi.ai/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>"
}
]
}在调试面板里填入你的令牌即可发送真实请求,按正常调用计费。
授权
Token from https://api.xhuoapi.ai
响应
200 - application/json
Model list
Show child attributes
Show child attributes