Skip to content
Use cases

AI Product Video Generator API for E-commerce Catalogs

An AI product video generator by API: packshots in, short clips out for a whole catalog, the product kept exact, sound on or off, and the cost per SKU.

Updated 7 min read

An AI product video generator turns a product photo into a short clip: your packshot opens the shot, the camera or the light moves around it, and an MP4 comes back for a product page, a marketplace listing or an ad. On Frameport that is one request to POST /v1/videos/generations on Seedance 2.5, Veo 3.1 Fast, Frameport Motion 1 or Wan 3.0, with a five-second clip from $0.10: you see the price before the job starts and pay only for a clip that arrives.

This guide covers what a product clip needs, the request from a packshot, how to keep the product exact, scenes and camera moves, a script that runs a whole catalog overnight, and the cost per SKU.

What an AI product video generator needs from you

PartWhat to prepareIn the request
The productA sharp packshot: the product alone, label toward the camera, even lightreference_images, read as the first frame
The motionOne move: a turn, a push-in, light sliding across the surfaceprompt, which describes what moves, not the product
The shapeSquare for a product grid, vertical for stories, wide for a banneraspect_ratio
The lengthAs long as the move takes, on the model's gridduration
The soundRoom tone, or none if music goes on lateraudio

The packshot decides most of the result. A photo on a plain background, in focus, with nothing over the label, gives the model the exact product to start from. A busy photo, a steep angle or a hand across the logo leaves it guessing.

From packshot to clip in one request

All four models take a first frame. Send the packshot in reference_images and write the move, the camera and the sound; the frame already shows what the product is. Pick the aspect ratio closest to the photo's own shape.

# 1. Upload the packshot (or skip this and send an https URL)
curl "https://frameport.ai/v1/uploads?filename=bottle.png" \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: image/png" \
  --data-binary @bottle.png

# 2. The packshot is the first frame; the prompt says what moves
curl https://frameport.ai/v1/videos/generations \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "seedance-2-5",
    "prompt": "Slow push-in on the bottle from the first frame while soft light slides across the label, quiet studio room tone",
    "reference_images": ["upl_7Rk2PqV9wXm4Tn8Lc1BdZe"],
    "duration": 5,
    "resolution": "480p",
    "aspect_ratio": "1:1"
  }'

# 3. Read it until "status" is "succeeded", then download outputs[0].url
curl https://frameport.ai/v1/videos/generations/$GENERATION_ID \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY"
202 Accepted (abridged)
{
  "id": "gen_9sLq2VbX7mN4kR1tYc8WpE",
  "object": "generation",
  "type": "video",
  "model": "seedance-2-5",
  "status": "queued",
  "input": {
    "prompt": "Slow push-in on the bottle from the first frame while soft light slides across the label, quiet studio room tone",
    "duration": 5,
    "resolution": "480p",
    "aspect_ratio": "1:1",
    "audio": true,
    "reference_images": 1,
    "reference_mode": "frame",
    "end_image": false
  },
  "reserved_usd": 0.6,
  "cost_usd": null,
  "error": null
}

The upload id works in any request for 24 hours (uploads); a public https URL or one of your own image outputs (file_…) works as well. The image to video API guide compares the three ways a picture can steer a clip, model by model.

Keeping the product exact

Three fields set how closely a clip sticks to your photo:

  • A first frame. One picture in reference_images: the clip opens on your packshot and the model draws what follows. The smaller the move, the closer the product stays to the photo for the whole clip.
  • A last frame. end_image makes the clip land on a second picture. Send the same packshot again and the clip comes back to it, so it loops cleanly on a product page; send a photo of the back and it ends on the back.
  • Reference pictures. With reference_mode: "identity", one or more photos of the product (front, side, label) and a prompt that sets a new scene. More freedom, less exactness, and no end_image in this mode.
ModelLast frameIdentity referencesLengthsSound
Seedance 2.5YesUp to 44 to 30 secondsOn or off, same price
Veo 3.1 FastYesUp to 34, 6 or 8 secondsOn or off, priced apart
Frameport Motion 1YesUp to 4, at 768p and 1080p5 to 15 secondsOn or off, same price
Wan 3.0NoUp to 32 to 30 secondsOn or off, same price

The video docs spell out which pictures each model accepts and in which mode.

Habits that keep a label readable:

  • Name the product by where it comes from, "the bottle from the first frame", instead of describing it again in other words.
  • Say what must not move: "the label stays toward the camera", "the cap stays on".
  • One move per clip. A turn, a zoom and a pour in five seconds give the model three things to invent.
  • Keep hands out of the shot unless the clip is about handling the product.

Scenes and camera moves for product clips

A packshot on white makes a clip on white. For a lifestyle shot, make the scene as a still first, then turn that still into the clip:

  1. Ask Frameport Image 1 for the product in a scene, with the packshot as a reference picture: "the bottle from the picture on a marble counter in morning window light". It costs $0.025 an image, and the AI product photography API guide covers that step in detail.
  2. Send the still you keep as the clip's first frame by its file_… id: nothing to download or upload again.

In code the still is one call to POST /v1/images/generations, which the Python image generation guide walks through.

MoveWords that ask for it
Turntable"turns slowly on a turntable, a full rotation, the camera stays still"
Push-in"slow push-in toward the label"
Orbit"the camera circles the product at table height"
Light sweep"a band of soft light slides across the surface"
Reveal"the camera rises from the counter to reveal the product"

To settle the look on one SKU before a script runs the rest, try it in the Studio: the Product in a scene app makes the still, the Product turntable app turns one photo into a spin, and Copy as API call on a result gives you the request body to paste into your code. The Studio spends from the same balance as your key.

Running a catalog overnight

Put the catalog in a CSV, one row per SKU with its packshot URL:

skus.csv
sku,name,photo_url
BTL-001,steel water bottle,https://example.com/packshots/btl-001.png
MUG-014,ceramic mug,https://example.com/packshots/mug-014.png
LMP-203,brass desk lamp,https://example.com/packshots/lmp-203.png

The script below sends the SKUs in waves of ten, inside the workspace's limits (60 new requests a minute, 20 jobs in flight), then reads each wave until it settles and saves every clip under its SKU. Each request carries an Idempotency-Key made from the SKU, so a script restarted after a crash gets back the clips it already started instead of paying for them twice, and SKUs already on disk are skipped.

catalog_clips.py
import csv
import os
import time
import requests

API = "https://frameport.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}
WAVE = 10  # clips in flight at once, under the workspace's 20
os.makedirs("clips", exist_ok=True)


def body_for(row):
    return {
        "model": "fp-motion-1",
        "prompt": f"The {row['name']} from the first frame turns slowly on a turntable, a full rotation, "
                  "soft studio light, plain backdrop, the camera stays still",
        "reference_images": [row["photo_url"]],
        "end_image": row["photo_url"],  # land back on the packshot, so the clip loops
        "duration": 5,
        "resolution": "768p",
        "aspect_ratio": "1:1",
        "audio": False,
        "max_cost_usd": 0.3,
    }


def submit(row):
    """One POST per SKU: the Idempotency-Key replays the first answer for 24 hours."""
    while True:
        res = requests.post(f"{API}/videos/generations", json=body_for(row),
                            headers={**HEADERS, "Idempotency-Key": f"clip-{row['sku']}-v1"})
        busy = res.status_code == 409 and res.json()["error"]["code"] == "request_in_progress"
        if res.status_code == 429 or res.status_code >= 500 or busy:
            time.sleep(int(res.headers.get("Retry-After", "15")))
            continue
        return res.json()


with open("skus.csv", newline="", encoding="utf-8") as sheet:
    todo = [row for row in csv.DictReader(sheet) if not os.path.exists(f"clips/{row['sku']}.mp4")]

for start in range(0, len(todo), WAVE):
    wave = {}
    for row in todo[start:start + WAVE]:
        gen = submit(row)
        if gen.get("error"):
            print(row["sku"], "not charged:", gen["error"]["message"])
        else:
            wave[gen["id"]] = row
    while wave:
        time.sleep(10)
        for gen_id, row in list(wave.items()):
            gen = requests.get(f"{API}/generations/{gen_id}", headers=HEADERS).json()
            if gen["status"] in ("queued", "running"):
                continue
            del wave[gen_id]
            if gen["status"] != "succeeded":
                print(row["sku"], "failed, not charged:", gen["error"]["message"])
                continue
            with open(f"clips/{row['sku']}.mp4", "wb") as out:
                out.write(requests.get(gen["outputs"][0]["url"]).content)
            print(row["sku"], "saved, charged", gen["cost_usd"])

A clip that fails costs nothing and prints its reason. To try a failed SKU again within the day, change -v1 to -v2 in its key: the first key keeps answering with the first result for 24 hours. Files are not kept forever, so the script saves each clip as soon as it lands; copy them to your own storage. A shop that adds products all day can take a webhook for each finished clip instead of a loop that reads them.

Cost per SKU

ClipModelSettingPrice
Draft turnFrameport Motion 15 s, 480p$0.10
TurntableFrameport Motion 15 s, 768p$0.30
Sharper turnFrameport Motion 15 s, 1080p$0.40
Push-inSeedance 2.55 s, 720p$1.35
SilentVeo 3.1 Fast6 s, 720p, no sound$0.558
With soundVeo 3.1 Fast6 s, 1080p$0.84
Longer takeWan 3.010 s, 720p$1.20
Scene still firstFrameport Image 11 image$0.025

A catalog costs the price of its row times the number of SKUs, plus a scene still for each SKU that gets one. Leaving sound on adds nothing to the bill on Wan 3.0, Seedance 2.5 or Frameport Motion 1, while Veo 3.1 Fast charges extra for it, so a silent clip costs less there. A quote prices a row before anything runs, max_cost_usd refuses a request that would cost more than you meant, and pricing explains the balance and its holds.

What a clip from a product shot costs on each model is in image to video API pricing.

FAQ

Can an AI product video generator keep my product exactly as it is?

It keeps it closest when your packshot is the first frame and the move is small: the clip opens on your photo, and a slow turn or push-in gives the model little to invent. Sending the same photo as the last frame brings the clip back to it. Reference pictures in identity mode give more freedom and less exactness.

Which model should I pick for product videos?

Frameport Motion 1 for low-cost turns and loops with a first and a last frame, Seedance 2.5 for longer takes with sound, Veo 3.1 Fast for 1080p or 4K in 16:9 or 9:16, and Wan 3.0 for long clips that only need a first frame. Quote the same request on several and compare.

Is there a free AI product video generator?

Signing up, making a key and asking for quotes cost nothing, and neither does a clip that fails. A clip that arrives is paid from your prepaid balance at its listed price, starting at $0.02 for each second of video, and there is no subscription to cancel.

Can I make product videos without code?

Yes. In the Studio, the Product turntable app makes a spin from one photo, and the Video tab takes a first frame on any model and a last frame on those that support one, with the price shown on Generate. You can also try Seedance 2.5 online before you have an account.

How many product videos can run at once?

Each workspace can keep 20 jobs in flight and start up to 60 new ones a minute, whichever of its keys sends them. Past either limit, the API answers with a 429 error and a Retry-After header saying how long to wait, which the script above respects.

Start building.

Your API key is free. Top up from $10 when you are ready.