Skip to main content

Before you start

Sign in to LuluLab and get a luk- API key from My Keys. Store it on your server. All examples call https://customer.lululab.ai and send the raw key in the Authorization header. Get an API key Generation is asynchronous: POST /tasks returns a job id, then GET /tasks/{id} provides status and output. You can call POST /billing/estimates before submitting to estimate credits. This flow has two steps. First submit SalesVideoPromptV3 and wait for the plan. Read videoPrompt.prompt, or videos[].videoPrompt.prompt for multiple plans, from the returned output. Some results add another output wrapper. Then submit one VideoCreationV1 job per plan. Planning does not produce a video file. Prepare a product photo, product name, verified selling points, and target market. Planning turns these facts into a video prompt; generation creates the downloadable video. Keep unverified claims out of productInfo.

Step 1 fields and values

Step 1: plan the video

Product video planning request
After planning succeeds, read output.videoPrompt.prompt for one plan or output.videos[].videoPrompt.prompt for multiple plans. If the payload contains an extra output wrapper, unwrap it first.
Plan response example (key fields)

Step 2 fields

The rendering workflowId is VideoCreationV1. Its input uses the video generation fields below; prompt must be the complete prompt returned by planning. Keep model, ratio, duration, and references aligned.

Step 2: generate the video

Replace PASTE_VIDEO_PROMPT_FROM_PLAN with the full prompt returned in step 1. Keep the model, duration, and references aligned.
Product video generation request
If the plan returns multiple videos, submit one VideoCreationV1 job for each prompt. Each video has its own job id and must be polled separately.