Video generation API
Describe a clip in plain words, choose a model, duration, and frame shape, and get back an MP4 file with a soundtrack. OmevAI plans the shots and camera movement from your description; you choose only what is listed below. The price is known before you start, and you pay only for a clip that is delivered.
The Video API is switched on per key. Write to support@omev.be to enable it. The same models are available in the web cabinet; see Video generation in the cabinet.
Video generation is asynchronous: create a job, check its status, and download the finished
file. All calls use the standard host https://llmapi.omev.be and your OmevAI API key.
Models and prices
model | Best for | Duration | resolution | You can send | Price per second |
|---|---|---|---|---|---|
omev-video-lite | simple scenes, low price | 4–12 s | 768p | text; text and a first frame | $0.039 |
omev-video | people, complex motion, camera movement, several actions | 4–15 s | 720p (default), 1080p | text; text and a first frame | 720p $0.08 · 1080p $0.135 |
omev-video-premium | premium quality, clips up to 30 s | 4–30 s | 720p (default), 1080p | text; text and a first frame; text and up to 5 reference images | 720p $0.115 · 1080p $0.23, with or without reference images |
omev-video-edit | reworking existing footage into new clips while keeping a character, product, or style | 2–10 s | 720p (default), 1080p | a video and up to 3 reference images | 720p $0.29 · 1080p $0.44 |
Supported frame shapes (aspect_ratio): omev-video-lite and omev-video-edit accept
16:9, 21:9, 4:3, 1:1, 3:4, and 9:16. omev-video and omev-video-premium
accept 16:9, 4:3, 1:1, 3:4, and 9:16.
The price of a clip is the price per second multiplied by the duration you order. An
8-second omev-video clip in 720p costs 8 × $0.08 = $0.64, and in 1080p it costs $1.08. An
8-second omev-video-premium clip in 720p costs 8 × $0.115 = $0.92, and in 1080p it costs
$1.84. A 5-second omev-video-edit rework in 720p costs 5 × $0.29 = $1.45.
1. Create a job
curl -sS https://llmapi.omev.be/v1/videos/generations \
-H "Authorization: Bearer $OMEV_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "omev-video",
"duration": 8,
"resolution": "720p",
"aspect_ratio": "9:16",
"prompt": "A ceramic mug on a wooden table in morning light, the camera slowly circles the mug",
"idempotency_key": "order-2026-10-12-0001"
}'
| Field | Required | Values |
|---|---|---|
model | yes | omev-video-lite, omev-video, omev-video-premium, or omev-video-edit |
prompt | yes | the description of the clip, up to 4,000 characters |
duration | yes | whole seconds within the model's range |
aspect_ratio | no | a frame shape the model accepts; defaults to 16:9 |
resolution | no | 720p or 1080p for omev-video, omev-video-premium, and omev-video-edit; omev-video-lite is always 768p |
image | no | a public https URL for the first frame (omev-video-lite, omev-video, omev-video-premium); must be accessible without login |
references | no | up to 5 public https links to reference images: a character, a product, a logo, or a style; omev-video-premium only, and not together with image |
video | no | a public https URL for the footage to rework; omev-video-edit only, used together with references (up to 3) |
idempotency_key | recommended | your own order number, up to 100 characters; repeating it returns the same job without charging again |
Instead of the body field, you can send the same value in the Idempotency-Key HTTP header.
seed, fps, steps, cfg, and provider are not accepted (400) because OmevAI chooses them.
The response is 202 with the job object:
{
"id": "vid_0f3c2a9e8b7d4c6a1e5f2b3c",
"object": "video.generation",
"model": "omev-video",
"status": "queued",
"duration": 8,
"aspect_ratio": "9:16",
"resolution": "720p",
"price_usd": 0.64,
"access_token": "…"
}
Before the job starts, the price is reserved on the key's balance. When the clip is
delivered, the reserved amount is charged; if generation fails, the reservation is released.
Save id and access_token: you need the token to check the job status and download the
file. If the response is lost, send the same request with the same idempotency_key to get
the same id and token.
2. Check the status
curl -sS https://llmapi.omev.be/v1/videos/generations/$ID \
-H "Authorization: Bearer $OMEV_API_KEY" \
-H "X-Omev-Video-Token: $TOKEN"
Without the token, or with another job's token, the API returns 404. Poll every 10–15 seconds.
status | Meaning |
|---|---|
queued, preprocessing | the job has been accepted, and the description is being turned into a shot plan |
generating | the clip is being generated; the phase field shows queued (waiting for a slot), generating, or finalizing |
processing | a rare extra check on our side; keep polling |
succeeded | completed; video.url is the download link |
failed | generation failed; error.code and error.message explain why (see the error codes below), and the reservation is released |
A failed job returns one of four stable error codes:
error.code | Meaning |
|---|---|
content_filter | the prompt or an image was rejected under the content policy; update the prompt or image and create a new job |
invalid_request | the parameters or image links could not be processed |
timeout | generation took too long; create a new job |
generation_failed | generation failed; create a new job |
3. Download the clip
curl -sS -L -o clip.mp4 https://llmapi.omev.be/v1/videos/generations/$ID/content \
-H "Authorization: Bearer $OMEV_API_KEY" \
-H "X-Omev-Video-Token: $TOKEN"
The response is the MP4 file with a soundtrack. Download it as soon as the job succeeds and save it to your own storage.
Full cycle in Python
import os, time, requests
BASE = "https://llmapi.omev.be"
auth = {"Authorization": f"Bearer {os.environ['OMEV_API_KEY']}"}
job = requests.post(f"{BASE}/v1/videos/generations", headers=auth, timeout=60, json={
"model": "omev-video-lite", "duration": 6, "aspect_ratio": "1:1",
"prompt": "A cup of hot coffee, steam rising, soft light",
"idempotency_key": "order-0002"}).json()
read = {**auth, "X-Omev-Video-Token": job["access_token"]}
while True:
status = requests.get(f"{BASE}/v1/videos/generations/{job['id']}", headers=read, timeout=60).json()
if status["status"] in ("succeeded", "failed"):
break
time.sleep(15)
if status["status"] == "succeeded":
clip = requests.get(f"{BASE}{status['video']['url']}", headers=read, timeout=600)
open("clip.mp4", "wb").write(clip.content)
else:
print(status["error"])
Free lookups
GET /v1/videos/models: returns the available models with their durations, resolutions, frame shapes, and prices per second.GET /v1/videos/price?model=omev-video&duration=8&resolution=1080p: returns the price of one clip, for example{"price_usd": 1.08, "per_second_usd": 0.135, …}. Foromev-video-premiumwith reference images, add&references=1.
Time and limits
- A 4-second clip usually takes about 2 minutes with
omev-video-liteandomev-video-premium, and 10–20 seconds withomev-video. Longer clips take longer. - An account can have up to 2 unfinished video jobs at a time; a third request returns
429. - Regenerating and rating a clip are available in the web cabinet. Through the API, create a new job for a new attempt.
- Requests that violate the content policy are rejected before any charge.
Errors
| Code | Meaning | What to do |
|---|---|---|
400 | a duration outside the model's range, an unsupported frame shape or resolution, a first frame combined with reference images, reference images for a model other than omev-video-premium or omev-video-edit, a video for a model other than omev-video-edit, or an unsupported parameter | correct the request using error.message |
401 | missing or invalid API key | check the key |
402 | the key's balance is lower than the price of the clip | top up the balance |
403 | the Video API is not enabled for the key | contact support |
404 | unknown job, or a missing or invalid X-Omev-Video-Token | check the job ID and token |
409 | the idempotency_key was already used with different parameters, or the requested combination is temporarily unavailable | use a new order number, or retry later if the combination is unavailable |
429 | 2 video jobs are already in progress | wait until one of them finishes |
5xx | temporary error | retry with the same idempotency_key after 10–30 seconds |
See Errors and retries for the common error format.