Get model health¶
Get aggregate model health and the latest channel check results.
GET https://billing.moi.matrixorigin.cn/api/v1/taas/ai-models/{id}/health
Before you begin¶
Prepare a personal access token. For creation and management, see Manage personal access tokens.
Select a model from List the model catalog.
Results are scoped to data accessible to the current user.
Request example¶
Replace $MOI_PERSONAL_ACCESS_TOKEN and $MODEL_ID with your personal access token and the selected catalog model’s ID.
curl --get "https://billing.moi.matrixorigin.cn/api/v1/taas/ai-models/$MODEL_ID/health" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN"
Path parameters¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Yes |
The selected catalog model’s ID, from |
Successful response¶
Returns HTTP 200 with the model’s overall health and channel check results.
{
"overall_status": "healthy",
"details": [
{
"provider_id": "provider_example",
"provider_native_model_id": "native_example",
"provider_native_model_name": "example-chat",
"target_id": "target_example",
"status": "healthy",
"latency_ms": 120,
"checked_at": 1788710400,
"error_message": ""
}
]
}
Field |
Type |
Description |
|---|---|---|
|
string |
Aggregate model health status. |
|
array of object |
Channels with recorded checks; empty when none exist. |
|
string |
Provider ID for the channel. |
|
string |
Provider-native model object ID. |
|
string |
Provider-native model name. |
|
string |
Health-check target ID. |
|
string |
Check status. |
|
integer |
Check |
|
integer |
Check time, Unix seconds. |
|
string |
Check error description; empty when no error. |
In field paths, [] denotes each array item.