Model API

Workflow Utilities Blend Video

FFMPEG Utility for Blending Videos

Model id

Use this in every request
workflow-utilities/blend-video

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": "workflow-utilities/blend-video",
  "input": {
    "top_video_url": "https://example.com/input.mp4",
    "bottom_video_url": "https://example.com/input.mp4"
  }
}'

# 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": "workflow-utilities/blend-video", "quote_id": "QUOTE_ID", "input": {"top_video_url":"https://example.com/input.mp4","bottom_video_url":"https://example.com/input.mp4"}}'

# 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 workflow-utilities/blend-video
NameTypeDescription
top_video_urlrequiredstring (URL)
URL of the top layer video
bottom_video_urlrequiredstring (URL)
URL of the bottom layer video
blend_modestring (enum)
Blend mode to use for combining the videos

Default: overlay

One of: addition, average, burn, darken, difference, divide, dodge, exclusion, grainextract, grainmerge, hardlight, lighten, multiply, negation, normal, overlay, phoenix, pinlight, reflect, screen, softlight, subtract, vividlight

opacitynumber
Opacity of the top layer (0.0-1.0)

Default: 1

shortestboolean
End output when the shortest input ends

Default: true

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

  • up to$1.43/ run

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