Developer Migration Guide · Discontinued Sora API (Sept 24, 2026)
OpenAI discontinued the Sora API on September 24, 2026. Swap your broken video call to POST https://api.legit2compute.com/jobs — text-to-video and image-to-video with synced sound at $0.07/sec, automatic failure refunds, and zero subscription.
POST https://api.legit2compute.com/jobs (pipeline: "video_t2v" or "video_i2v"), poll GET /jobs/<job_id> every 10–15 seconds until completed, and download the MP4 with sound from GET /jobs/<job_id>/download. Signing up with Discord, Google, GitHub or Twitch includes $1 of trial credit (enough for 2 five-second clips with sound).| Step | Old Sora API | legit2compute API |
|---|---|---|
| Auth header | Authorization: Bearer $OPENAI_API_KEY | x-api-key: $L2C_API_KEY |
| Submit text-to-video | POST /v1/videos | POST /jobs with "pipeline": "video_t2v" |
| Submit image-to-video | Reference image input | POST /jobs with "pipeline": "video_i2v" + "inputImage": "https://..." |
| Dimensions & length | Aspect / duration parameters | width × height (1280×704, 704×1280, 960×960) & seconds (5, 10 or 15) |
| Poll & download | Poll job status → fetch MP4 | GET /jobs/<job_id> → GET /jobs/<job_id>/download |
| Failed renders | Error handling per provider | Credits reserved on submit and refunded automatically on failure |
import os, time, requests
API = "https://api.legit2compute.com"
H = {"x-api-key": os.environ["L2C_API_KEY"]}
def generate_video(prompt, seconds=5, aspect="9:16", image_url=None, private=False):
dims = {"16:9": (1280, 704), "9:16": (704, 1280), "1:1": (960, 960)}[aspect]
body = {
"pipeline": "video_i2v" if image_url else "video_t2v",
"inputData": {"prompt": prompt, "width": dims[0], "height": dims[1], "seconds": seconds},
}
if image_url:
body["inputImage"] = image_url
if private:
body["private"] = True
job_id = requests.post(f"{API}/jobs", headers=H, json=body, timeout=30).json()["job"]["job_id"]
while True:
job = requests.get(f"{API}/jobs/{job_id}", headers=H, timeout=30).json()["job"]
if job["status"] == "completed":
return requests.get(f"{API}/jobs/{job_id}/download", headers=H, timeout=120).content
if job["status"] in ("failed", "cancelled", "validation_failed"):
raise RuntimeError(f"Job {job_id} ended with {job['status']} (credits refunded)")
time.sleep(12)const API = "https://api.legit2compute.com";
const H = { "x-api-key": process.env.L2C_API_KEY, "content-type": "application/json" };
export async function generateVideo({ prompt, seconds = 5, width = 1280, height = 704, imageUrl }) {
const sub = await fetch(`${API}/jobs`, {
method: "POST", headers: H,
body: JSON.stringify({
pipeline: imageUrl ? "video_i2v" : "video_t2v",
...(imageUrl ? { inputImage: imageUrl } : {}),
inputData: { prompt, width, height, seconds },
}),
}).then((r) => r.json());
const id = sub.job.job_id;
for (;;) {
const { job } = await fetch(`${API}/jobs/${id}`, { headers: H }).then((r) => r.json());
if (job.status === "completed") {
return Buffer.from(await (await fetch(`${API}/jobs/${id}/download`, { headers: H })).arrayBuffer());
}
if (["failed", "cancelled", "validation_failed"].includes(job.status)) {
throw new Error(`Job ${id}: ${job.status} (credits refunded)`);
}
await new Promise((r) => setTimeout(r, 12000));
}
}Need a no-code automation? Use the same key in our media API, agent skill, or MCP server. Looking for a browser UI instead? Try legit2cloud.
Usually under 5 minutes. You swap one POST endpoint (/jobs), poll GET /jobs/
Usually only light tuning. Write one continuous shot in this order: what happens, motion, subject and setting, one camera move, lighting, and the exact audio cue (spoken lines in quotes + ambience).
Treat a transient 5xx or timeout on GET /jobs/
Yes. Pass "private": true on the POST /jobs payload to run strictly on machines we own and operate (2× standard per-second rate).
Yes — we ship tested n8n templates for text-to-video-with-sound, product-photo-to-video-ad, voiceovers, images and songs on the same API key.
More: Sora API alternative · Sora API pricing alternative · text-to-video API · image-to-video API · security & private tier.
Sora is a trademark of OpenAI. legit2compute is not affiliated with or endorsed by OpenAI.
Pay per finished second ($0.07/s), no subscription, failed renders refunded automatically.