WaveSpeed Task Submit
AI-generatedSummary
Submit a task to a selected WaveSpeed model, optionally waiting for completion and returning task details.
Inputs
- category (required) — The category of models to choose from
- model (required) — The specific model to use.
- requiredParameters — ⚙️ Required parameters for this model. These must be configured.
- optionalParameters — ⚙️ Configure optional parameters. Click to add individual parameters as needed.
- executionMode — Whether to wait for task completion or return immediately
- pollingOptions — Polling options used when waiting for task completion
Output shape
an array of task result objects (one per workflow item)
Each object includes task_id, model, status, created_at, category, parameters and may include outputs, has_nsfw_contents, timings, and error fields depending on execution mode.
Examples
Example 1: Basic task submission without waiting
Set executionMode to Submit Task Only; provide category, model, and required parameters.
Example 2: Wait for completion with default polling
Set executionMode to Wait for Completion; keep default pollingOptions (maxWaitTime=5 minutes, pollInterval=5 seconds).
Example 3: Custom polling for long‑running task
Set executionMode to Wait for Completion; increase maxWaitTime and pollInterval, and set maxRetries accordingly.