Text → Video
Generate a video from a text prompt. Select it with"mode": "text_to_video", or leave mode out and the inputs decide.
Required: prompt, duration_secondsOptional:
aspect_ratio, variant
Resolution tiers: 768p, 480p (send as tier).
Image → Video
Animate a required first frame, with an optional last frame to control the ending. The images set the canvas, so aspect ratio does not apply. Select it with"mode": "image_to_video", or leave mode out and the inputs decide.
Required: prompt, first_frame, duration_secondsOptional:
last_frame, variant
Resolution tiers: 768p, 480p (send as tier).
Reference inputs take asset ids from
POST /v1/uploads or an earlier output’s asset_id.
Prices and allowed values come from the live catalog; GET /v1/models/p-video-2-pro is always current.