cURL
curl --request POST \ --url https://flows.eachlabs.ai/api/v2/{workflowID}/bulk \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "parameters": [ { "key": {} } ], "webhook_url": "<string>" }'
{ "status": "<string>", "message": "<string>", "execution_ids": [ "<string>" ] }
Run a workflow multiple times
curl --request POST \ --url https://flows.eachlabs.ai/api/v2/{workflowID}/bulk \ --header "X-API-KEY: YOUR_API_KEY_HERE" \ --header "Content-Type: application/json" \ --data '{ "parameters": [ { "prompt": "Generate a beautiful mountain landscape at sunset", "width": 1024, "height": 768 }, { "prompt": "Generate a serene beach scene with waves", "width": 1024, "height": 768 } ], "webhook_url": "https://your-webhook-url.com/callback" }'
API key required for authentication. Every request must include this header.
Workflow ID
BulkRunResponse JSON
The response is of type object.
object
Was this page helpful?