run_flow
Execute a flow. It runs asynchronously — poll get_flow(view="status") for completion. For flows with input nodes, provide file URLs (from upload_file) via the inputs parameter. This runs the flow ONCE; use run_batch for multiple input sets. On a re-run, nodes whose inputs and parameters are unchanged keep their results, except ones that come out different every time (LLM and API models, random seeds), which run again — unless locked: lock the finished results to keep with update_flow (locked=true) first, so only the rest are regenerated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | JSON object mapping input node IDs to input arrays. Image/video/sound nodes: file URL arrays. Text nodes: text content arrays (auto-uploaded as text files). Example: {"1001": ["https://..."], "1002": ["A blue sky"]} | |
| flow_id | Yes | The unique identifier of the flow to run. |