Flows - Run a flow
Triggers the execution of a flow. Provide values for all required inputs defined in the flow's definition (see the GET endpoint).
The inputs object maps each input's api_key (recommended) or its id (UUID, legacy) to its value:
| Input Type | Accepted Values |
|---|---|
| creation | Image URL (https://...), base64-encoded image string, or existing creation identifier |
| text | Plain text string |
| number | Numeric value |
| select | Value from allowed options |
This endpoint is asynchronous. It returns immediately with status: "running" and a workflow_run_identifier. Provide a webhook URL to receive notifications when the execution completes. The webhook receives two events: initialized (run started) and finished/failed (run completed).
The webhook payload for a completed run includes a result object containing images, videos, and audios arrays with download URLs for the generated assets.
Request
- Base URL: https://api.magnific.com
- URL: https://api.magnific.com/v1/ai/flows/{flow-id}/run
- Auth: API key in header x-magnific-api-key
Path parameters
Short unique identifier (sqid) of the flow to execute. Discover flow identifiers via GET /v1/ai/flows.
Request body
Example request
{
"webhook": "https://www.example.com/webhook"
}Response
Accepted - Flow execution started. Use the webhook to receive results.
Example response
{
"workflow_run_identifier": "vCrK3Aa47y",
"status": "running"
}Changes
No recorded changes to this operation across all 1 revision of this API.