Pick a model for a task
recommend_modelDecide which model fits a need — returns the modelId to use with generate_image. Cheapest, fastest, or highest quality; for images, video, or utility tools (upscale, background removal); with or without a source image. Pass private:true to restrict to the private AI model line (i2v models).
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": {
"goal": "<goal>",
"media": "<media>"
},
"name": "recommend_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | What to optimize for | |
| media | Yes | Output type — 'tool' = image transforms (upscale, remove-bg) | |
| private | No | True to consider only the private AI model line | |
| hasSourceImage | No | True when a source image drives the job (forces i2i/i2v/tool) |