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