编辑已有视频
按说明编辑一条已有视频,创建异步任务。所选模型支持时,可以按顺序附上图片、视频和音频作为参考。
Request Body
application/jsonRequiredmetadataMetadataCaller-supplied metadata; ≤16 keys, key ≤64 chars, value ≤512 chars
callback_urlCallback UrlHTTPS URL Beatra will POST the final Task envelope to when the Task reaches a terminal state
callback_signing_key_idCallback Signing Key IdOptional standalone callback signing key. Omit for unsigned callback delivery; requires callback_url when provided.
modelModelUse auto for request-dependent selection from the ordered live candidates. A concrete model is evaluated exactly as requested and is never substituted.
"auto"Value in: "auto" | "wan3.0-video" | "wan3.0-video-prime" | "happyhorse-1.0-video-edit" | "wan2.7-videoedit" | "seedance-2" | "seedance-2-fast" | "seedance-2-mini" | "seedance-2.5"negative_promptNegative PromptContent or qualities to avoid when supported by the selected model.
durationDurationRequested output duration as integer seconds, or 'auto' when the selected model may choose its documented duration. Omit to use the selected model default.
aspect_ratioAspect RatioExplicit output ratio when the selected model accepts it. Omit for a declared model default, source-derived ratio, or fixed model behavior.
resolutionResolutionRequested model-defined output resolution tier. Omit to use the selected model's declared default; unsupported tiers are rejected rather than coerced.
seedSeedenhance_promptEnhance PromptAsk the selected model to rewrite the prompt before generation. Omit or use null to keep the prompt exactly as written.
watermarkWatermarkWhether generated video should include the model watermark.
generate_audioGenerate AudioWhether the selected model should generate synchronized audio.
web_searchWeb SearchWhether the selected model may use web search during generation.
return_last_frameReturn Last FrameWhether to return the generated video's last frame as an image artifact.
output_formatOutput FormatOptional output container. Omit or use mp4 for the existing default; models that advertise mov can return MOV without transcoding.
source_videoRequired video whose existing content will be edited.
instructionRequired instruction describing changes to the source video.
1Maximum length: 20000referencesReferencesOptional ordered image, video, or audio references. The selected model must support every supplied reference kind and count.
audio_settingAudio SettingOptional edit-audio policy: auto lets a compatible model choose, while origin requests preservation of source audio.
Header Parameters
X-Request-IdstringOptional client request id echoed in the response.
Idempotency-Key1Maximum length: 128AuthorizationBearer API key.
Task accepted
最后更新