How to Get Sora Clips Now That Sora Is Closed

Where Sora Stands on November 30, 2026 · What You Were Really Trying to Get From Sora · Prerequisites and Versions for the Replacement Workflow · Choose the Model That Replaces Sora for Your Clips · Steps 1 to 3: Pick a Route, Open an Account, Set Up the Project · Steps 4 and 5: Write a Sora-Style Prompt and Wire the Client · Steps 6 and 7: Poll the Job, Download the Clip, Check the File · Steps 8 and 9: Conform Size, Frame Rate, Color and Loudness · Steps 10 to 12: Add a Sting, Export Masters, Log the Cost · The Complete Working Project · Example Output: What a Good Run Looks Like · Six Common Pitfalls When Replacing Sora · Troubleshooting: Ten Failures and Their Fixes · Advanced Tips for Sora-Style Results · Questions creators ask
You cannot get Sora in November 2026. OpenAI closed the Sora web and app experiences on April 26, 2026, then shut down the Sora 2 models and the Videos API on September 24, 2026. When a creator asked in a developer community thread on November 20 whether the models would return, OpenAI Support answered that it had no information on if or when they would. So the useful version of how to get Sora is a different question: how do you get the same kind of clip from a model that still runs?
This tutorial answers that one. You will pick a current model, write a prompt that carries the camera, light and sound direction a Sora clip needed, call a generation API from a short Python script, and conform the result with FFmpeg so it drops straight into a 1080p timeline. If you only want a ranked shortlist of replacements, the Sora alternatives comparison covers that. This page is the hands-on version, with a working project at the end.
Plan on about an hour for the first run, most of it spent creating an account and waiting for renders. Prices and limits below come from the vendors’ own pages and documentation as of November 30, 2026. Where a figure appears on only one page, the text says so, and where no official figure exists, the text leaves the number out.
Where Sora Stands on November 30, 2026
Sora is closed on every route a reader could try. OpenAI’s help page says the web and app experiences were discontinued on April 26, 2026. Its API documentation says the Sora 2 models and the Videos API were shut down on September 24, 2026 and are no longer available, and it states that there is no one-to-one replacement API. That settles the invite code, waitlist and regional access questions in one line. No product is left to get into.
| Sora route | Status on Nov 30, 2026 | Closed on |
|---|---|---|
| Sora web experience | Discontinued | April 26, 2026 |
| Sora mobile app | Discontinued | April 26, 2026 |
| Sora 2 and Sora 2 Pro models | Shut down, no longer available | September 24, 2026 |
| Videos API (sora-2, sora-2-pro) | Shut down, no longer available | September 24, 2026 |
| Invite codes and waitlists | Nothing left to redeem | With the web and app closure |
| Direct OpenAI replacement API | None, per OpenAI’s documentation | Not applicable |
Two details are worth keeping. First, the old API prices are history. The model page listed sora-2 at $0.10 per generated second and sora-2-pro at $0.30 per second before the shutdown. A later API changelog entry reportedly added 20-second generations and 1080p output for Sora 2 Pro at $0.70 per second, but you cannot buy any of it now.
Second, the return rumors are only requests. The November 20 post asked OpenAI to bring back Sora 2 Pro or launch a Sora 3, and the support reply promised only to pass the feedback along. Treat that as a non-answer. Don’t build a channel schedule around a model that has no announced successor.
Older how-to pages and videos for Android installs and access from other countries still show up in search results. They describe routes that no longer exist. Any site, app or download that promises Sora access today is not OpenAI’s service, so keep your card number and your OpenAI login out of it.
The rest of this page treats Sora as a spec to meet instead of a product to find. A spec can be written down, matched against current models, and checked with a render. That is a more durable skill than hunting for a door that has been bricked up, and it carries over to whatever model you use next year.
What You Were Really Trying to Get From Sora
People search for Sora because they want a short, cinematic, prompt-driven clip they can drop into a video. Break that wish into parts and each part has a current answer. The parts are clip length, resolution, frame rate, aspect ratio, sound, subject consistency across shots, and cost per second. Write your own numbers for each before you pick a tool.
Here is the checklist this tutorial uses. Copy it into a notes file and fill it in for your project, because the answers decide which model you open in the next section.
- Length: how many seconds of one continuous shot you need. Most intros and B-roll inserts need 5 to 10 seconds. Longer story beats need a model that can hold a shot for 20 to 30 seconds.
- Resolution: 1080p is the working standard for YouTube and streaming. 4K only matters if your timeline is 4K or you plan to crop in.
- Frame rate: match your timeline. Mixing a 30 fps clip into a 24 fps project creates judder unless you conform it.
- Aspect ratio: 16:9 for YouTube and stream intros, 9:16 for Shorts, Reels and TikTok. Generate in the target ratio instead of cropping afterward.
- Sound: decide whether the model’s own audio is usable or whether you will lay music and effects over a silent clip.
- Consistency: whether the same character or logo has to appear in several clips. That points to image-to-video or reference inputs.
- Budget: price per second times the number of attempts. Count on several attempts per usable clip.
A word on that last line. AI video generation is a draw, not a render. Even a good prompt returns a clip with a warped hand, a drifting logo or a camera move you did not ask for. Budget for three to five takes per keeper and you will not be surprised by the bill. The cost table in the next section turns per-second prices into per-clip prices so you can do that sum before you pay.
One more framing point. Sora set the expectation that a single text prompt could produce a finished, directed shot. Current models can do that, but the result improves when you give them the structure a director would: who is in frame, what moves, where the camera sits, how the light behaves and what the audience hears. Steps 4 and 5 turn that structure into a reusable prompt template, which is the closest thing to carrying your Sora habits forward.
Prerequisites and Versions for the Replacement Workflow
You need four things on the machine and one thing in your wallet. None of them is exotic, and everything below runs on Windows, macOS or Linux.

- Python 3.10 or newer. The script uses f-strings, pathlib and argparse only.
- The requests library, version 2.31 or newer. It handles the HTTP calls and file download.
- A recent FFmpeg build, with ffprobe. The build must include libx264 and the AAC encoder. If you plan to convert HDR clips to standard range, the build also needs libzimg for the zscale filter. Most full builds include it.
- A terminal and a text editor. Any editor works. Keep prompt files as plain UTF-8 text.
- An account with credits on one generation service, plus an API key if you take the script route. The web route needs only the account.
- About 2 GB of free disk space for raw clips, conformed masters and the log.
Check the tools first. The commands below print the version of each one. If any command is not found, install it before you continue, because every later step depends on them.
python3 --version
python3 -m pip --version
ffmpeg -version | head -n 1
ffprobe -version | head -n 1
ffmpeg -hide_banner -filters | grep -E "zscale|loudnorm"
The last line matters for two later steps. It should list both zscale and loudnorm. If zscale is missing, you can still follow the tutorial, but you will have to ask the model for standard-range output instead of tone-mapping HDR yourself. Windows users can run the same checks in PowerShell by swapping the pipe and grep for Select-String.
On pricing, expect to load a small amount of money first. Generation is billed per second of output, and the API side of most services bills separately from the consumer web plan. The next section shows the per-second rates so you can size that first top-up. For a first test of a handful of 5 to 10 second clips, a single-digit dollar balance covers it on the cheaper models in the table.
Choose the Model That Replaces Sora for Your Clips
Four model lines are worth opening as of November 30, 2026. Kling 4.0 is the newest Kling model and launched in October 2026. Google’s Veo page presents Veo 3.1 as its current video model. Runway’s site presents Gen-4.5 as its newest generator, and its developer platform also offers other makers’ models. MiniMax’s H3 family is the newest documented line from that company. The table prices the ones that publish a per-second rate on a vendor page.
| Model | Where to get it | Price per second | Cost of a 10 s clip |
|---|---|---|---|
| Sora 2 (shut down) | No longer available | $0.10 (former list price) | Not purchasable |
| Sora 2 Pro (shut down) | No longer available | $0.30 (former list price) | Not purchasable |
| Kling 4.0, 720p | Runway developer API | $0.157 | $1.57 |
| Kling 4.0, 1080p | Runway developer API | $0.235 | Not listed |
| Kling 4.0, 4K | Runway developer API | $0.549 | Not listed |
| MiniMax H3, 768P | MiniMax API | $0.08 | $0.80 |
| MiniMax H3, 2K | MiniMax API | $0.13 | $1.30 |
| MiniMax H3-Highspeed, 768P | MiniMax API | $0.06 | $0.60 |
Read the table with three caveats. The Kling 4.0 rates are what Runway’s developer pricing lists, and Runway ran a 20% promotional discount on Kling 4.0 that ended at 23:59 UTC today, so the rates above are the regular prices. Veo 3.1 is missing from the price column on purpose, because the pages reviewed did not include an official Google price list. Third-party pages report figures, but they are not the vendor. Check Google’s own pricing page before you budget a Veo job.
The third caveat concerns length. Kling’s own API update log says Kling 4.0 generates native video up to 30 seconds and the lighter Kling 4.0 Flash up to 20 seconds. The same log says Kling 4.0 added 4K output and HDR output at both 1080p and 4K on November 19. Those are the numbers to design around, since a 30-second single shot is longer than most creators need and well past what a 10-second budget clip delivers.
Web route: no code, fastest start
If you need fewer than ten clips, skip the script. Open Runway’s web app, Kling’s web app, or Google Flow or Gemini for Veo 3.1, type the prompt from Step 4, and download the file. Google’s Veo page names Gemini and Flow as the places to try Veo 3.1, and reportedly lists a lighter Veo 3.1 Lite through the Gemini API, Google AI Studio and Google Cloud. One scheduling note: Google Flow is reported to retire Veo 3.1 Fast and Quality on December 5, 2026, so confirm in the app which Veo options you still see before you commit to a project.
Google DeepMind’s Gemini Omni Flash model card is worth a read for one reason. It covers a November 2026 model that, according to Google, handles video editing as well as text-to-video, image-to-video and reference-to-video. That makes it a candidate when your job is changing an existing clip rather than starting from nothing.
API route: a script that repeats
Take the API route when you will make the same kind of clip again and again, such as a weekly intro variant or a batch of Shorts backgrounds. A script gives you a prompt file under version control, an automatic log of cost, and identical post-processing on every clip. The rest of this tutorial builds that script, using Kling 4.0’s documented endpoint paths as the default. The code is written so you can point it at another service by editing one JSON file.
Steps 1 to 3: Pick a Route, Open an Account, Set Up the Project
Step 1: Pick the route. Use the web app when you want a few clips today. Use the API when you want repeatable output. If you are unsure, start on the web, learn what prompts work, then move the winning prompt into the script. That order wastes the least money, because web trial and error is where most of your discarded takes will happen.
Step 2: Open the account and check what the credits buy. Plans change quickly, so read the live pricing page before you pay. On Runway’s web side, the Free plan costs $0 and, in current plan summaries, comes with a one-time 125 credits. Standard lists at $15 per month on a monthly bill, and Pro at $35. Runway’s pricing page converts credits into seconds. For example, 625 monthly credits equal 52 seconds of Gen-4.5 or 104 seconds of Gen-4 Turbo.
Watch the plan names if you used Runway before. Runway’s plan guide says Max replaces the Unlimited plan, and that anyone still on Unlimited moves to Max automatically on November 30, 2026. Today is that date, so check your billing page if you are a legacy subscriber. Also note that Runway states its web plans and its developer API credits are separate pools, so credits bought for one do not carry over to the other. The API needs its own balance.
Kling shows introductory offers on its own pricing pages. The pages reviewed disagreed on when those offers end, so read the date on the checkout screen rather than trusting any summary, including this one. For the API route, create a key in the provider’s developer console and note the base URL and the exact path for text-to-video. For Kling 4.0, its update log lists /text-to-video/kling-4.0, /image-to-video/kling-4.0 and /omni-video/kling-4.0.
Step 3: Set up the project folder. The commands below create a folder, a virtual environment and a place for prompts and output. They also read your API key from an environment variable so the key never lands in a file you might share or commit.
mkdir sora-replacement
cd sora-replacement
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install "requests>=2.31"
mkdir prompts out
export VIDEO_API_KEY="paste-your-key-here"
# Windows PowerShell: $env:VIDEO_API_KEY = "paste-your-key-here"
Add .venv, out and any file containing a key to your .gitignore if the folder is a repository. Generated clips are large, and a key pushed to a public repo gets scraped within minutes. If you ever paste a key into a chat or a screenshot, revoke it in the console and make a new one.
Steps 4 and 5: Write a Sora-Style Prompt and Wire the Client
Step 4: Write the prompt in five parts. A prompt that works across models names the subject, the action, the camera, the light and the sound, in that order, in plain sentences. Skip adjective piles like stunning, epic and cinematic. They add no instruction. Concrete nouns and verbs do more work. Name a lens feel (wide, long), a move (slow push-in, locked-off), a time of day and a palette.
Save the example below as prompts/intro.txt. It is written for a 10-second channel intro background and leaves the center of the frame empty, because you will place a logo or title there in your editor.
Subject: a small recording studio at night, a glass desk with a closed laptop and a single desk lamp, rain on the window behind it.
Action: the lamp flickers on, steam rises from a mug, and a slow reflection of city lights sweeps across the desk.
Camera: locked-off medium wide shot, then a slow push-in over 10 seconds. No handheld shake. Keep the center of the frame clear.
Light and look: warm tungsten lamp against cool blue window light, shallow depth of field, soft film grain, 24 frames per second feel.
Sound: low room tone, soft rain, one gentle lamp click at the start. No music and no speech.
Two habits improve results. First, say what must not happen, in plain words, such as no text in frame and no people. Models invent captions and logos unprompted, and a negative line often removes them. Second, change one thing per attempt. If you rewrite the subject, camera and light at once and the clip gets worse, you will not know which edit hurt.
Step 5: Wire the client. Different services use different field names for the task id, the status and the video URL. Instead of hard-coding one service, the script reads those names from a small JSON file. Create provider.json next to the script. The submit path below is Kling 4.0’s documented text-to-video path, and settings.aspect_ratio is the documented setting for ratio. Treat the other values as placeholders and replace them with the names in your provider’s current API reference before you spend credits.
{
"base_url": "https://YOUR-PROVIDER-API-HOST",
"submit_path": "/text-to-video/kling-4.0",
"status_path": "/tasks/{task_id}",
"payload": {
"duration": 10,
"settings": { "aspect_ratio": "16:9" }
},
"id_field": "task_id",
"state_field": "status",
"done_values": ["succeeded"],
"failed_values": ["failed", "cancelled"],
"video_url_field": "output.video_url",
"price_per_second": 0.235
}
The price_per_second value is what the log uses to estimate cost, so set it to the rate you chose in the table above. If you picked 1080p on Kling 4.0 through Runway, that is 0.235. The script multiplies it by the clip’s measured length, which keeps the estimate honest when a service returns a clip slightly shorter or longer than 10 seconds.
Steps 6 and 7: Poll the Job, Download the Clip, Check the File
Step 6: Poll the job. Video generation is asynchronous. You submit a prompt, the service returns a task id, and you ask for the status every few seconds until it reads done or failed. Polling every 10 seconds is polite and fast enough, since a 10-second clip takes longer than that to render on every service in this article. Put a ceiling on the loop, 900 seconds in the project below, so a stuck job cannot hang your terminal overnight.
Handle two cases in the loop. A failed status should stop the script and print the service’s own message, because that message usually names the cause, such as a moderation block or an invalid field. A 429 response from the submit call means you hit a rate limit, and the right answer is to wait and retry with a longer pause each time, not to hammer the endpoint.
Step 7: Download and inspect the clip. Download the file to out/ as soon as the URL appears. Many services serve results from expiring links, so a URL that works now may not work tomorrow. Then run ffprobe on the raw file before you do anything else. You want to know the real width, height, frame rate, pixel format, length and whether an audio track exists. The numbers the service advertised and the numbers in the file are not always the same.
ffprobe -v error \
-show_entries stream=codec_type,codec_name,width,height,r_frame_rate,pix_fmt,color_transfer \
-show_entries format=duration \
-of default=nw=1 out/raw_intro.mp4
Read three fields first. r_frame_rate tells you whether to conform to your timeline’s rate. color_transfer tells you whether the clip is HDR: a value of smpte2084 or arib-std-b67 means it is, and a plain standard clip shows bt709 or nothing. And the presence of a second stream with codec_type=audio tells you whether the model gave you sound. The project script reads these same fields and branches on them.
Keep the raw file untouched. Conform into a new file every time, so that if you change your mind about frame rate or loudness you can redo the job from the original instead of re-encoding an already compressed copy. Re-encoding a re-encode is how soft, blocky video happens.
Steps 8 and 9: Conform Size, Frame Rate, Color and Loudness
Step 8: Conform the picture. Generated clips rarely match your timeline exactly. Conforming means scaling to your canvas, locking the frame rate and forcing a pixel format every editor and platform accepts. The command below does all three, pads instead of stretching when the ratio differs, and writes H.264 at CRF 18 with the moov atom at the front so the file starts playing before it finishes loading.
ffmpeg -y -i out/raw_intro.mp4 \
-vf "scale=1920:1080:force_original_aspect_ratio=decrease:flags=lanczos,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,fps=24,format=yuv420p" \
-c:v libx264 -crf 18 -preset slow \
-c:a aac -b:a 192k -ar 48000 \
-movflags +faststart \
out/intro_16x9.mp4
If ffprobe reported an HDR transfer, plain scaling produces a washed-out, grey picture on standard displays, because the brightness values are mapped as if they were standard range. Tone-map first. The chain below converts to linear light, applies the Hable curve and returns to Rec. 709. Put it in front of the scale filter. It needs the zscale filter from libzimg, which is why the version check in the prerequisites listed it.
ffmpeg -y -i out/raw_intro_hdr.mp4 \
-vf "zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,scale=1920:1080:flags=lanczos,fps=24,format=yuv420p" \
-c:v libx264 -crf 18 -preset slow -c:a copy \
out/intro_16x9_sdr.mp4
The simpler fix is to avoid HDR when you do not need it. Kling’s log says HDR output is now available on the API, so if your request defaults to it, ask for standard range instead. Most YouTube and stream work is delivered in standard range, and a tone-map is one more step where color can drift.
Step 9: Fix the sound. If the model returned audio, normalise it so it sits near the level of the rest of your video. The loudnorm filter targets a stated integrated loudness. A target of -14 LUFS with a true-peak ceiling of -1.5 dB suits most online delivery. Add it to the command with -af "loudnorm=I=-14:TP=-1.5:LRA=11" and drop the -c:a copy shown above. If the clip has no audio and you still need a track so a later concat works, generate silence of the right format, and the project script does exactly that.
Treat the model’s audio as a draft. Ambient room tone and effects are often usable. Generated music and speech are less predictable, and when a clip carries voice you did not write, check what it says before you publish. For anything that matters, mute the generated track and build the mix in your editor, where you control the music license and the levels.
Steps 10 to 12: Add a Sting, Export Masters, Log the Cost
Step 10: Add a logo sting. A generated background clip is rarely the finished intro. You still need your name or logo. Place a short animated logo sting after the clip, or composite it over the empty center you left in the prompt. If you do not have one yet, a template-based animated logo intro gives you a 1080p sting to concatenate. The command below joins two conformed files with the concat filter, which re-encodes and so tolerates small differences in timestamps.
ffmpeg -y -i out/intro_16x9.mp4 -i sting_1080p24.mp4 \
-filter_complex "[0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a]" \
-map "[v]" -map "[a]" \
-c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k \
-movflags +faststart out/intro_16x9_final.mp4
The concat filter fails with a stream specifier error when one input has no audio. That is the most common reason this step breaks. Either give the silent file a silent track, as the script does, or switch to a video-only concat with a=0. Both inputs must also share size and frame rate, which is another reason to conform each clip before joining.
Step 11: Export the masters you need. Make one master per destination, and generate the vertical one natively instead of cropping the horizontal file. Cropping a 16:9 shot to 9:16 throws away roughly two thirds of the frame and often cuts the subject in half. Run the script again with a 9:16 ratio and a prompt that keeps the subject in the middle third.
Render settings
| Master | Resolution | Frame rate | Length | Export format |
|---|---|---|---|---|
| YouTube or stream intro (16:9) | 1920×1080 | 24 fps | 5 to 10 s | MP4, H.264 CRF 18, AAC 192 kbps |
| Vertical clip (9:16) | 1080×1920 | 24 or 30 fps | 5 to 10 s | MP4, H.264 CRF 18, AAC 192 kbps |
| Square clip (1:1) | 1080×1080 | 24 or 30 fps | 5 to 10 s | MP4, H.264 CRF 18, AAC 192 kbps |
| 4K timeline insert | 3840×2160 | Match timeline | As generated | MP4, H.264 or H.265, CRF 18 to 20 |
| Overlay with transparency | 1920×1080 | 30 fps | 3 to 6 s | WebM VP9 with alpha or ProRes 4444 (generated clips carry no alpha) |
The last row is a warning. AI video models output opaque frames, so a generated clip cannot be an overlay with a see-through background. If you need transparency, key the clip in your editor or use a template that renders with alpha. These figures are recommended working values rather than platform limits, so check each platform’s current upload spec before you ship a long file.
Step 12: Log every run. Append one row per clip to a CSV: time, task id, model path, measured length, estimated cost and output file. After two weeks that file tells you what a usable clip really costs on your prompts, including the failed takes, and it gives you a record when a vendor changes its price. The script below does this for you.
The Complete Working Project
This is the full script. It reads provider.json and your prompt file, submits the job, polls, downloads, probes, conforms (tone-mapping if the clip is HDR and adding silence if it has no audio), appends an optional sting, and logs the cost. Save it as generate.py beside provider.json. The field names in the JSON are the part you must verify against your provider’s reference, and everything after the download is plain FFmpeg that works the same on any service.
#!/usr/bin/env python3
import argparse, copy, csv, json, os, pathlib, subprocess, sys, time
import requests
ROOT = pathlib.Path(__file__).parent
CFG = json.loads((ROOT / "provider.json").read_text())
HEADERS = {
"Authorization": "Bearer " + os.environ["VIDEO_API_KEY"],
"Content-Type": "application/json",
}
OUT = ROOT / "out"
OUT.mkdir(exist_ok=True)
SIZES = {"16:9": (1920, 1080), "9:16": (1080, 1920), "1:1": (1080, 1080)}
def dig(obj, dotted):
for part in dotted.split("."):
obj = obj[part]
return obj
def call(method, url, **kw):
for attempt in range(5):
r = requests.request(method, url, headers=HEADERS, timeout=60, **kw)
if r.status_code == 429:
wait = 10 * (attempt + 1)
print(" rate limited, waiting %d s" % wait)
time.sleep(wait)
continue
r.raise_for_status()
return r
raise RuntimeError("still rate limited after 5 tries")
def submit(prompt, ratio):
body = copy.deepcopy(CFG["payload"])
body["prompt"] = prompt
body.setdefault("settings", {})["aspect_ratio"] = ratio
r = call("POST", CFG["base_url"] + CFG["submit_path"], json=body)
return dig(r.json(), CFG["id_field"])
def wait_for(task_id, every=10, limit=900):
url = CFG["base_url"] + CFG["status_path"].format(task_id=task_id)
started = time.time()
while time.time() - started < limit:
data = call("GET", url).json()
state = dig(data, CFG["state_field"])
print(" %4ds %s" % (time.time() - started, state))
if state in CFG["done_values"]:
return dig(data, CFG["video_url_field"])
if state in CFG["failed_values"]:
raise RuntimeError("generation failed: " + json.dumps(data)[:400])
time.sleep(every)
raise TimeoutError("no result after %d seconds" % limit)
def download(url, dest):
with requests.get(url, stream=True, timeout=120) as r:
r.raise_for_status()
with open(dest, "wb") as f:
for chunk in r.iter_content(1 << 20):
f.write(chunk)
def probe(path):
cmd = ["ffprobe", "-v", "error", "-show_streams", "-show_format",
"-of", "json", str(path)]
info = json.loads(subprocess.run(cmd, capture_output=True, text=True,
check=True).stdout)
video = next(s for s in info["streams"] if s["codec_type"] == "video")
audio = any(s["codec_type"] == "audio" for s in info["streams"])
hdr = video.get("color_transfer") in ("smpte2084", "arib-std-b67")
return {"duration": float(info["format"]["duration"]), "audio": audio,
"hdr": hdr, "fps": video.get("r_frame_rate"),
"size": "%sx%s" % (video["width"], video["height"])}
def conform(src, dst, size, fps=24, hdr=False, silent=False):
w, h = size
chain = []
if hdr:
chain.append("zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,"
"tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv")
chain.append("scale=%d:%d:force_original_aspect_ratio=decrease:flags=lanczos" % (w, h))
chain.append("pad=%d:%d:(ow-iw)/2:(oh-ih)/2" % (w, h))
chain += ["fps=%d" % fps, "format=yuv420p"]
cmd = ["ffmpeg", "-y", "-loglevel", "error", "-i", str(src)]
if silent:
cmd += ["-f", "lavfi", "-i",
"anullsrc=channel_layout=stereo:sample_rate=48000", "-shortest"]
cmd += ["-vf", ",".join(chain)]
if not silent:
cmd += ["-af", "loudnorm=I=-14:TP=-1.5:LRA=11"]
cmd += ["-c:v", "libx264", "-crf", "18", "-preset", "slow",
"-c:a", "aac", "-b:a", "192k", "-ar", "48000",
"-movflags", "+faststart", str(dst)]
subprocess.run(cmd, check=True)
def join(first, second, dst):
cmd = ["ffmpeg", "-y", "-loglevel", "error", "-i", str(first), "-i", str(second),
"-filter_complex", "[0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a]",
"-map", "[v]", "-map", "[a]", "-c:v", "libx264", "-crf", "18",
"-preset", "slow", "-c:a", "aac", "-b:a", "192k",
"-movflags", "+faststart", str(dst)]
subprocess.run(cmd, check=True)
def main():
ap = argparse.ArgumentParser()
ap.add_argument("prompt_file")
ap.add_argument("--ratio", default="16:9", choices=sorted(SIZES))
ap.add_argument("--fps", type=int, default=24)
ap.add_argument("--sting", help="optional conformed sting to append")
args = ap.parse_args()
name = pathlib.Path(args.prompt_file).stem
tag = args.ratio.replace(":", "x")
prompt = pathlib.Path(args.prompt_file).read_text().strip()
task_id = submit(prompt, args.ratio)
print("submitted task", task_id)
url = wait_for(task_id)
raw = OUT / ("raw_%s_%s.mp4" % (name, tag))
download(url, raw)
meta = probe(raw)
cost = meta["duration"] * CFG["price_per_second"]
print("raw clip: %s, %s, %.2f s, audio %s, hdr %s"
% (meta["size"], meta["fps"], meta["duration"], meta["audio"], meta["hdr"]))
master = OUT / ("%s_%s.mp4" % (name, tag))
conform(raw, master, SIZES[args.ratio], args.fps, meta["hdr"], not meta["audio"])
final = master
if args.sting:
final = OUT / ("%s_%s_final.mp4" % (name, tag))
join(master, args.sting, final)
print("final:", final)
log = OUT / "log.csv"
new = not log.exists()
with open(log, "a", newline="") as f:
w = csv.writer(f)
if new:
w.writerow(["task_id", "path", "seconds", "est_cost_usd", "file"])
w.writerow([task_id, CFG["submit_path"], "%.2f" % meta["duration"],
"%.2f" % cost, final.name])
print("estimated cost: $%.2f, logged to %s" % (cost, log))
if __name__ == "__main__":
try:
main()
except Exception as exc:
print("error:", exc, file=sys.stderr)
sys.exit(1)
Run it with python3 generate.py prompts/intro.txt for the horizontal master, add --ratio 9:16 for the vertical one, and add --sting sting_1080p24.mp4 to append your logo clip. The sting must already match the master’s size and frame rate, and it needs an audio track. If your sting is silent, add a silent stereo track first. The conform function does that when you call it on the sting with silent=True, and the join step needs audio on both inputs.
Two design choices are worth explaining. The script never overwrites the raw file, so a bad conform costs you seconds and no credits. And it estimates cost from the measured clip length, not from the length you asked for, which keeps the log aligned with what a service actually billed you for when it trims or pads a clip.
From the Vipid archive: if you want a finished intro without any generation at all, the Vipid intro themes are original templates with their resolution, length and frame rate listed on each page, which also makes them a handy reference when you choose sting specs to match.
Example Output: What a Good Run Looks Like
The listing below shows the shape of a clean run so you can recognise one. The values are illustrative examples, not a recorded render. Your task id, timings and clip length will differ, and a service that returns 30 fps instead of 24 will show that in the probe line.
$ python3 generate.py prompts/intro.txt --sting sting_1080p24.mp4
submitted task tsk_8f31c2
0s queued
10s processing
20s processing
30s processing
40s succeeded
raw clip: 1920x1080, 30/1, 10.03 s, audio True, hdr False
final: out/intro_16x9_final.mp4
estimated cost: $2.36, logged to out/log.csv
$ cat out/log.csv
task_id,path,seconds,est_cost_usd,file
tsk_8f31c2,/text-to-video/kling-4.0,10.03,2.36,intro_16x9_final.mp4
Check four things in that output. The state sequence ends on your done value. The raw clip reports the size you asked for, and when it does not, the pad filter will add black bars, so look at the result. The estimated cost matches your price per second times the length. And the log gains exactly one row per clip.
Then verify the master itself. The probe below should show H.264 video at your target size and frame rate, a yuv420p pixel format, and an AAC audio stream at the sample rate your editor expects. If any of those differ, a later editor import may drop frames or refuse the file.
ffprobe -v error -select_streams v:0 \
-show_entries stream=codec_name,width,height,r_frame_rate,pix_fmt \
-of default=nw=1 out/intro_16x9_final.mp4
codec_name=h264
width=1920
height=1080
pix_fmt=yuv420p
r_frame_rate=24/1
Finally, watch the file all the way through with the sound on, once, before you import it. Look at the first and last second in particular. Generated clips sometimes open with a soft fade-in or end on a frame where the picture starts to melt, and trimming a half second off each end is often the cheapest fix available.
Six Common Pitfalls When Replacing Sora
- Chasing invite codes and fake apps. Sora’s web, app and API are all closed, so a code, a mirror site or a paid download has nothing to unlock. The risk is a stolen login or a charge for nothing. Go straight to a service that is open and lists a price.
- Mixing up web credits and API credits. Runway says its web plans and its developer API run on separate credit pools. You can hold a full web balance and still get a payment error from the API. Fund the one you use.
- Paying for 4K you will downscale. Kling 4.0 on Runway costs $0.235 per second at 1080p and $0.549 at 4K, more than double. If the clip lands in a 1080p edit, the extra pixels are wasted. Use 4K only when you plan to crop or deliver at 4K.
- Skipping the probe. Services advertise a length, a frame rate and a ratio, but the file in your hand is the truth. A 30 fps clip in a 24 fps timeline stutters, and an HDR clip scaled naively looks flat. One ffprobe call prevents both.
- Planning around a model that is about to change. Google Flow is reported to retire Veo 3.1 Fast and Quality on December 5, 2026, and Runway moves Unlimited subscribers to Max today. Plans and model lists shift month to month. Keep prompts in files and the provider in JSON so a switch takes minutes.
- Cropping horizontal clips for vertical. Taking the center of a 16:9 frame leaves roughly a third of the picture. Generate in 9:16 and write the prompt for a tall frame, with the subject centered and the sky and floor given room.
A seventh trap deserves a line, because it costs money fast. Do not run a batch before you have one good single clip. A loop that submits twenty prompts with a bad field name, a wrong ratio or a moderation-blocked word burns credits twenty times. Get one clean run, read the log, then scale.
Troubleshooting: Ten Failures and Their Fixes
- 401 or 403 on submit. The key is missing, expired or sent in the wrong header. Print the length of
os.environ.get("VIDEO_API_KEY")without showing the key, confirm the variable is set in the same terminal, and check whether the provider wants a Bearer token or a custom header. - An insufficient credits message. The API pool is empty even if the web plan is full. Add funds to the developer balance and rerun.
- 429 too many requests. You hit a rate limit. The script waits 10, 20, 30 seconds and so on, up to five tries. If it still fails, lower your concurrency to one job at a time.
- 404 on the status call. The
status_pathinprovider.jsondoes not match the provider’s route. Compare it with the task endpoint in the reference, and make sure the placeholder is written exactly as{task_id}. - KeyError on a field name. The JSON field names are the provider’s, not ours. Print the raw response once, then copy the real names for the id, the status and the video URL into the config.
- The job stays queued past 15 minutes. The script times out at 900 seconds. Check the provider’s status page, try a shorter clip or a lower resolution, and avoid peak hours if the queue is the bottleneck.
- Failed status with a moderation message. Prompts that name real people, brands or violent action can be blocked. Reword to describe the visual instead of the name, and remove anything that reads like a request to copy a person.
- The picture looks grey and flat after conforming. The clip was HDR and you scaled it as standard range. Rerun with the tone-map chain, or request standard-range output.
- The file will not play in QuickTime or an old TV app. Check
pix_fmt. Anything other than yuv420p, such as yuv444p, breaks many players. The conform step forces yuv420p, so rerun it on the raw file. - Concat fails with a stream specifier error, or the join stutters. One input has no audio or the frame rates differ. Conform both inputs to the same size and rate and give silent files a silent track before joining.
When none of these match, isolate the layer. Run the ffmpeg commands by hand on a raw file you already have to rule out the post-processing, then call the submit endpoint with a one-line curl to rule out the script. Whichever half works tells you where the fault lives. Save the failing response text, because support teams ask for the task id and the exact error.
Advanced Tips for Sora-Style Results
Start from an image. Image-to-video gives you control that text alone cannot. Make or shoot a still frame of your logo scene, character or set, then animate it. Kling 4.0 documents an image-to-video path alongside text-to-video, and an omni-reference path for reference-driven jobs. Starting from a fixed first frame also makes a run of clips look like one project, which a pure text prompt rarely does.
Use the cheap model to scout, the good one to finish. Prototype your prompt on a low-cost line, such as MiniMax H3-Highspeed at $0.06 per second for 768P, then spend the better rate on the final take. MiniMax’s pages also list a lighter H3-Lite from $0.025 per second. Ten cheap scouting clips cost less than one 4K take, and they tell you which prompt deserves the money.
Build a fallback list. Keep two providers in separate JSON files, provider.kling.json and provider.other.json, and add a --provider flag that picks the file, which is a two-line change to the config line. When one service has an outage or a price change, you switch with one argument. That is the real lesson of the Sora shutdown, which closed the web and app on April 26 and the API five months later on September 24.
Generate short, then cut together. A tight 5 to 8 second shot with one clear action usually holds together better than a long shot that has to keep a subject stable. If you need 20 seconds, cut two or three good shots together with a dissolve instead of asking one generation to run that long. The 30-second native limit on Kling 4.0 is a ceiling, not a recommendation.
Finish in a real editor. Use the generated clip as one layer. Add your title, a lower third and your music in a timeline, and grade the clip to match the rest of the footage. The AI video generators category collects the other model write-ups on this site, which helps if you are comparing a second service for the fallback slot. And keep every prompt file next to the exported master, so you can reproduce or revise a clip months later.
Questions creators ask
Is there still a way to get Sora? No. OpenAI discontinued the Sora web and app experiences on April 26, 2026 and shut down the Sora 2 models and Videos API on September 24, 2026. Its documentation says there is no one-to-one replacement API. Invite codes, waitlists and country workarounds have nothing left to unlock, so use a current model instead.
Will Sora come back? OpenAI has not said so. On November 20, 2026, OpenAI Support answered a community request for Sora 2 Pro or a Sora 3 by saying it had no information on whether or when its video models would return. A request from users is not an announcement, so don’t plan around a return.
What is the closest current model to Sora? There is no single match, but the main options are Kling 4.0, Google’s Veo 3.1 and Runway’s Gen-4.5. Kling 4.0 is the newest Kling model and launched in October 2026. Google’s Veo page presents Veo 3.1 as its current Veo generation. Pick by the length, resolution, sound and price your clip needs.
How much does a clip cost? It depends on model and resolution. Runway’s developer pricing lists Kling 4.0 at $0.157 per second at 720p, $0.235 at 1080p and $0.549 at 4K, so a 10-second clip costs ten times the per-second rate for each attempt. Runway also lists MiniMax H3 Max at $0.08 per second for a 768p clip. Multiply by several attempts per keeper.
Can I try this for free? Partly. Runway’s Free plan costs $0 and, in current plan summaries, includes a one-time 125 credits, which is enough for a few short tests but not a project. Kling also shows introductory offers on its pricing pages, and those terms change often, so read the checkout screen before you pay.
Do I need the Python script? No. For a handful of clips, the web apps are quicker. The script pays off when you repeat the same job, because it applies identical FFmpeg settings every time and logs the cost of each clip.
Why conform the clip instead of importing it as is? Because the delivered file may not match your timeline. Frame rate, pixel format and HDR flags differ between services, and a mismatch shows up as judder, grey color or a file that will not play. Conforming once at the start fixes all three before they reach your edit.
More from the Vipid blog
- Image to Video AI Free [2026]: Kling 4.0 vs Veo 3.1
- Free AI Video Generator [2026]: 6 Tiers, 50 to 800 Credits
- Kling AI Pricing [2026]: Runway $0.10 to $0.29/sec
- Best AI Video Generators 2026: 8 Ranked by Output
- YouTube Video Size [2026]: 16:9 vs 9:16 vs 1:1 vs 4:5
- Vipid intro maker template-based intros, no prompt needed
- Logo Design animated logo intro from your logo file
- Promo product promo theme
- Sample videos finished Vipid intros
Lena Marsh
Lena Marsh is the AI Video Editor at Vipid, covering AI video generators and the platform and software news that changes how creators render, upload and stream. She judges every model by its output — clip length, resolution, frame rate, watermark and cost — rather than by announcements, and runs Vipid’s news radar across the official YouTube, Apple, Adobe, Blackmagic, OBS, OpenAI and Google sources.


