Run a Wiro model
run_modelExecute any AI model from Wiro for generating, editing, or analyzing image, video, text, audio, or 3D content. Check the model schema first, pass parameters, and get the media output.
Instructions
Run any AI model on Wiro. Supports image, video, text, audio, 3D, and more. Call get_model_schema first. With wait=true this performs a bounded wait; when the response contains nextAction.tool = "wait_for_task", call that tool with the exact arguments returned. Never call run_model again for the same request. When the task completes, present every returned media resource in the user-facing response instead of reporting only task metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | If true, poll until completion and return the result. If false, return the task identifiers immediately. | |
| model | Yes | Model slug in "owner/model" format, e.g. "openai/sora-2", "google/nano-banana-pro" | |
| params | Yes | Model-specific parameters as key-value pairs. Use get_model_schema to discover available parameters. For file parameters (fileinput, multifileinput, combinefileinput), pass URLs directly — no upload needed. For combinefileinput, pass an array of URLs. | |
| timeout_seconds | No | Maximum seconds to wait when wait=true. The 45-second default is safe for clients with a 60-second tool timeout. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| error | No | ||
| state | Yes | ||
| outputs | Yes | ||
| response | No | ||
| nextAction | No |