> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lululab.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Product video API

## 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](https://customer.lululab.ai) and send the raw key in the Authorization header. [Get an API key](https://www.lululab.ai/keys)

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

| Field / type | Required | Values and description |
| - | - | - |
| `input.model` (`string`) | Yes | seedance-2-mini · seedance-2-fast · seedance-2-5-flash · seedance-2 · seedance-2-5 · minimax-h3 · google-veo · grok-imagine-1-5-preview · wan-3 · Use the same video model for planning and generation. |
| `input.duration` (`integer`) | Yes | Seconds per video; must be supported by the selected model. |
| `input.videoCount` (`integer`) | No | 1–20 · Number of distinct plans; defaults to 1. |
| `input.aspectRatio` (`string`) | Yes | Output aspect ratio; use a value in the model matrix. |
| `input.resolution` (`string`) | Yes | Output resolution; use a value in the model matrix. |
| `input.generateAudio` (`boolean`) | No | true · false · Whether to generate audio; defaults to true. |
| `input.referenceImages` (`array<MediaReference>`) | Yes | At least one product photo; use the uploaded location as url. |
| `input.creativeType` (`string`) | No | auto · productPitch · storyDrivenAd · lifestyleSeeding · Creative format; auto lets the planner choose. |
| `input.salesRegion` (`string`) | Yes | Target sales country or region, e.g. United States. |
| `input.speechLanguage` (`string`) | Yes | Spoken language, e.g. English. |
| `input.promptLanguage` (`string`) | No | zh-CN · en-US · Plan prompt language; the site currently offers these interaction languages. |
| `input.interactionLanguage` (`string`) | No | zh-CN · en-US · Language of explanatory planning text. |
| `input.productInfo.name` (`string`) | Yes | Product name. |
| `input.productInfo.category` (`string`) | No | Product category. |
| `input.productInfo.features` (`string`) | No | Verified product features. |
| `input.productInfo.sellingPoints` (`string`) | Yes | Verified selling points; omit unverified claims or pricing. |
| `input.productInfo.targetAudience` (`string`) | No | Target audience. |
| `input.productInfo.usageScenarios` (`string`) | No | Usage scenarios. |
| `input.creativeBrief` (`string`) | No | Additional creative direction consistent with product facts. |

### Step 1: plan the video

```bash Product video planning request theme={null}
curl -X POST https://customer.lululab.ai/tasks \
  -H "Authorization: $LULULAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflowId": "SalesVideoPromptV3",
    "input": {
      "model": "seedance-2-mini",
      "duration": 5,
      "videoCount": 1,
      "aspectRatio": "9:16",
      "resolution": "480p",
      "generateAudio": true,
      "referenceImages": [{ "url": "PRODUCT_IMAGE_URL", "mimeType": "image/jpeg" }],
      "creativeType": "auto",
      "salesRegion": "United States",
      "speechLanguage": "English",
      "promptLanguage": "en-US",
      "interactionLanguage": "en-US",
      "productInfo": {
        "name": "Ceramic cup",
        "category": "Home goods",
        "features": "Ceramic material",
        "sellingPoints": "Handmade finish",
        "targetAudience": "Coffee lovers",
        "usageScenarios": "Morning coffee"
      },
      "creativeBrief": "Use only the product facts supplied above."
    }
  }'
```

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.

```json Plan response example (key fields) theme={null}
{
  "status": "Succeeded",
  "output": {
    "videoPrompt": {
      "summary": "A short product showcase",
      "duration": 5,
      "prompt": "FULL_VIDEO_PROMPT_FOR_VIDEO_CREATION"
    }
  }
}
```

### 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.

| Field / type | Required | Values and description |
| - | - | - |
| `input.taskType` (`string`) | No | reference · First-batch generation mode; the workflow defaults to reference when omitted. |
| `input.model` (`string`) | Yes | seedance-2-mini · seedance-2-fast · seedance-2-5-flash · seedance-2 · seedance-2-5 · minimax-h3 · google-veo · grok-imagine-1-5-preview · wan-3 · Video model ID; see the model matrix for durations, resolutions, and ratios. |
| `input.prompt` (`string`) | Yes | Describe content, movement, camera, and audio; cannot be empty. |
| `input.duration` (`number`) | Yes | Duration in seconds within the selected model range. |
| `input.aspectRatio` (`string`) | Yes | Target aspect ratio; model-specific values are listed below. |
| `input.resolution` (`string`) | Yes | Target resolution; model-specific values are listed below. |
| `input.generateAudio` (`boolean`) | No | true · false · Whether to generate audio; defaults to true when omitted, subject to model capability. |
| `input.referenceImages` (`array<MediaReference>`) | No | Reference images; each item includes url and mimeType. |
| `input.referenceVideos` (`array<MediaReference>`) | No | Reference videos where supported; model limits apply. |
| `input.referenceAudios` (`array<MediaReference>`) | No | Reference audio files; model limits apply. |

### 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.

```bash Product video generation request theme={null}
curl -X POST https://customer.lululab.ai/tasks \
  -H "Authorization: $LULULAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflowId": "VideoCreationV1",
    "input": {
      "taskType": "reference",
      "model": "seedance-2-mini",
      "prompt": "PASTE_VIDEO_PROMPT_FROM_PLAN",
      "aspectRatio": "9:16",
      "resolution": "480p",
      "duration": 5,
      "generateAudio": true,
      "referenceImages": [{ "url": "PRODUCT_IMAGE_URL", "mimeType": "image/jpeg" }]
    },
    "attributes": { "saveGeneratedAssets": true, "creationSource": "api" }
  }'
```

> [!NOTE]
>
> 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.

* [Upload reference assets](https://docs.lululab.ai/uploads.md)
* [Get task results and troubleshoot](https://docs.lululab.ai/task-results.md)
* [API reference](https://docs.lululab.ai/reference.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.