delegate_task
Hand a self-contained subtask to the cheapest model that can complete it — offload work that doesn't need your own (expensive) model, to save tokens and move faster. Returns the result, which model served it, and the exact cost. Requires your Flow AI API key in the Authorization header.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | the complete, self-contained task | |
| system | No | optional system prompt for the worker | |
| verify | No | also verify the worker's answer (cheap strict judge, ~$0.0001) — result includes a verdict so you know whether to trust the delegated work | |
| quality | No | cheapest = single cheapest capable model; balanced = cascade with escalation (default) | |
| max_tokens | No | output cap (default 1500) |