ApiframeApiframe Docs
Video Editing

Video Editing

Restyle, replace, or transform existing clips with a prompt.

The video editing endpoint takes an existing video and a text prompt, and returns a transformed clip — outfit swaps, background replacement, restyling (film grain, animation, color regrade), and other prompt-driven edits, while preserving subject identity and motion.

It lives on a dedicated route alongside video generation, with its own request shape and pricing.

EndpointDescription
POST /v2/videos/editRestyle, replace, or transform clips with a prompt (Wan 2.7 VideoEdit).

Looking to increase resolution or frame rate without changing the content? That's Video Upscale (POST /v2/videos/upscale), a separate endpoint — not this one.

Like generation, this endpoint returns immediately with a jobId, deducts credits at submission, emits the same webhook events, and refunds on failure.

Request fields

FieldTypeRequiredDescription
modelstringYesModel identifier — "wan-2.7-videoedit".
promptstringYesText describing the desired edit.
wan27VideoeditParamsobjectYesSource video and edit settings. See Wan 2.7 VideoEdit for every field.
webhookUrlstringNoURL to receive webhook notifications.
webhookEventsstring[]NoEvents to subscribe to: "progress", "completed", "failed".

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 models

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