Search models
generate_modelsSearches the models generate can run, by what they do (query) or by id, with a cursor for the next page.
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": "generate_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many models to return per page, 1 to 100; default 20 | |
| query | No | Free text, e.g. `pixel art sprite` | |
| cursor | No | The `next_cursor` of a previous result, for the page after it; omit for the first page | |
| expand | No | Extra fields to include per model: `openapi-3.0`, `enterprise_status` | |
| status | No | `deprecated` or `all` to include models past their prime; omit for active models | |
| category | No | Only models in this category, e.g. `text-to-image`, `image-to-video` | |
| endpoint_id | No | Endpoint ids to look up directly instead of searching, e.g. `fal-ai/flux/dev` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The upstream response body, or null when it had none. |