Gemini Omni Flash 1.2
Text to video · Image to video · Video editing
Starting price $0.0433 / second
P-Video 2 Pro makes 5, 10 or 15 second clips with generated sound from a prompt, and can start from a first frame and end on a last frame you upload.
p-video-2-proQuote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "p-video-2-pro",
"input": {
"prompt": "A kite surfer races across choppy blue water, launches off a wave and lands in a spray of foam. Wind roars and the camera tracks from a boat alongside."
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "p-video-2-pro", "quote_id": "QUOTE_ID", "input": {"prompt":"A kite surfer races across choppy blue water, launches off a wave and lands in a spray of foam. Wind roars and the camera tracks from a boat alongside."}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
inputImage | array of image URLs | Optional: First frame for image-to-video. |
promptrequired | string | Required: Describe the video to generate, or the motion to apply to the input image if provided |
duration | string (enum) | Required: Length of the generated video |
resolution | string (enum) | Required: Output resolution. The video is always 24 fps and includes generated audio |
mode | string (enum) | Required: Generation recipe. Speed is faster and cheaper, quality gives better results |
aspectRatio | string (enum) | Required for text to video. Ignored when a reference image is provided, the image determines the canvas |
inputImageLast | array of image URLs | Optional: Reference image for the last frame of the video |
promptUpsampler | string (enum) | Optional. Expand the prompt before generation. Independent of the selected mode |
seed | string | Optional. Random seed. Set for reproducible generation |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
P-Video 2 Pro renders at 480p or 768p, always at 24 fps and always with sound. Without an image you choose from seven aspect ratios, from 16:9 to 9:16; with a first frame, the image sets the shape.
A mode switch picks between speed and quality, with quality as the default. An optional prompt upsampler, in turbo or max, expands your prompt before rendering, and a seed makes a result repeatable.
Watch frame continuity and listen for sound that conflicts with the scene.