video bg remover

Create Video Bg Remover Task

post/api/v2/video-rm-charge/create

Query parameters

app_idstring required
guest_idstring required
{"stackTrail":"paths:/api/v2/video-rm-charge/create:post:parameters:2:schema","oasType":"schema","type":"unknown","title":"Item"}

Request body

origin_urlstring required

源视频地址

output_typestring

输出类型(兼容字段)

modelstring

模型类型

mask_inputstring nullable

basic/pro 模型所需绿幕视频 URL

typestring

输入文件类型(video/gif)

chroma_colorstring

pro-chroma 颜色

quality_presetstring

pro-chroma 质量预设

gif_fpsinteger

basic+gif 输出 gif 帧率

gif_max_colorsinteger

basic+gif 输出 gif 最大颜色数

duration_secondsnumber nullable

时长(秒),OSS 读取失败时必填

resolutionstring nullable

分辨率,如 1280x720 或 720p;OSS 读取失败时必填

output_formatstring

video-pro 输出格式:mov/webm/both

processing_fpsinteger

video-pro 处理帧率

max_resolutioninteger

video-pro 最长边最大分辨率

backgroundstring

video-pro 背景设置

edge_cleanupstring

video-pro 边缘清理强度

allowed_secondsnumber

video-pro 允许处理秒数,并按该秒数计费

use_fp16boolean

video-pro 是否使用 fp16

keep_aliveboolean

video-pro 是否保持服务存活

disable_safety_checkerboolean

gif-pro 是否禁用安全检查

Response

Successful Response

{"stackTrail":"paths:/api/v2/video-rm-charge/create:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes