Get model filter options¶
Get model counts by type, series, and pricing status for catalog filters.
GET https://billing.moi.matrixorigin.cn/api/v1/taas/models/filter-options
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/models/filter-options" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Filter by enabled status. |
|
string |
No |
Search name, alias, description, series, type, or provider name. |
|
string |
No |
Search term used when |
|
string |
No |
Add series matches to the search; repeat or comma-separate values. |
|
string |
No |
Add type matches to the search; repeat or comma-separate values. |
|
string |
No |
Model type used for series counts; no restriction when omitted. |
Successful response¶
Returns HTTP 200 with model filter options and counts.
{
"total": 4,
"type_counts": [
{
"type": "chat",
"count": 4
}
],
"series_counts": [
{
"logo": "example",
"count": 4
}
],
"pricing": {
"priced": 4,
"unpriced": 0
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
Model count matching visibility, enabled status, and search conditions. |
|
array of object |
Counts by model type. |
|
string |
Model type. |
|
integer |
Model count. |
|
array of object |
Counts by model series. |
|
string |
Series identifier. |
|
integer |
Model count. |
|
object |
Counts by pricing status. |
|
integer |
Models with a positive configured price. |
|
integer |
Models without a positive configured price. |
In field paths, [] denotes each array item.