Jobs

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.

POST
/jobs/{job_id}/regenerate/{image_index}
AuthorizationBearer <token>

Token-based authentication using access tokens.

In: header

Path Parameters

job_idstring
image_indexinteger
Formatint32

Response Body

Examples

curl -X POST "https://v2.api.piktid.com/jobs/string/regenerate/0"
{
  "success": true,
  "message": "string",
  "image_index": 0
}
{
  "error": "Invalid request",
  "detail": [
    {
      "field": null,
      "message": "string",
      "position": "query"
    }
  ]
}
Empty