Developer API · Image to video with sound

Image-to-video API: animate photos and art with sound

Turn product shots, illustrations or keyframes into smooth 5 to 15 second videos with matching audio via one REST endpoint. $0.07 per second, pay as you go, with no subscription or enterprise seat minimums.

The short answer. Submit "pipeline": "video_i2v" with your inputImage URL and motion prompt. $0.35 for a 5-second MP4 with sound in 16:9, 9:16 or 1:1. Signing up with Discord, Google, GitHub or Twitch includes $1 of trial credit (enough for 2 five-second clips with sound).

Python example

import os, time, requests

API = "https://api.legit2compute.com"
H = {"x-api-key": os.environ["L2C_API_KEY"]}

job_id = requests.post(f"{API}/jobs", headers=H, json={
    "pipeline": "video_i2v",
    "inputImage": "https://example.com/product.jpg",
    "inputData": {
        "prompt": "Slow 360-degree studio turntable spin as warm light glints across the glass. Quiet studio room tone.",
        "width": 960, "height": 960, "seconds": 5
    },
}).json()["job"]["job_id"]

while True:
    st = requests.get(f"{API}/jobs/{job_id}", headers=H).json()["job"]["status"]
    if st in ("completed", "failed", "cancelled", "validation_failed"):
        break
    time.sleep(15)

if st == "completed":
    open("animated.mp4", "wb").write(requests.get(f"{API}/jobs/{job_id}/download", headers=H).content)

Questions

How does image-to-video work on legit2compute?

Pass your starting image URL as inputImage with "pipeline": "video_i2v" and describe only the motion, camera movement and sound in inputData.prompt. The output is an MP4 with synced audio.

Can I generate the starting image on the same API key?

Yes. Call "pipeline": "image_generate" (from $0.004 per image) and feed its output straight into video_i2v on the same balance.

What does image-to-video cost?

$0.07 per second ($0.35 for 5 seconds, $0.70 for 10 seconds, $1.05 for 15 seconds). No subscription. Signing up with Discord, Google, GitHub or Twitch includes $1 of trial credit (enough for 2 five-second clips with sound).

Related APIs: text-to-video API · one-key AI media API · Sora API alternative · samples & prices.

Animate your first images on trial credit.

Pay strictly per finished second of video. Failed renders are refunded automatically.