Jobs

Regenerate a single image

POST
/jobs/{job_id}/regenerate/{image_index}

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.

Authorization

token_auth
headerAuthorizationBearer <token>

Token-based authentication using access tokens.

Path Parameters

job_id*string
image_index*integer
Formatint32

Response Body

Successful Response

application/json
  1. response
success*Success

Whether the regeneration was successfully queued.

message*Message

A message indicating the regeneration status.

image_index*Image Index

The image index that was regenerated.

curl -X POST "https://example.com/jobs/string/regenerate/0"
{  "success": true,  "message": "string",  "image_index": 0}