body: '{"model":"sora-2","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": "sora-2", "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
Sora-2 / sora-2-pro, or a Mixen model (kling-v3-pro, veo-3.1, seedance-2.0, happyhorse-1.1).