List models
list_modelsThe AI models a keyfo key can call: price per million tokens, context length and what each supports (tools, reasoning, vision, json). Filter by what the task needs; a trial key sees its low-cost list. Listing is free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| can | No | What the model must support, comma-separated: tools, reasoning, vision, json. Empty for any. | |
| sort | No | price (cheapest first, the default), context (longest first) or name. | price |
| limit | No | How many to return, from 1 to 100. 20 by default. | |
| query | No | A word in the model ID or name, like gemini or grok. |