Get model runtime status¶
Get request counts, latency, error rates, and health for the current user’s models over the last hour.
GET https://billing.moi.matrixorigin.cn/api/v1/taas/dashboard/model-status
Before you begin¶
Prepare a personal access token. For creation and management, see Manage personal access tokens.
Results are scoped to data accessible to the current user.
Query parameters¶
Replace $MOI_PERSONAL_ACCESS_TOKEN in the example with your personal access token.
curl --get "https://billing.moi.matrixorigin.cn/api/v1/taas/dashboard/model-status" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN" \
--data-urlencode "model_status_sort=requests1h" \
--data-urlencode "model_status_limit=8"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Descending sort: |
|
integer |
No |
Maximum models returned; defaults to 8, capped at 50. |
|
string |
No |
Model type. |
|
string |
No |
Model name submitted in the inference request. |
|
string |
No |
Call status, such as |
|
string |
No |
Call error category. |
|
string |
No |
Caller IP address. |
|
string |
No |
TaaS local token key ID. |
|
string |
No |
TaaS local key IDs; repeat the parameter or comma-separate values. |
|
string |
Required with |
Credential type: |
|
string |
Required with |
Credential object ID; requires |
|
string |
No |
Billing usage-event ID. |
|
string |
No |
Billing record ID. |
|
string |
No |
Pricing mode. |
|
string |
No |
Settlement method: genesis or |
|
string |
No |
Enterprise plan ID. |
|
string |
No |
Enterprise contract number. |
|
string |
No |
Enterprise plan model ID. |
|
string |
No |
Responses response ID. |
|
string |
No |
Conversation ID. |
|
string |
No |
Usage log IDs; repeat the parameter or comma-separate values. |
|
string |
No |
Alias for ids; values are combined. |
|
string |
No |
Provider ID; results remain scoped to the current user. |
Successful response¶
Returns HTTP 200 with model metrics and health for the past hour.
{
"model_status": [
{
"model_id": "model_example",
"model_name": "Example Chat",
"latency_ms": 120,
"avg_latency_ms": 120,
"error_rate": 0,
"recent_1h_requests": 2,
"requests_1h": 2,
"health_status": "healthy"
}
],
"model_health": [
{
"model_id": "model_example",
"model_name": "Example Chat",
"latency_ms": 120,
"avg_latency_ms": 120,
"error_rate": 0,
"recent_1h_requests": 2,
"requests_1h": 2,
"health_status": "healthy"
}
],
"model_status_sort": "requests1h",
"model_status_limit": 8
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Model status entries. |
|
string |
Catalog model object ID. |
|
string |
Model display name. |
|
integer |
Average call |
|
integer |
Alias of |
|
number |
Failure ratio over the last |
|
integer |
Request count over the last |
|
integer |
Alias of |
|
string |
Latest recorded health status; |
|
array of object |
Alias of |
|
string |
Catalog model object ID. |
|
string |
Model display name. |
|
integer |
Average call |
|
integer |
Alias of |
|
number |
Failure ratio over the last |
|
integer |
Request count over the last |
|
integer |
Alias of |
|
string |
Latest recorded health status; |
|
string |
Effective sort order. |
|
integer |
Effective maximum count. |
In field paths, [] denotes each array item.
Filters other than sort and limit apply to usage metrics. The model list contains enabled models in scope; a model with no matching calls can still appear with zero requests.