Developer API · Text to video with sound
Generate 5, 10 or 15 second MP4 clips with built-in audio from a single HTTP call. $0.07 a second in credits, no monthly subscription, automatic refunds on failed jobs, and one API key that also covers images, voice, music and open chat models.
https://api.legit2compute.com/jobs with "pipeline": "video_t2v", poll GET /jobs/<id>, and download the MP4 with sound at GET /jobs/<id>/download. $0.35 for a 5-second clip. Signing up with Discord, Google, GitHub or Twitch includes $1 of trial credit (enough for 2 five-second clips with sound).curl https://api.legit2compute.com/jobs \
-H "x-api-key: $L2C_API_KEY" \
-H "content-type: application/json" \
-d '{
"pipeline": "video_t2v",
"inputData": {
"prompt": "A red fox trotting through fresh snow at golden hour. Handheld tracking shot. Crisp snow crunch and quiet wind.",
"width": 704, "height": 1280, "seconds": 5
}
}'const API = "https://api.legit2compute.com";
const H = { "x-api-key": process.env.L2C_API_KEY, "content-type": "application/json" };
const { job } = await fetch(`${API}/jobs`, {
method: "POST", headers: H,
body: JSON.stringify({
pipeline: "video_t2v",
inputData: { prompt: "Rain falling on a neon-lit alley at night. Slow push-in. Rain and distant traffic.", width: 1280, height: 704, seconds: 5 }
})
}).then(r => r.json());
// Poll GET /jobs/${job.job_id} until job.status === "completed", then GET /jobs/${job.job_id}/downloadYes. Every clip renders with audio matched to the shot—ambience, sound effects, and spoken dialogue written in quotes—at no extra audio fee.
$0.07 per second ($0.35 for a 5-second clip, $1.05 for 15 seconds). Credits are reserved at submit and refunded automatically if a job fails. Signing up with Discord, Google, GitHub or Twitch includes $1 of trial credit (enough for 2 five-second clips with sound).
16:9 (1280 × 704), 9:16 vertical for Shorts/Reels/TikTok (704 × 1280), and 1:1 square (960 × 960), in 5, 10 or 15 second continuous shots.
Yes. Pass "private": true in the job body and the render runs only on servers we own and operate (at 2× price).
More video API pages: image-to-video API · Sora API alternative · Runway API alternative · Kling API alternative · video API cost calculator.
No subscription, no minimum spend, and failed jobs are refunded automatically.