Video Generation
Turn a sentence or a photo into a video with sound through the OpenAI Videos API.
Video generation
POST https://freemodel.in/v1/videos
GET https://freemodel.in/v1/videos/{id}
GET https://freemodel.in/v1/videos/{id}/content
GET https://freemodel.in/v1/videos/models
Turn one sentence — or a photo plus a sentence — into a short video with sound through the OpenAI-compatible Videos API. It is the same engine as Video Studio in your dashboard, with the same models and the same prices.
- Models:
omni(Google Omni — 10 s, Full HD 1920×1080, sound) andveo-3.1(Veo 3.1 — 8 s, HD 1280×720, sound). Both make wide 16:9 or tall 9:16 videos and can animate a starting photo. The live list with prices is in GET /v1/videos/models. - Price: per finished video, paid from your account balance:
omni$0.19,veo-3.1$0.26. A video that fails or is refused costs nothing. - Works with: the official OpenAI SDKs (
client.videos), cURL and any tool that speaks the OpenAI Videos API.
Quick start
A video takes one to three minutes, so the API works in three steps: create, check, download.
# 1. create
curl https://freemodel.in/v1/videos \
-H "Authorization: Bearer fm_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "omni",
"prompt": "A golden retriever puppy running through a sunflower field at golden hour, slow tracking shot",
"size": "1280x720"
}'
{
"id": "vid_4b1e0c9f2a7d63e815", "object": "video", "model": "omni",
"status": "in_progress", "progress": 3, "seconds": "10", "size": "1280x720",
"usage": { "cost_usd": 0.19, "charged": false }
}
# 2. check every 10–15 seconds until status is "completed" (or "failed")
curl https://freemodel.in/v1/videos/vid_4b1e0c9f2a7d63e815 -H "Authorization: Bearer fm_your_key_here"
# 3. download the MP4
curl -L -o puppy.mp4 https://freemodel.in/v1/videos/vid_4b1e0c9f2a7d63e815/content -H "Authorization: Bearer fm_your_key_here"
List video models
No key needed. Returns every video model that is on right now.
curl https://freemodel.in/v1/videos/models
{
"object": "list",
"data": [{
"id": "omni", "object": "model", "type": "video", "name": "Google Omni",
"modes": ["text-to-video", "image-to-video"], "sizes": ["1920x1080", "1080x1920"], "seconds": 10, "resolution": "1080p", "audio": true,
"pricing": { "per_video_usd": 0.19 }, "typical_seconds_to_ready": 120
}, …]
}
Video models are listed here, not in /v1/models (that list is for chat models).
Request
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | What should happen in the video. 3–2000 characters. Describe the subject, the action and the camera. |
model | string | No | omni or veo-3.1. Defaults to the first available model. |
size | string | No | Shape: wide (1280x720, 1920x1080) or tall (720x1280, 1080x1920). Any size picks the closest shape; the resolution is fixed per model. Default wide. |
input_reference | file or string | No | A starting photo — the video begins with this picture and brings it to life. Send it as a multipart file, or as a base64 data URL (data:image/jpeg;base64,…). JPG, PNG or WEBP, up to 10 MB. Links to pictures on other sites are not accepted. |
seconds | string | No | Ignored — the length is fixed per model (omni 10 s, veo-3.1 8 s). |
Status values: queued → in_progress → completed or failed. A failed video carries error.code and error.message.
Photo to video
curl https://freemodel.in/v1/videos -H "Authorization: Bearer fm_your_key_here" -F model=omni -F size=1920x1080 -F input_reference=@car.jpg -F prompt="The car drives off along the coast road, the camera follows it"
Tip: use a photo with the same shape as the video (a tall photo for 9:16). Then check and download it exactly like a text video.
Python
import time
from openai import OpenAI
client = OpenAI(api_key="fm_your_key_here", base_url="https://freemodel.in/v1")
video = client.videos.create(model="veo-3.1", prompt="A paper boat sailing down a rainy street, close-up")
while video.status in ("queued", "in_progress"):
time.sleep(10)
video = client.videos.retrieve(video.id)
if video.status == "completed":
client.videos.download_content(video.id).write_to_file("boat.mp4")
else:
print("failed, nothing charged:", video.error)
Node.js
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({ apiKey: "fm_your_key_here", baseURL: "https://freemodel.in/v1" });
let video = await client.videos.create({ model: "omni", prompt: "Waves crashing on black volcanic rocks at sunset, drone shot" });
while (video.status === "queued" || video.status === "in_progress") {
await new Promise((r) => setTimeout(r, 10000));
video = await client.videos.retrieve(video.id);
}
if (video.status === "completed") {
const res = await client.videos.downloadContent(video.id);
fs.writeFileSync("waves.mp4", Buffer.from(await res.arrayBuffer()));
}
Billing
- When a video starts, its price is held from your balance. You are charged only when the finished video is stored on FreeModel. If it fails, is refused or is not a real video, the hold goes straight back — nothing is charged.
- Parallel requests can never spend the same money twice — if your balance covers one video, only one is started, however fast you send requests.
- Checking a video's status or downloading it again is free and never charges twice.
- If a video takes much longer than usual (15 minutes), the hold is returned. If the video still arrives later, it appears in your library and is charged then (never more than its price).
- Every create answer carries the price in
usage.cost_usdand the headersX-FreeModel-Cost-UsdandX-FreeModel-Request-Id;usage.chargedturnstruewhen the video is ready. - Your videos are also in Video Studio on any device.
Errors
Errors use the OpenAI shape: {"error": {"message", "type", "code"}}. The code is always one of ours:
| HTTP | code | Meaning |
|---|---|---|
| 400 | VID_REJECTED | The prompt cannot be turned into a video — change the wording. Not charged. |
| 401 | invalid_api_key | Missing, wrong or revoked API key. |
| 402 | VID_NO_BALANCE | Balance too low for this video — add balance. |
| 404 | VID_MODEL_OFF | Unknown or paused model. The message lists the models you can use. |
| 409 | VID_FAILED | Asked for the file of a video that is not ready yet, or that failed. |
| 422 | VID_PROMPT / VID_PROMPT_LONG / VID_REF | Prompt missing or longer than 2000 characters, or a starting photo that cannot be read. |
| 429 | VID_TOO_MANY / VID_DAILY_LIMIT | Too many videos in the making at once for your account, or the daily video limit was reached (resets at midnight IST). |
| 502 | VID_UNAVAILABLE / VID_FAILED | Video creation is temporarily unavailable. Not charged — retry shortly. |
| 503 | VID_BUSY | Very busy right now. Not charged — retry in a minute. |
Limits
- Up to 2 videos in the making at the same time per account.
- A video is usually ready in 1–3 minutes. Check its status every 10–15 seconds — asking more often does not make it faster.
- Prompts up to 2000 characters. Each model makes one fixed length (
omni10 s,veo-3.18 s) — asking for “a 30 second video” in the prompt does not make it longer.