run_model
Execute AI models for generation and analysis. Use get_model_schema to find parameters; choose to wait for results or receive a task token for async monitoring.
Instructions
Run any AI model on Wiro. Supports image generation, video generation, LLMs, audio, 3D, and more.
Use get_model_schema first to discover available parameters.
With wait=true (default), polls until completion and returns the result. With wait=false, returns the task token immediately for async monitoring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| wait | No | If true, poll until completion and return result. If false, return task token immediately. | |
| timeout_seconds | No | Max seconds to wait for completion (only when wait=true) |