List model selection options¶
Get display names, inference names, and capabilities for a model selector.
GET https://billing.moi.matrixorigin.cn/api/v1/taas/models/select-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/select-options" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN" \
--data-urlencode "page_size=2"
Save the returned next_page_token as $NEXT_PAGE_TOKEN, retain the same filters, and request the next page. Stop when this value is empty or omitted.
curl --get "https://billing.moi.matrixorigin.cn/api/v1/taas/models/select-options" \
-H "X-API-Key: $MOI_PERSONAL_ACCESS_TOKEN" \
--data-urlencode "page_size=2" \
--data-urlencode "page_token=$NEXT_PAGE_TOKEN"
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
No |
Filter by model type. |
|
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 |
Pricing filter: |
|
string |
No |
Model series; repeat the parameter or separate values with commas. |
|
string |
No |
Alias for |
|
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. |
|
integer |
No |
Only models with a positive context window no greater than this value. |
|
integer |
No |
Page size; default 100, maximum 1000. |
|
string |
No |
Next-page token from the previous response; omit for the first request. |
Successful response¶
Returns HTTP 200 with model selection options.
{
"items": [
{
"id": "model_example",
"display_name": "Example Chat",
"model_id": "example-chat-model",
"capabilities": [
"chat"
],
"debug_capabilities": []
}
],
"total": 1,
"next_page_token": ""
}
Field |
Type |
Description |
|---|---|---|
|
array of object |
Records on this page. |
|
string |
Catalog object ID. |
|
string |
Alias if configured; otherwise the model name. |
|
string |
Inference model name, corresponding to name in the model catalog. |
|
array of string |
Inference capabilities. |
|
array of string |
Available debugging capabilities; omitted when empty. |
|
integer |
Total records matching the filters. |
|
string |
Next-page token; empty or omitted on the last page. |
In field paths, [] denotes each array item.