curl --request POST \
--url https://customer.lululab.ai/tasks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"workflowId": "ImageGenV2",
"input": {
"model": "gpt-image-2-5-flare",
"prompt": "Studio product photo of a ceramic cup on a clean table",
"aspectRatio": "1:1",
"resolution": "1K"
},
"attributes": {
"saveGeneratedAssets": true,
"creationSource": "api"
}
}
'{
"id": "TASK_ID",
"workflowId": "ImageGenV2",
"status": "Created",
"output": null,
"errorMessage": null
}API reference
Submit a creative task
Select a first-batch capability with workflowId. ImageGenV2 creates images; VideoGenV2 creates videos; SalesVideoPromptV3 and ProductImagePromptV1 create plans; VideoCreationV1 renders a planned product video. Planning results must be read from output and submitted as separate generation tasks.
POST
/
tasks
curl --request POST \
--url https://customer.lululab.ai/tasks \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"workflowId": "ImageGenV2",
"input": {
"model": "gpt-image-2-5-flare",
"prompt": "Studio product photo of a ceramic cup on a clean table",
"aspectRatio": "1:1",
"resolution": "1K"
},
"attributes": {
"saveGeneratedAssets": true,
"creationSource": "api"
}
}
'{
"id": "TASK_ID",
"workflowId": "ImageGenV2",
"status": "Created",
"output": null,
"errorMessage": null
}Body
application/json
Response
The submitted asynchronous task. Save id and poll GET /tasks/{id}.