01 · Playgroundbytedance/seedance-2-mini/text-to-video
Seedance 2 Mini
01 · Access

Step intothe light.

To run Seedance 2 Mini live, add your fal API key. It stays in your browser, bills your own fal account, and unlocks every take.

Get a key
01PromptSeedance 2 Mini

Add your fal key to step into the light

02 · Integration

Step intoproduction.

The playground up top is the same endpoint you ship to production. Three code paths below, one per stack, with the parameter index underneath.

endpoint bytedance/seedance-2-mini/text-to-video
output video
01TypeScript
01example.tsTS
01import { fal } from "@fal-ai/client";
02
03fal.config({ credentials: process.env.FAL_KEY });
04
05const { data } = await fal.subscribe("bytedance/seedance-2-mini/text-to-video", {
06 input: {
07 "prompt": "A barista at a wooden counter wipes a portafilter and looks up to say: 'First po...",
08 "resolution": "720p",
09 "duration": "auto",
10 "aspect_ratio": "16:9",
11 "generate_audio": true,
12 "seed": 42
13 },
14 logs: true,
15});
16
17console.log(data);
02Python
01example.pyPYTHON
01import fal_client
02
03result = fal_client.subscribe(
04 "bytedance/seedance-2-mini/text-to-video",
05 arguments={
06 "prompt": "A barista at a wooden counter wipes a portafilter and looks up to say: 'First po...",
07 "resolution": "720p",
08 "duration": "auto",
09 "aspect_ratio": "16:9",
10 "generate_audio": true,
11 "seed": 42
12 },
13 with_logs=True,
14)
15
16print(result)
03HTTP
01example.shBASH
01curl -X POST "https://queue.fal.run/bytedance/seedance-2-mini/text-to-video" \
02 -H "Authorization: Key $FAL_KEY" \
03 -H "Content-Type: application/json" \
04 -d '{ "prompt": "A barista at a wooden counter wipes a portafilter and looks up to say: 'First po...", "resolution": "720p", "duration": "auto", "aspect_ratio": "16:9", "generate_audio": true, "seed": 42 }'
04

Input parameters

KeyKindDefaultNotes
01prompttext (required)·Primary generation input.
02resolutionselect720p480p, 720p
03durationselectautoAuto, 4s, 5s, 8s, 10s, 12s, 15s
04aspect_ratioselect16:9Auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16
05generate_audioselecttrueNative audio on, Silent render
06seednumber420 to 999999
07resolutiondefault720pSent with every request unless overridden.
08durationdefaultautoSent with every request unless overridden.
09aspect_ratiodefault16:9Sent with every request unless overridden.
10generate_audiodefaulttrueSent with every request unless overridden.

Full schema at fal.ai/models/bytedance/seedance-2-mini/text-to-video/llms.txt.

Also reading