Skip to main content

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.

Access is enabled on request

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​

modelBest forDurationresolutionYou can sendPrice per second
omev-video-litesimple scenes, low price4–12 s768ptext; text and a first frame$0.039
omev-videopeople, complex motion, camera movement, several actions4–15 s720p (default), 1080ptext; text and a first frame720p $0.08 · 1080p $0.135
omev-video-premiumpremium quality, clips up to 30 s4–30 s720p (default), 1080ptext; text and a first frame; text and up to 5 reference images720p $0.115 · 1080p $0.23, with or without reference images
omev-video-editreworking existing footage into new clips while keeping a character, product, or style2–10 s720p (default), 1080pa video and up to 3 reference images720p $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"
}'
FieldRequiredValues
modelyesomev-video-lite, omev-video, omev-video-premium, or omev-video-edit
promptyesthe description of the clip, up to 4,000 characters
durationyeswhole seconds within the model's range
aspect_rationoa frame shape the model accepts; defaults to 16:9
resolutionno720p or 1080p for omev-video, omev-video-premium, and omev-video-edit; omev-video-lite is always 768p
imagenoa public https URL for the first frame (omev-video-lite, omev-video, omev-video-premium); must be accessible without login
referencesnoup 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
videonoa public https URL for the footage to rework; omev-video-edit only, used together with references (up to 3)
idempotency_keyrecommendedyour 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.

statusMeaning
queued, preprocessingthe job has been accepted, and the description is being turned into a shot plan
generatingthe clip is being generated; the phase field shows queued (waiting for a slot), generating, or finalizing
processinga rare extra check on our side; keep polling
succeededcompleted; video.url is the download link
failedgeneration 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.codeMeaning
content_filterthe prompt or an image was rejected under the content policy; update the prompt or image and create a new job
invalid_requestthe parameters or image links could not be processed
timeoutgeneration took too long; create a new job
generation_failedgeneration 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, …}. For omev-video-premium with reference images, add &references=1.

Time and limits​

  • A 4-second clip usually takes about 2 minutes with omev-video-lite and omev-video-premium, and 10–20 seconds with omev-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​

CodeMeaningWhat to do
400a 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 parametercorrect the request using error.message
401missing or invalid API keycheck the key
402the key's balance is lower than the price of the cliptop up the balance
403the Video API is not enabled for the keycontact support
404unknown job, or a missing or invalid X-Omev-Video-Tokencheck the job ID and token
409the idempotency_key was already used with different parameters, or the requested combination is temporarily unavailableuse a new order number, or retry later if the combination is unavailable
4292 video jobs are already in progresswait until one of them finishes
5xxtemporary errorretry with the same idempotency_key after 10–30 seconds

See Errors and retries for the common error format.