model field of POST /videos/generation. All models currently support text-to-video.
Models
Input fields
Any other field returns
400 invalid_parameter. The defaults are the cheapest options, so set seconds and definition explicitly when you need more.
Pricing
You pay per second of output video. The rate depends on the model and resolution: Cost = rate per second ×seconds
See current rates on the pricing page in the API console. Each job keeps the rate that applied when it was accepted, and cost.amount_usd on the job shows the exact charge.
Capping the cost
Setmax_cost_usd to the most you are willing to pay for a job, as a decimal string with up to six decimal places. If the job would cost more, the request fails with 400 max_cost_exceeded and you are not charged. This protects you from unexpected charges if prices change.
