Documentation/Integration guide/Cinematic image-to-video motion
Integration guide

Cinematic image-to-video motion

Synthesize fluid cinematic motion video from verified character scene assets on dedicated GPU clusters.

5 min read
•Updated October 21, 2026

Cinematic Video Engine Parameters

POST /v1/video/generations accepts image_asset_id, model_alias ('motion-v1': 25 cr), prompt, duration_seconds (5, 10, or 15), resolution ('480p', '720p', '1080p'), orientation ('portrait' or 'landscape'), aspect_ratio ('9:16', '16:9', '1:1'), fps (24 or 30), and include_audio (default: true). Use IMAGE_ASSET_ID in the example environment. Model availability and prices come from GET /v1/models.

Source Asset Authenticity Invariant

image_asset_id accepts a verified generation output asset ID or completed generation ID within the current project. The implementation also accepts accessible character IDs and character asset IDs. It resolves their stored reference or preview internally. Arbitrary image uploads and external URLs are rejected. Character access follows organization/public visibility rules; it does not enforce the same project filter as generation assets.

Asynchronous Queue & Output URLs

Video generation runs asynchronously on the Video Engine powered by Cinematic Video Engine. The endpoint returns HTTP 201 with job status 'queued'. Subscribe to generation.completed webhooks or poll GET /v1/video/generations/{id} until completed to receive the signed outputUrl.

Code Implementation

import os
import time
import requests

BASE = "https://api.apimarketplace.com"
headers = {"Authorization": "Bearer " + os.environ["API_KEY"]}

def call(method, path, **kwargs):
    response = requests.request(method, BASE + path, headers=headers, timeout=300, **kwargs)
    response.raise_for_status()
    return response.json() if response.content else None

def wait(path, success):
    deadline = time.monotonic() + 900
    while time.monotonic() < deadline:
        result = call("GET", path)
        if result["status"] == success:
            return result
        if result["status"] == "failed":
            raise RuntimeError(result.get("errorMessage") or "Generation failed")
        time.sleep(3)
    raise TimeoutError("Still pending; keep the returned ID and check later")

# Use a completed image generation ID, image asset ID, or an accessible ready character ID.
payload = {'image_asset_id': 'IMAGE_ASSET_ID',
 'model_alias': 'motion-v1',
 'prompt': 'Gentle camera movement and a natural smile',
 'duration_seconds': 5,
 'resolution': '720p',
 'aspect_ratio': '9:16',
 'fps': 24,
 'include_audio': True}
payload['image_asset_id'] = os.environ['IMAGE_ASSET_ID']
result = call('POST', '/v1/video/generations', json=payload)
print("Resource ID:", result["id"])
completed = wait('/v1/video/generations/' + result["id"], 'completed')
print(completed)