Seedance 2.0 Fast

This guide shows how to generate videos using the Seedance 2.0 Fast model via the Leonardo.AI REST API.

Sample Request

curl --request POST \
--url https://cloud.leonardo.ai/api/rest/v2/generations \
--header 'accept: application/json' \
--header 'authorization: Bearer <YOUR_API_KEY>' \
--header 'content-type: application/json' \
--data '
{
  "model": "seedance-2.0-fast",
  "public": false,
  "parameters": {
    "prompt": "The koala plays with the cat",
    "quantity": 1,
    "guidances": {
      "start_frame": [
        {
          "image": {
            "id": "<YOUR_START_IMAGE_ID>",
            "type": "UPLOADED"
          }
        }
      ],
      "end_frame": [
        {
          "image": {
            "id": "<YOUR_END_IMAGE_ID>",
            "type": "UPLOADED"
          }
        }
      ]
    },
    "duration": 8,
    "motion_has_audio": true,
    "width": 1280,
    "height": 720
  }
}
'

API Request Endpoint, Headers, Parameters

Endpoint

https://cloud.leonardo.ai/api/rest/v2/generations

Headers

--header "accept: application/json" \
--header "authorization: Bearer <YOUR_API_KEY>" \
--header "content-type: application/json"

Body Parameters

ParameterTypeDefinition
durationintegerLength of the generated video in seconds. Valid values are 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15. Defaults to 8.
guidances.audio_referencearrayMaximum 1 item. Optional audio reference used to guide the generation.
guidances.end_framearrayMaximum 1 item. Each item includes an image object (image.id and image.type). Used as the end frame of the video.
guidances.image_referencearrayMaximum 4 items. Each item includes image (object), strength (LOW, MID, or HIGH; defaults to MID), and an optional order (integer ≥ 0). Reference images that guide the video generation.
guidances.start_framearrayMaximum 1 item. Each item includes an image object (image.id and image.type). Used as the start frame of the video.
guidances.video_reference_basearrayMaximum 3 items. Optional base video reference used to guide the generation.
heightintegerSets the height of the output video in pixels. Defaults to 720.
modestringDeprecated. Width and height are the canonical inputs for this model; this field is retained for backwards compatibility. Valid values are RESOLUTION_480 and RESOLUTION_720. Defaults to RESOLUTION_720.
modelstringSpecifies the model used for generation. Must be seedance-2.0-fast.
motion_has_audiobooleanWhether the generated video will include audio. Defaults to true.
promptstringText description of the video content to generate. Maximum of 5000 characters.
publicbooleanControls whether the generated video is public (true) or private (false).
quantityintegerThe number of outputs to generate. Must be 1. Defaults to 1.
seednumberThe seed value for generation. Valid range is -1 to 4294967295. Defaults to -1 (random).
widthintegerSets the width of the output video in pixels. Defaults to 1280.

Dimensions

Width and height are supplied as integer pixel values and are the canonical inputs for this model. The default output is 1280 x 720 (720p).

The deprecated mode field maps to two resolution tiers and is retained only for backwards compatibility:

ModeResolution
RESOLUTION_480480p
RESOLUTION_720720p (default)

Note: Unlike Seedance 1.0 Pro, the Seedance 2.0 Fast schema does not enumerate a fixed set of allowed width/height pairings. Set width and height directly in pixels.