photo & image to video · one API

Create video from photos — with one API call.

Turn a set of images into a finished MP4 programmatically. Build a deterministic slideshow from a JSON payload, or feed a single photo to an AI image-to-video model and animate the still — both on the same SamAutomation key.

Images → MP4 in one call Deterministic or AI-animated n8n-ready webhooks
# turn a photo set into a slideshow video
POST /api/function/video-generation/mix-video
{
  "media_list": [
    { "type":"image", "url":"photo1.jpg", "duration":3 },
    { "type":"image", "url":"photo2.jpg", "duration":3 },
    { "type":"image", "url":"photo3.jpg", "duration":3 }
  ],
  "voice_over_url": "vo.mp3",
  "settings": { "aspect_ratio":"9:16" }
}
# → { "video_url": "…/output.mp4" }
// two paths

Two ways to turn images into video

Pick the one that fits the job. They are genuinely different: one stitches your photos into a video exactly as specified, the other uses AI to invent motion from a single still. Same API key for both.

deterministic

JSON-to-video: slideshow from photos

Send a JSON payload whose media_list holds your image URLs, with optional voice-over, captions and per-image timing. The renderer composes them into one MP4 — the same input gives the same output every time. Ideal for slideshows and montages at scale.

# images in order → one rendered file
"media_list": [
  { "type":"image", "url":"img1.jpg" },
  { "type":"image", "url":"img2.jpg" },
  { "type":"image", "url":"img3.jpg" }
]
# → output.mp4
What it is: deterministic composition of your photos into a video. No invented frames — your images, your order, your timing.
ai-generated

Image-to-video: animate a single photo

Feed one image plus a text prompt to an image-to-video model (Kling, Hailuo, Wan, Seedance and more). The model animates the still into a moving clip — camera moves, motion and life that were never in the original frame. Submit a job, poll, get the clip.

# animate one still with a model
POST /api/ai/jobs
{
  "model_id": "kling-3-0",
  "image_urls": ["photo.jpg"],
  "prompt": "slow push-in, gentle camera drift"
}
# → { "clip_url": "…/clip.mp4" }
What it is: AI animation of a photo. The motion is generated by the model — great when one image needs to move.
// image-to-video

Animate a photo with any model

Every clip below is a real sample rendered through the API. Send a still and a prompt to any of these image-to-video models and get a moving clip back — switch the model_id to change the look.

Browse all models →
// use cases

What people build from a photo set

Both paths fit naturally into a backend or no-code pipeline, so the work runs without a human in the editor.

Product videos from product photos

Feed your existing product images into a JSON render to produce a clean rotating slideshow, or animate the hero shot with an image-to-video model for a moving product clip.

Slideshow & montage from a photo set

Point media_list at a folder of images, add timing and a voice-over track, and get a deterministic slideshow MP4 — the same payload renders the same video each time.

Social clips from images

Turn photos into vertical 9:16 clips with burned-in captions for social, generated programmatically so a whole batch ships in one run.

Image-to-video at scale

Loop over a set of stills, submit one image-to-video job per image, and collect the animated clips by webhook — a pipeline that turns a photo library into motion.

// how it works

From photos to MP4 in three steps

The same shape works for a JSON slideshow or an AI image-to-video job — point at images, call the API, collect the file.

1

Point to your images

Host your photos at public URLs or upload them, so the API can read each image you want in the video.

2

Call the API

Send a JSON payload with a media_list of image URLs for a slideshow, or submit an image-to-video job with a model_id + image + prompt to animate one photo.

3

Get the MP4

Poll the task status or receive a webhook callback, then download the rendered MP4 from the returned URL.

Turn your photos into video today

One key for deterministic slideshows from a JSON payload and AI image-to-video. Documented, webhook-ready, built for your pipeline.