POST
/v1/actionPerform Action
Perform an action on a completed task — upscale a specific image, create a variation, or reroll the entire grid. The action runs asynchronously, just like /imagine.
Request Body
task_idrequiredstring
The task_id from a completed /v1/imagine result.
actionrequiredstring
The action to perform. See available actions below.
webhook_urlstring
Optional URL to receive a POST callback when done.
Available Actions
Example Request
Response
Status Codes
200Action submitted successfully.
400Invalid action or original task has no components.
401Invalid or missing API key.
404Original task not found.
⚠️ Notes
• The original task must have status
• You can also pass a raw
• The new task_id returned should be polled via /v1/fetch just like an imagine task.
completed and include component data.• You can also pass a raw
custom_id from the components array for advanced use cases.• The new task_id returned should be polled via /v1/fetch just like an imagine task.