POST
/
api
/
v2
/
{workflowID}
/
bulk
Bulk Run
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>"
  ]
}

Authentication

Every request must include your X-API-KEY header:
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"
  }'

Authorizations

X-API-KEY
string
header
required

API key required for authentication. Every request must include this header.

Path Parameters

workflowID
string<string>
required

Workflow ID

Body

application/json

Response

200
application/json

BulkRunResponse JSON

The response is of type object.