Produce a video from reference images and videos with Seedance 2.0
Produce a video from a text prompt and reference media with Seedance 2.0.
The prompt addresses the references by position: the first reference image is @Image1, the second @Image2, the first reference video is @Video1, and so on. Supply reference images either as reference_image_asset_identifiers (images already stored with Ideogram) or as raw reference_images bytes (multipart requests only); supplying both is rejected, and uploaded bytes are used for this request only and are not stored as an asset. Supply reference videos as reference_video_asset_identifiers, which can reference uploaded or generated videos. At most 9 reference images and 3 reference videos are accepted, and reference videos are capped again on clip length: each clip must be between 2 and 15 seconds long, and the clips must total no more than 15 seconds. Supply up to 3 MP3/WAV reference_audios as multipart files, at most 15 MB each. Each audio clip must be 2–15 seconds, with at most 15 seconds total. Reference them as @Audio1, @Audio2, and so on. Audio is used for this request only. Images, videos, and audio combined must not exceed 12 references.
At least one reference image or video is required: the model conditions every generation on the media it is given, so a request with no references is rejected.
Video generation always runs asynchronously: the response returns as soon as the request is accepted and carries only a generation_id. Poll for completion and results with GET /v1/generations/{generation_id} using that id, or supply a webhook_url to have the finished result POSTed to your server instead.
Video links are available for a limited period of time; download the video if you want to keep it.
Query parameters
When true, the request is validated and priced but not run: nothing is generated, stored, or billed, and no safety review is performed. The response is a PriceQuote object instead of the usual response for this endpoint. Send exactly the request you would send to generate, so the quote reflects the same options.
Request body
Example request
{
"prompt": "@Image1 walks through the snowy forest at dawn.",
"reference_image_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"reference_video_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"duration": 5,
"webhook_url": "https://api.example.com/webhooks/ideogram"
}Response
An acknowledgement to poll with GET /v1/generations/{generation_id}.
Example response
{
"generation_id": "generation_id",
"created": "2000-01-23T04:56:07+00:00"
}Changes
Changed in 3 of the 34 revisions of this API.27
- ▲
removed the enum value
AUTOof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
AUTOof the request property(media type: application/json)request-property-enum-value-removed
- ○
the
request property default value changed fromAUTOtoauto(media type: multipart/form-data)request-property-default-value-changed
- ○
the
request property default value changed fromAUTOtoauto(media type: application/json)request-property-default-value-changed
- ○
added the new
autoenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
autoenum value to the request property(media type: application/json)request-property-enum-value-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
(media type: multipart/form-data)new-optional-request-property
- ○
added the new optional request property
(media type: application/json)new-optional-request-property
- ○
- ○
endpoint added
endpoint-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○