Skip to main content

Set up

  1. Create a scenario with an HTTP → Make a request module.
  2. Submit POST https://api.legnext.ai/api/v1/diffusion.
  3. Store the API key in a Make connection or secret and send it as the x-api-key header only from the submit module.
  4. Save the returned job_id in a data store.
  5. Continue the scenario by polling Get Task on a schedule or receiving the task callback.
Do not wait for image or video completion inside the initial HTTP module. Generation is asynchronous; poll the task endpoint with a bounded retry policy or resume the scenario from a webhook.
Get Task does not require the API key; keep its capability URL private. Add an error-handler route for rejected, failed, and timed-out tasks. Persist completed media in your own storage because result URLs expire.