Kling 4.0 (Reference-to-Video)
Kling 4.0 makes a 3 to 30 second clip with sound from a prompt and up to ten pictures of your characters, products or places, at 720p or 1080p.
Kling 4.0 (Reference-to-Video) is the Omni Reference mode of Kling AI's fourth-generation video model, from Kuaishou. Send up to ten pictures of characters, products, places or a style, name them in the prompt as @Image1, @Image2 and so on, and get a 3 to 30 second clip with two-channel stereo sound that keeps them consistent.
Use it for a recurring character or mascot, a product placed in a new scene, a cast brought together from several photos, or a look taken from a style frame. start_image_url and end_image_url fix the first and the last frame; a request holds at most ten pictures in all. aspect_ratio auto follows the references. Each picture: at least 300 pixels a side, up to 30 MB, aspect ratio 0.4-2.5.
Inputs: prompt (required, up to 26,000 characters), images (1-10 reference pictures, required), start_image_url, end_image_url, duration (3-30 seconds, 5 by default), resolution (720p or 1080p; 1080p by default) and aspect_ratio (auto, 16:9, 9:16, 1:1, 4:3, 3:4 or 21:9; 16:9 by default). Output: video, one MP4 clip with sound.
Price per second of video, sound included: $0.157 at 720p and $0.235 at 1080p. The default 5-second 1080p clip costs $1.175, 30 seconds at 1080p $7.05. It takes pictures only: a reference video or a video element would bill the input's length too, so they are not offered; for keyframes use Kling 4.0 (Image-to-Video). Through FlyMyAI it does not take per-shot prompts, reference videos, elements or voices, does not render 4K and does not edit or extend a video.
- Image to Video
Price: From $0.157 per second of duration, depending on resolution. One run with default settings costs $1.175.
Run Kling 4.0 (Reference-to-Video) via API
curl -X POST https://api.flymy.ai/api/v1/flymyai/kling-4_0-reference-to-video/predict \
-H "X-API-KEY: $FLYMYAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"The red mug from @Image1 on a wooden cafe table, steam rising, slow camera orbit","images":["https://flymy.ai/img/models/bytedance-seedream-5-0-pro.jpg"],"duration":5,"resolution":"720p"}'API documentation · Create a free account · Pricing