Actions14
- Account Actions
- Image Actions
- Job Actions
- Video Actions
Image → Outpaint
AI-generatedSummary
Send an outpaint request for an image using the Legnext API
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)
- scale (required) — Extension scale ratio (1.1-2.0). Example: 1.2 means 20% extension in all directions (original occupies 83% of new image).
- remixPrompt — Optional text prompt for the extended areas (1-8192 characters)
- callback — Optional webhook URL to receive the result when the outpaint task is completed
- requestOptions — Additional request configuration such as batching, SSL options, proxies, and timeout
Output shape
JSON object containing the outpaint task response (e.g., task ID, status)
The full result is typically delivered via the callback URL or must be polled; returns a task identifier and status fields.
Examples
Example 1: Extend image #1 by 150% and apply a remix prompt
jobId: 'abc123', imageNo: 1, scale: 1.2, remixPrompt: 'Add a sunset background'
Example 2: Make an outpaint request with batch processing
jobId: 'def456', imageNo: 0, scale: 1.5, requestOptions: { batching: { batchSize: 10 } }
Example 3: Trigger outpaint and await completion via callback
jobId: 'ghi789', imageNo: 2, scale: 1.1, callback: 'https://mywebhook.com/legnext/callback'