Seedance API Guide

Integrate Seedance video generation into your application. Choose your platform and language below.

Quick Start

Install the fal.ai client and set your API key.

import fal_client

# Set FAL_KEY environment variable or pass directly
result = fal_client.subscribe(
    "fal-ai/seedance/text-to-video",
    arguments={
        "prompt": "A golden retriever running through a sunflower field, cinematic lighting",
        "duration": 5,
        "aspect_ratio": "16:9",
    },
)

print(result["video"]["url"])

Available Models

ModelIDTypeResolution
Seedance Text-to-Videofal-ai/seedance/text-to-videoText → Video1080p
Seedance Image-to-Videofal-ai/seedance/image-to-videoImage → Video1080p
Seedance Litefal-ai/seedance-liteText → Video480p

Parameters

ParameterTypeRequiredDescription
promptstringYesText description of the desired video content
imagestring (URL)NoReference image URL for image-to-video generation
durationnumberNoVideo duration in seconds (4–15, default: 5)
aspect_ratiostringNoOutput aspect ratio: "16:9", "9:16", "1:1"
resolutionstringNoOutput resolution (platform-dependent)
audiobooleanNoEnable audio generation (Seedance 2.0 only)
seednumberNoRandom seed for reproducible results

Error Troubleshooting

401Invalid or missing API key

Check your API key is set correctly in environment variables

422Invalid parameters

Verify prompt is not empty and duration is within allowed range

429Rate limit exceeded

Wait and retry, or upgrade your plan for higher limits

500Server error

Retry after a few seconds. If persistent, check platform status page

NSFWContent moderation triggered

Modify your prompt to avoid restricted content