---
title: "Create a new video generation chain"
method: POST
path: "/api/longform-video/generate"
tags: ["Video Chain"]
---

# Create a new video generation chain

`POST /api/longform-video/generate`

## Request

- Base URL: `https://app.addshuffle.com`
- URL: `https://app.addshuffle.com/api/longform-video/generate`
- Auth: HTTP bearer

Creates either an automated or manual video generation chain. Automated mode generates all clips sequentially from a single prompt. Manual mode creates one clip at a time with user control.

## Request body

- object
  - `prompt` string, required: Scene description for video generation
  - `imageUrl` string, uri: Input image URL for image-to-video generation
  - `durationSeconds` integer: Total video duration (automated mode only)
  - `mode` 'manual' | 'automated': automated: full video from prompt. manual: build clip by clip
  - `tier` 'fast' | 'standard'
  - `generation` '3.0' | '3.1': Veo model version
  - `stability` 'preview' | 'stable'
  - `clipDurationSeconds` 4 | 6 | 8: Duration of each clip in seconds
  - `resolution` '720p' | '1080p' | '4k'
  - `aspectRatio` '16:9' | '9:16'
  - `generateAudio` boolean: Generate audio with video
  - `negativePrompt` string: Things to avoid in generation
  - `seed` integer: Reproducibility seed
  - `compressionQuality` 'lossless' | 'optimized'
  - `personGeneration` 'dont_allow' | 'allow_adult'
  - `sampleCount` integer
  - `resizeMode` 'pad' | 'crop': Only applicable with imageUrl

## Response `200`

Chain created successfully

- object
  - `chainId` string
  - `status` 'created'
  - `mode` 'manual' | 'automated'
  - `message` string

## Other responses

- `400`: Validation error
- `402`: Insufficient credits (includes L402 offers)

---

[API](https://skmtc.dev/addshuffle/apis/farcash-longform-video-api.md) · [All operations](https://skmtc.dev/addshuffle/apis/farcash-longform-video-api/llms.txt) · [OpenAPI document](https://skmtc.dev/addshuffle/apis/farcash-longform-video-api/revisions/f0a14318fdf9?raw)
