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

# Video recreation

Use an uploaded source video you have permission to reuse. Obtain a LuluLab API Key and keep it on your server.

| Mode | `workflowId` | Source field |
| - | - | - |
| Deep recreation | `DeepRecreationV1` | `input.sourceAssetId` |
| Storyboard recreation | `StoryboardRecreationV1` | `input.benchmarkVideo.assetId` |
| Element replacement | `ElementReplacementV1` | `input.sourceAssetId` |

1. [Upload the source video and reference media](https://docs.lululab.ai/uploads.md). Save the uploaded video's file ID, URL, MIME type, and measured duration. The source file must be accessible to the account that submits the task.
2. Build the mode-specific request below. Use the chosen model's supported resolution and aspect ratio. Obtain a quote if you need to reserve a specific price or safely retry an uncertain submission.
3. Submit to `POST /tasks` and [poll task status](https://docs.lululab.ai/task-results.md). Save the returned task ID.

## Request examples

The following examples use an eight-second source video. Replace the sample asset ID and URL with values returned by the upload. Send the selected JSON body to `POST https://customer.lululab.ai/tasks` with `Authorization: $LULULAB_API_KEY` and `Content-Type: application/json`.

### Deep recreation

```json theme={null}
{
  "workflowId": "DeepRecreationV1",
  "input": {
    "model": "seedance-2-fast",
    "intentVersion": "lululab.recreation.intent.v1",
    "userRequirement": "Create an original variation using the pacing of the reference.",
    "productImages": [],
    "personImages": [],
    "backgroundImages": [],
    "aspectRatio": "9:16",
    "resolution": "720p",
    "duration": 8,
    "generateAudio": true,
    "sourceAssetId": "12345678-1234-1234-1234-123456789abc",
    "sourceDurationMs": 8000,
    "modelDurationLimitMs": 15000,
    "deepPipelineVersion": 2,
    "deepPresentationVersion": 1,
    "creator": {
      "mode": "ai_generated"
    },
    "recreateMode": "deep",
    "benchmarkVideo": {
      "url": "https://example.com/source.mp4",
      "mimeType": "video/mp4"
    },
    "deepRequirement": "Create an original variation using the pacing of the reference.",
    "sourceAspectRatio": "9:16"
  }
}
```

### Storyboard recreation

```json theme={null}
{
  "workflowId": "StoryboardRecreationV1",
  "input": {
    "schemaVersion": "lululab.recreate.video.v1",
    "recreateMode": "storyboard",
    "storyboardPipelineVersion": 2,
    "reviewBeforeGeneration": false,
    "postproduction": {
      "marketingText": "Create an original variation using the pacing of the reference.",
      "marketingTextMode": "creative_brief"
    },
    "benchmarkVideo": {
      "url": "https://example.com/source.mp4",
      "mimeType": "video/mp4",
      "assetId": "12345678-1234-1234-1234-123456789abc",
      "duration": 8
    },
    "userConfig": {
      "model": "seedance-2-fast",
      "sourceDuration": 8,
      "targetDuration": 8,
      "targetDurationSource": "source_nearest_integer",
      "interactionLocale": "en-US",
      "targetCountry": "United States",
      "targetLanguage": "English",
      "customRequirement": "Create an original variation using the pacing of the reference."
    },
    "product": {
      "mode": "keep_source",
      "images": []
    },
    "creator": {
      "mode": "ai_generated",
      "images": []
    },
    "assets": {
      "backgroundMode": "keep_source",
      "backgroundImages": [],
      "referenceAudios": []
    },
    "settings": {
      "videoModel": "seedance-2-fast",
      "durationMode": "source",
      "aspectRatio": "9:16",
      "resolution": "720p",
      "generateAudio": true,
      "interactionLocale": "en-US",
      "targetCountry": "United States",
      "targetLanguage": "English",
      "customRequirement": "Create an original variation using the pacing of the reference."
    }
  }
}
```

### Element replacement

```json theme={null}
{
  "workflowId": "ElementReplacementV1",
  "input": {
    "model": "seedance-2-5",
    "intentVersion": "lululab.recreation.intent.v1",
    "userRequirement": "Create an original variation using the pacing of the reference.",
    "productImages": [],
    "personImages": [],
    "backgroundImages": [],
    "aspectRatio": "adaptive",
    "resolution": "720p",
    "duration": 8,
    "generateAudio": true,
    "sourceAssetId": "12345678-1234-1234-1234-123456789abc",
    "sourceDurationMs": 8000,
    "modelDurationLimitMs": 30000
  }
}
```

## Storyboard review and captions

New storyboard recreations proceed automatically. Review and cancellation endpoints apply to existing tasks that are still awaiting manual review. Caption editing is disabled for recreated videos and returns `409`.

On completion, read `output.video.url`. Depending on the mode and postprocessing, the response can also include `cleanVideo`, `subtitle`, and segment counts. See [batch submission](https://docs.lululab.ai/batch-tasks.md) if you need multiple recreations.


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