kie_generate
Generate media with kie.ai by submitting a prompt, waiting for completion, and downloading the output. Uses cost estimates and max-cost safety limits to prevent overspending.
Instructions
SPENDS MONEY. Creates a generation task and, with wait=true, waits for the result and downloads the files. Before calling: kie_catalog_show (limits) and kie_estimate (price), plus the user's explicit consent to the amount. Use maxCostCredits as a safety limit. Downloading is ON by default (kie.ai keeps results for a limited time, up to 14 days per their docs): without out, the path from the config or ~/.gcv/output is used. noDownload=true skips the download entirely and leaves only the link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | Folder to download results into. Unset — the default is used (see the tool description) | |
| refs | No | References: URLs or local paths (which will be uploaded) | |
| wait | No | Wait for completion (default true) | |
| count | No | How many generations (default 1) | |
| input | No | Other model parameters (aspect_ratio, duration, …) | |
| model | Yes | model id | |
| runId | No | Run identifier for the spend ledger | |
| dryRun | No | Compute everything but spend no money | |
| prompt | No | Text prompt | |
| noDownload | No | Do not download at all, not even to the default path — leave only the file link | |
| maxCostCredits | No | Safety limit: refuse if the estimate is higher |