VideoKling 4.0
Text to video · Image to video · Video editing
Starting price $0.2488 / second
By ByteDance
Move from a written scene to a video. Set the subject, action and mood in your prompt.
bytedance/seedance-2.5/us/reference-to-videoThis model has other modes with their own ids: bytedance/seedance-2.5/us/text-to-video, bytedance/seedance-2.5/us/image-to-video.
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/seedance-2.5/us/reference-to-video",
"input": {
"prompt": "@Image1 is the woman and @Image2 is the tote bag. She walks through an aquarium tunnel carrying the bag and looks up at the fish as blue light moves over her face."
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "bytedance/seedance-2.5/us/reference-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"@Image1 is the woman and @Image2 is the tote bag. She walks through an aquarium tunnel carrying the bag and looks up at the fish as blue light moves over her face."}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
prompt | string | The text prompt used to generate the video. |
task | string (enum) | The type of video generation task. Reference uses the supplied media as guidance. |
image_urls | array of image URLs | Reference images to guide video generation. Refer to them in the prompt as @Image1, @Image2, etc. Supported formats: JPG, PNG, WebP, BMP, TIFF, GIF, HEIC, HEIF. Max 30 MB per image. Up to 30 images. Total files across all modalities must not exceed 50. |
resolution | string (enum) | Video resolution - 480p for faster generation, 720p for balance, 1080p for high quality. |
draft | boolean | Generate a draft preview at 480p, overriding resolution. Returns a draft_id for completing the draft at 1080p or 4k within 7 days. |
duration | string (enum) | Duration of the video in seconds. |
aspect_ratio | string (enum) | The aspect ratio of the generated video. |
generate_audio | boolean | Whether to generate synchronized audio for the video, including sound effects, ambient sounds, and lip-synced speech. |
bitrate_mode | string (enum) | Output bitrate mode. 'high' requests a higher-quality, larger-file encode from the model; 'standard' uses the default bitrate. |
codec | string (enum) | 'auto' retains default video codec behaviour; 'H264' uses H.264; 'H265' uses H.265. |
seed | integer | Random seed for reproducibility. Note that results may still vary slightly even with the same seed. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Seedance 2.5 creates video with sound from a written scene: sound effects, ambience and lip-synced speech come out together with the picture. A clip lasts 4 to 30 seconds, at 480p, 720p or 1080p.
Besides text, it can start from an opening image or follow reference images for a character, a product or a style. Six aspect ratios cover everything from a 21:9 cinema frame to 9:16 phone video.
Look for smooth movement, consistent shapes and a useful opening and ending frame. Trim the result in an editor if you need a seamless loop.