POST /api/v1/generations
Start a video or image job and hold its credits, or with price_only, return the price and start nothing.
generate_video, generate_imageIdempotency-Keyheadertext, up to 255 characters. Optional.modelbodytext. Optional.kindbodyone of video, image. Optional.modebodytext. Required.promptbodytext, up to 5,000 characters. Default"".mediasbodylist of objects with role, media_id, up to 50. Default[].resolutionbodytext. Optional.durationbodywhole number, at least 1, or "auto". Optional.aspect_ratiobodytext. Optional.generate_audiobodytrue or false. Optional.countbodywhole number, at least 1. Optional.draftbodytrue or false. Optional.price_onlybodytrue or false. Defaultfalse.max_creditsbodywhole number, at least 0. Optional.project_idbodyID starting prj_. Optional.
Other model settings go at the top level too. Each model lists the settings and values it takes in GET /api/v1/models; any other name or value is refused with the allowed values.
Answer: { job, balance, request_id } or { price, balance, request_id }