ApiframeApiframe Docs
Video Editing

Video Editing

Upscale and enhance existing videos.

The video editing endpoints take an existing video and return an enhanced one. They live on dedicated routes alongside video generation, with their own request shape and pricing.

EndpointDescription
POST /v2/videos/upscaleUpscale and frame-interpolate footage with Topaz.
POST /v2/videos/editRestyle, replace, or transform clips with a prompt (Wan 2.7 VideoEdit).

These endpoints behave like generation — they return immediately with a jobId, deduct credits at submission, emit the same webhook events, and refund on failure.

Common request fields

FieldTypeRequiredDescription
modelstringYesThe model identifier (see per-endpoint pages).
webhookUrlstringNoURL to receive webhook notifications.
webhookEventsstring[]NoEvents to subscribe to: "progress", "completed", "failed".
promptstringEdit onlyText prompt describing the desired edit (required for /v2/videos/edit).
<modelParams>objectYesPer-model params object — name varies (topazVideoParams, wan27VideoeditParams).

Idempotency

Include an Idempotency-Key header to prevent duplicate jobs if the same request is sent twice.

Response

Status: 202 Accepted

{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "QUEUED"
}

Poll GET /v2/jobs/:id — the completed job carries videoUrl on result (CDN-hosted with the standard 90-day retention).

Available endpoints

Upscale (POST /v2/videos/upscale)

ModelIdentifierDescription
Topaz Video Upscale"topaz-video-upscale"Pro-grade video upscale and frame interpolation, up to 4K.

Edit (POST /v2/videos/edit)

ModelIdentifierDescription
Wan 2.7 VideoEdit"wan-2.7-videoedit"Prompt-driven restyle, outfit swap, background replacement on existing clips.

Error responses

StatusErrorMeaning
400Validation errorInvalid parameters — check details.
401UnauthorizedMissing or invalid API key.
402Insufficient creditsNot enough credits to run this model.
503Service unavailableJob queue is temporarily down.

On this page