Discover a key's models
discover_modelsDiscover a key's models
Reads the models the key can serve and checks that it is a paid or funded key, as a job: poll the get_supply_job tool every second until it is done (a few seconds: the model list only); its models are every model the key serves, each with its reference price and where it comes from (none anywhere: set your own price), and paid false means add funds and discover again. A Z.ai open-platform key (zaiKind open) lists its models as not listable for now: Z.ai open platform keys are coming soon. Each model's self-name check runs in its health test. A discovery running or done in the last ten minutes is reused unless fresh. Sellers only: an account that has not accepted the selling terms gets 403 not_seller.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "discover_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The key id. | |
| fresh | No | Read the model list again even if it was read in the last ten minutes. |