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/price\
--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" }'
Price of POST /videos for the same body, without creating a job or charging. Computed with the same formula as the actual charge (resolution, duration, references).
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.