List currently available models
curl --request GET \
--url https://apistable.ai/api/v1/modelsconst options = {method: 'GET'};
fetch('https://apistable.ai/api/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/models"
response = requests.get(url)
print(response.text){
"code": 200,
"msg": "success",
"data": {
"models": [
{
"id": "<string>",
"modality": "image",
"status": "<string>",
"live_available": true,
"input_schema_version": "<string>"
}
],
"next_cursor": "<string>"
}
}{
"code": 123,
"msg": "<string>",
"data": null
}通用 API
List currently available models
Returns runtime-enabled models only. Use getModel for exact input and result schemas. Preview models may have detail records but cannot be submitted.
GET
/
api
/
v1
/
models
List currently available models
curl --request GET \
--url https://apistable.ai/api/v1/modelsconst options = {method: 'GET'};
fetch('https://apistable.ai/api/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/models"
response = requests.get(url)
print(response.text){
"code": 200,
"msg": "success",
"data": {
"models": [
{
"id": "<string>",
"modality": "image",
"status": "<string>",
"live_available": true,
"input_schema_version": "<string>"
}
],
"next_cursor": "<string>"
}
}{
"code": 123,
"msg": "<string>",
"data": null
}