JSON-to-video & AI Video API
SamAutomation (Sam Automation) is a deterministic video API. Send media, voice-over, captions and timings in one JSON payload, get a finished MP4 back, and generate AI video and images on the same key.
POST /api/function/video-generation/mix-video
{
"media_list": [
{ "type": "video", "url": "https://cdn.app/clip1.mp4" },
{ "type": "image", "url": "https://cdn.app/logo.png" }
],
"voice_over_url": "https://cdn.app/vo.mp3",
"captions": [{ "start": 0, "end": 2, "words": "Ship faster" }],
"settings": { "aspect_ratio": "9:16" }
}
{
"model_id": "veo-3-1-lite",
"prompt": "Macro tracking shot of espresso pour, studio light",
"aspect_ratio": "9:16",
"duration": 8,
// Swap model_id to ship premium on the same endpoint
}
{
"method": "POST",
"url": "https://samautomation.work/api/function/video-generation/mix-video",
"headers": { "X-API-Key": "{{ $env.SAM_API_KEY }}" },
"callback_url": "https://n8n.yourstack.io/webhook/video-ready"
}
Sound on for the full motion edit.
16-second product tour
Watch the pipeline SamAutomation runs in production: JSON in, a render job queued, a finished MP4 out, plus optional AI footage and n8n callbacks when your stack needs them.
Core rendering engine
Deterministic, repeatable rendering built for backends and no-code pipelines, not a manual timeline editor. Coming from an editor? Read what a CapCut API can and cannot do, or start with JSON to video and text to video.
Mix video, images, voice-over and captions from one payload. Simple, loop and advanced renderers for every aspect ratio.
Submit async, receive a task id, poll progress or accept a webhook callback. Built to run unattended in production.
Save a verified layout as a template and feed it fresh data on each run. Browse the marketplace or publish your own.
Generate auto-captions from a transcript or script and burn styled subtitles directly into social videos.
# 1. Submit a render job POST /api/function/video-generation/mix-video # → { "task_id": "a1b2", "status": "queued" } # 2. Poll progress until finished GET /api/function/video-generation/progress/a1b2 # → { "status": "done", "video_url": ".../out.mp4" } # 3. Or push directly to your webhook "callback_url": "https://your.app/hooks/video"
AI video and image add-on
Same key, same job pattern. Generate clips and images across 62 video and 27 image models when you lack source footage, then composite them with JSON-to-video. Full model routing is documented on the AI video API page.
Describe a scene, get a clip.
xAI text and image to video.
Text, image or up to 4 timed keyframes to video of 1 to 15 seconds, sound always on.
Director-grade text/image-to-video, with a fast tier.
Film-grade text-to-video with readable on-screen text and native sound.
Cinematic text/image-to-video with synchronized native audio.
Animate a still or a first/last frame.
One photo in, a 3 to 16 second clip with sound out.
Image-to-video at standard and pro quality tiers.
Animate one image as the first frame, 1 to 15 seconds, with sound.
Steer with images, video, voice or character refs.
Any-input-to-video with voice and character consistency.
Fast multimodal clips of 3 to 15 seconds at up to 4K.
Transfer motion from a reference video onto your character.
Text or up to 15 reference items to video with native sound.
Cheaper Kling 4.0 tier: 720p clips of 3 to 20 seconds with native sound.
Multimodal video with native audio and multi-shot cuts.
Seedance 2.5 from ByteDance with native audio and reference inputs.
Talking avatars and re-synced footage.
Expressive talking avatar from one image and audio.
Talking video from one photo plus your speech audio.
Re-sync an existing video's lips to new target audio.
Edit, extend and transform existing clips.
Joint audio-video generation with best-in-class multilingual lip-sync.
Bring one existing clip to 1080p, 2K or 4K; ratio, frame rate and audio stay intact.
Director-grade suite: generate, reference and edit video.
All-in-one video creation and editing under one model.
Real AI model output generated through the API, not stock footage.
Model tiers and credit control
Most model families ship in tiers. Prototype on the Lite or Fast variant for a fraction of the credits, lock your prompt, then switch the model_id to the top tier for production. Same endpoint, same payload.
Prototype on Lite or Fast, then ship on the top tier.
Prototype on Lite or Fast, then ship on the top tier.
Prototype on Lite or Fast, then ship on the top tier.
Prototype on Lite or Fast, then ship on the top tier.
Every model's exact credit cost lives in GET /api/ai/models. Query it before calling so spend never surprises you.
Simple pricing
Every plan includes deterministic JSON-to-video rendering plus monthly AI credits. The credit count returned by the API is the exact amount you spend. Top up anytime.
n8n & AI Video Workflow Vault
Skip weeks of wiring webhooks, retry loops and API payloads from scratch. Pay once with card or iDEAL, get an automatic Stripe invoice and download the ZIP of import-ready JSON workflows immediately.
Valid n8n .json files with setup README and cURL examples included.
Pay-as-you-go Video API
Use the UlazAI Video API when your pipeline only needs generated footage. Call Veo 3, Kling, Sora and image-to-video over one REST API, funded by one-time credit packs from €3 or Creator Monthly at €9/mo for 1,000 credits.
Pay-as-you-go credits work across Video Studio, Image Studio and the REST API.
One key for deterministic JSON-to-video and 89 AI models. Documented, white-label, ready for your pipeline.