Generate
REST APIModel Specifics

Seedance 2.0

Let the model pick the framing and length of a video.

These options work on Seedance-2.0, Seedance-2.0-Fast, and Seedance-2.0-Mini, for T2V, I2V, and R2V.

Adaptive aspect ratio

Set video_config.aspect_ratio to "adaptive" to let the model choose the framing from your prompt and references. The fixed ratios stay available.

Adaptive duration

Set video_config.duration_secs to -1 to let the model choose how long the video is, between 4 and 15 seconds. You are only charged for what's generated.

curl https://api.machgen.ai/api/v0/generate \
  -H "Authorization: Bearer $MACHGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A paper boat crossing a rain-soaked neon street at night",
    "model": "Seedance-2.0",
    "task_type": "T2V",
    "video_config": {"duration_secs": -1, "height": 720, "aspect_ratio": "adaptive"}
  }'