Actions14
- Account Actions
- Image Actions
- Job Actions
- Video Actions
Image → Pan
AI-generatedSummary
Initiates a pan operation to extend a Legnext image in the specified direction.
Inputs
- jobId (required) — The ID of the original image generation task
- imageNo (required) — Which image to extend (0-3, corresponding to the 4 generated images)
- direction (required) — The direction to extend the image canvas
- scale (required) — Extension scale ratio (1.1-3.0). Example: 1.13 means extending 13% in the specified direction.
- remixPrompt — Optional text prompt for the extended area (1-8192 characters)
- callback — Optional webhook URL to receive the result when the pan task is completed
- requestOptions — Configuration options for the HTTP request (batching, SSL, proxy, timeout)
Output shape
a JSON object containing the result of the pan operation (e.g., job status or confirmation)
The response may include additional fields such as task ID or error information; success does not guarantee immediate image availability.
Examples
Example 1: Extend an image to the right with a 1.2 scale
jobId: '12345', imageNo: 0, direction: 1, scale: 1.2
Example 2: Add a custom prompt when extending downward
jobId: '6789', imageNo: 1, direction: 0, scale: 1.5, remixPrompt: 'Add a sunset background'