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