Legnext icon

Legnext

Interact with the Legnext API

Image → Variation

AI-generated

Summary

Create image variations using a specified variation type and optional remix prompt.

Inputs

  • jobId (required) — The job ID from a previous image generation task
  • imageNo (required) — Which image to create variations from (0-3, corresponding to the 4 generated images)
  • type (required) — Variation type to apply (0 = Subtle, 1 = Strong)
  • remixPrompt — Optional prompt to remix the image with new elements
  • callback — Optional webhook URL to receive the result when the variation task completes
  • requestOptions — HTTP request configuration options such as batching, SSL settings, proxy, and timeout

Output shape

A JSON object containing the variation result, typically including the variation image URL and metadata

The response may include additional fields depending on the API; success returns the variation data, failure returns an error envelope

Examples

Example 1: Generate a subtle variation of image #0 with a custom remix prompt

jobId = "12345", imageNo = 0, type = 0, remixPrompt = "Add a red balloon", callback = "https://example.com/webhook"

Discussion