Regenerate a single image
This endpoint allows you to regenerate a specific image from a completed or failed batch job.
The image will be reprocessed with the same parameters (identity_code, processing_options)
that were used in the original job. The correct processor will be used based on the job type
(model_swap, flat_2_model, etc.).
Non-destructive versioning: A new ImageResult record is created with an incremented
version number, preserving the original. The new version starts with status="pending"
and will be updated by the worker upon completion.
Use the group_index query parameter to specify which variation to regenerate when the
job has multiple variations per image/instruction. Defaults to 0.
Note: Identity preprocessing jobs do not support image regeneration. Identity processing is a one-time operation that cannot be regenerated.
token_authAuthorizationBearer <token>Token-based authentication using access tokens.
job_id*stringimage_index*integerint32Successful Response
application/json- response
success*SuccessWhether the regeneration was successfully queued.
message*MessageA message indicating the regeneration status.
image_index*Image IndexThe image index that was regenerated.
curl -X POST "https://example.com/jobs/string/regenerate/0"{ "success": true, "message": "string", "image_index": 0}