Legnext icon

Legnext

Interact with the Legnext API

Image → Reroll

AI-generated

Summary

Reroll an image generation task by sending a request to recreate the original job.

Inputs

  • jobId (required) — The ID of the original task to reroll (regenerate with the same prompt)
  • callback — Optional webhook URL to receive the result when the reroll task is completed
  • requestOptions — Additional request configuration such as batching settings, SSL verification, proxy, and timeout

Output shape

a single job record representing the rerolled image job

The response contains the updated job object; optional fields may be present, but the operation resolves on success/failure without pagination.

Examples

Example 1: Reroll an image job and optionally receive completion via webhook

jobId: 'abc123', callback: 'https://my.webhook/legnext', requestOptions: { batch: { batchSize: 10 } }

Discussion