Model API

P-Video 2 Pro

P-Video 2 Pro for video generation with optional input media.

Model id

Use this in every request
p-video-2-pro

Run it

Quote 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 red ceramic cup on a wooden table, soft morning light"
  }
}'

# 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 red ceramic cup on a wooden table, soft morning light"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for p-video-2-pro
NameTypeDescription
inputImagearray of image URLs
Optional: First frame for image-to-video.

Default: []

promptrequiredstring
Required: Describe the video to generate, or the motion to apply to the input image if provided
durationstring (enum)
Required: Length of the generated video

Default: 5

One of: 5, 10, 15

resolutionstring (enum)
Required: Output resolution. The video is always 24 fps and includes generated audio

Default: 768p

One of: 480p, 768p

modestring (enum)
Required: Generation recipe. Speed is faster and cheaper, quality gives better results

Default: quality

One of: speed, quality

aspectRatiostring (enum)
Required for text to video. Ignored when a reference image is provided, the image determines the canvas

Default: 16:9

One of: 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 1:1

inputImageLastarray of image URLs
Optional: Reference image for the last frame of the video

Default: []

promptUpsamplerstring (enum)
Optional. Expand the prompt before generation. Independent of the selected mode

Default: off

One of: off, turbo, max

seedstring
Optional. Random seed. Set for reproducible generation

Default: 0

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Pricing

  • 480p · speed · 5 s$0.16/ video
  • 480p · speed · 10 s$0.32/ video
  • 480p · speed · 15 s$0.48/ video
  • 480p · quality · 5 s$0.32/ video
  • 480p · quality · 10 s$0.64/ video
  • 480p · quality · 15 s$0.96/ video
  • 768p · speed · 5 s$0.28/ video
  • 768p · speed · 10 s$0.56/ video
  • 768p · speed · 15 s$0.84/ video
  • 768p · quality · 5 s$0.60/ video
  • 768p · quality · 10 s$1.19/ video
  • 768p · quality · 15 s$1.79/ video

The exact charge for your input comes from a quote. How charges settle