Output retention
Result files are served from temporary CDN URLs that stay valid for 7 days after a task completes. Treat every returned URL as a temporary delivery URL, not as your application’s permanent asset. After a task reachescompleted:
- Download the required file from
output.image_urloroutput.image_urls. - Store it in storage controlled by your application.
- Save your durable URL alongside the Legnext
job_id. - Serve the durable copy to users instead of depending on the original URL.
Task and follow-up window
Task lookup and operations that depend on an existing Midjourney result are available for three days after the source task is created. Complete variations, upscales, and other follow-up operations inside that window. Useavailable_actions to choose a likely valid action, but still handle a
400 rejection. For some edit-derived images the field can advertise an action
that the provider cannot perform.
Output retention, task lookup, and follow-up operation validity are separate.
Storing an image yourself does not extend the period in which Legnext can query
or perform an action on the original task.