For the complete documentation index, see llms.txt. This page is also available as Markdown.

Seedance 2.0 Mini

This documentation is valid for the following list of our models:

  • bytedance/dreamina-seedance-2-0-mini

Model Overview

Seedance 2.0 Mini is available through the AI/ML API.

Setup your API Key

If you don't have an API key yet, use our Quickstart guide.

How to Make a Call

Step-by-Step Instructions

Generating a video involves sequentially calling two endpoints:

  • Create and submit a video generation task. The response contains a generation ID.

  • Poll the retrieval endpoint with that generation ID until the status is completed.

API Schemas

Create a video generation task and send it to the server

post
Body
modelstring · enumRequiredPossible values:
providerstringOptional

Provider routing override. bytedance runs native ByteDance with no fallback; fal runs the fal.ai mirror; auto (default) uses the ByteDance -> fal.ai fallback chain. Case-insensitive.

Example: auto
promptstringRequired

The text description of the scene, subject, or action to generate in the video.

image_urlstring · uriOptional

A direct link to an online image or a Base64-encoded local image that will serve as the visual base or the first frame for the video.

last_image_urlstring · uriOptional

A direct link to an online image or a Base64-encoded local image to be used as the last frame of the video.

audio_urlstring · uriOptional

URL, Base64-encoded string or asset ID of the audio. The duration of the audio file specified in the parameter must not exceed 15.2 seconds. If audio is provided, at least one reference image or video is required.

video_urlstring · uriOptional

The public URL of the video. Only video URLs are supported.

image_urlsstring · uri[] · min: 1 · max: 9Optional

Reference images to guide video generation. Refer to them in the prompt as @Image1, @Image2, etc.

audio_urlsstring · uri[] · min: 1 · max: 3Optional

Reference audio to guide video generation. Refer to them in the prompt as @Audio1, @Audio2, etc. Supported formats: MP3, WAV. Up to 3 files, combined duration must not exceed 15 seconds. If audio is provided, at least one reference image (image_urls) or video (video_urls) is required.

video_urlsstring · uri[] · min: 1 · max: 3Optional

Reference videos to guide video generation. Refer to them in the prompt as @Video1, @Video2, etc. Supported formats: MP4, MOV. Each video must be between ~480p (640x640) and ~720p (834x1112) in resolution.

aspect_ratiostring · enumOptional

The aspect ratio of the generated video.

Default: 16:9Possible values:
resolutionstring · enumOptional

An enumeration where the short side of the video frame determines the resolution.

Default: 720pPossible values:
durationinteger · enumOptional

The length of the output video in seconds.

Default: 5Possible values:
generate_audiobooleanOptional

Whether to generate audio for the video.

Default: true
seedintegerOptional

Varying the seed integer is a way to get different results for the same other request parameters. Using the same value for an identical request will produce similar results. If unspecified, a random number is chosen.

watermarkbooleanOptional

Whether the video contains a watermark.

Default: false
Responses
200

Successful response.

application/json
idstringRequired

The ID of the generated video.

Example: 60ac7c34-3224-4b14-8e7d-0aa0db708325
statusstring · enumRequired

The current status of the generation task.

Example: completedPossible values:
post/v2/video/generations
200

Successful response.

Retrieve the generated video from the server

Poll this endpoint with the generation_id returned by the submit request. When the status is completed, the response includes the generated video URL.

get
Authorizations
AuthorizationstringRequired

Bearer key

Query parameters
generation_idstringRequiredExample: <REPLACE_WITH_YOUR_GENERATION_ID>
Responses
200Success
application/json
idstringRequired

The ID of the generated video.

Example: 60ac7c34-3224-4b14-8e7d-0aa0db708325
statusstring · enumRequired

The current status of the generation task.

Example: completedPossible values:
get/v2/video/generations
200Success

Code Example

The examples submit a generation task and poll every 15 seconds until the final result is available.

Response

Last updated

Was this helpful?