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>"
}
]
}Endpoints
List models
Model IDs available to your token.
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>"
}
]
}Fill in your token in the playground to send a real request. Requests are billed like any other call.
Authorizations
Token from https://api.xhuoapi.ai
Response
200 - application/json
Model list
Show child attributes
Show child attributes