Video generation
Video generation is asynchronous: you create a job, poll its status, then download the file. Every video model uses the same OpenAI-style endpoints:
| Step | Request |
|---|---|
| Create | POST /v1/videos |
| Status | GET /v1/videos/{id} |
| Download | GET /v1/videos/{id}/content (MP4) |
Quick example
Section titled “Quick example”import time, requests
API = "https://api.wraitherix.com/v1"H = {"Authorization": "Bearer YOUR_KEY"}
job = requests.post(f"{API}/videos", headers=H, json={ "model": "veo_3_1-fast", "prompt": "A red paper boat floating on a calm lake at sunrise, gentle camera pan", "seconds": "8", "size": "1280x720",}).json()
while True: status = requests.get(f"{API}/videos/{job['id']}", headers=H).json() if status["status"] in ("completed", "failed"): break time.sleep(15)
if status["status"] == "completed": video = requests.get(f"{API}/videos/{job['id']}/content", headers=H) open("boat.mp4", "wb").write(video.content)else: print(status.get("error"))curl https://api.wraitherix.com/v1/videos \ -H "Authorization: Bearer $WRAITHERIX_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"veo_3_1-fast","prompt":"A red paper boat on a calm lake","seconds":"8","size":"1280x720"}'# -> {"id":"task_...","object":"video","status":"queued","progress":0,...}
curl https://api.wraitherix.com/v1/videos/task_... -H "Authorization: Bearer $WRAITHERIX_KEY"curl -o boat.mp4 https://api.wraitherix.com/v1/videos/task_.../content -H "Authorization: Bearer $WRAITHERIX_KEY"status is queued, in_progress, completed or failed. A job usually takes
1–5 minutes. Download the file soon after it completes — finished videos are kept
for a limited time.
Models and parameters
Section titled “Models and parameters”| Model | seconds |
Quality options | Billed by |
|---|---|---|---|
veo_3_1-fast |
8 |
size: 1280x720, 720x1280; 720p with sound |
per video |
veo_3_1 |
8 |
size: as above |
per video |
kling-video-v4 |
5, 10 |
mode: std, pro; aspect_ratio: 16:9, 9:16, 1:1 |
per second × mode |
viduq3-pro |
5, 8 |
resolution: 720p, 1080p |
per video × resolution |
doubao-seedance-2-0-fast-260128 |
4–12 |
metadata.resolution: 480p, 720p; metadata.ratio: 16:9, 9:16, 1:1 |
per amount of video produced |
doubao-seedance-2-0-260128 |
4–12 |
metadata.resolution: 480p, 720p, 1080p; metadata.ratio as above |
per amount of video produced |
wan3.0-video |
5, 10 |
size: 832x480, 1280x720, 1920x1080 (and portrait variants) |
per second × resolution |
grok-imagine-video |
1–15 |
size: 854x480, 1280x720 |
per second × resolution |
Examples:
{"model": "kling-video-v4", "prompt": "...", "seconds": 5, "mode": "pro", "aspect_ratio": "9:16"}{"model": "viduq3-pro", "prompt": "...", "seconds": 5, "resolution": "1080p"}{"model": "doubao-seedance-2-0-fast-260128", "prompt": "...", "seconds": 4, "metadata": {"resolution": "480p", "ratio": "16:9"}}{"model": "wan3.0-video", "prompt": "...", "seconds": 5, "size": "1280x720"}{"model": "grok-imagine-video", "prompt": "...", "seconds": 6, "size": "854x480"}Image to video
Section titled “Image to video”Pass a starting frame as a public image URL in input_reference:
{"model": "kling-video-v4", "prompt": "The cat slowly turns its head", "seconds": 5, "input_reference": "https://example.com/cat.jpg"}Errors
Section titled “Errors”An invalid parameter (for example seconds: 7 for a model that accepts only 5
or 10) is rejected with HTTP 400 before anything is charged. A job that fails
during generation ends with status: "failed" and an error object, and the
reserved amount is refunded.
Content policy
Section titled “Content policy”Adult and sexual (NSFW) content is not allowed. Every generation request is
screened before it reaches the model; prompts asking for nudity, sexual acts,
erotic or fetish material, or “undress”-style edits are refused with
400 content_policy_violation and are not charged. Sexual content involving
minors, and intimate imagery of real people without consent, are banned outright.
Repeated violations can lead to key revocation and account suspension. Full text:
Terms of service, section 6A.