body: '{"model":"veo-3.1-fast","prompt":"an astronaut cat riding a motorcycle at night","seconds":"4","size":"720x1280"}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
curl--requestPOST\
--urlhttps://api.mixen.ai/v1/videos\
--header'Authorization: Bearer <token>'\
--header'Content-Type: application/json'\
--data'{ "model": "veo-3.1-fast", "prompt": "an astronaut cat riding a motorcycle at night", "seconds": "4", "size": "720x1280" }'
OpenAI-compatible async video job. Returns a Video object (status=queued). Poll GET /videos/{id} until status=completed, then GET /videos/{id}/content for the mp4. Models: see GET /models (video), e.g. veo-3.1-fast, kling-v3-pro, seedance-2.5, happyhorse-1.1.
Hold the request until the job is terminal (or wait_timeout) and return the final job object. Default false — return the queued job immediately and poll.
boolean
wait_timeout
Wait Timeout
Seconds to wait when wait=true; on timeout the job is returned as is (still running).
integer
default: 60>= 1<= 300
model
Model
A catalog video model (veo-3.1-fast, kling-v3-pro, seedance-2.5, happyhorse-1.1, gemini-omni-1.1-flash). The sora-2 aliases are deprecated and redirect to veo-3.1-fast.