API Reference
Create remove-object-pro video upload URLs
Prepare a source video and an aligned mask video for Pro object removal. A mask created by object tracking can be used to identify the objects to remove.
Create separate signed upload URLs for the source and mask videos, then upload both files with HTTP PUT. Source and mask videos must have the same resolution, spatial alignment, and timeline.
After preparing inputs, submit Create task.
post
/v1/videos/remove-object-pro/uploadAuthorization — This endpoint requires an API key. Pass it in the api-key header on every request. Learn more
Yêu cầu đầu vào
Video
- Định dạng
- MP4, MOV
- Cạnh dài nhất tối đa
- 1280 px
- Thời lượng tối đa
- 300 giây (5 phút)
Source and mask videos must have the same resolution, spatial alignment, and timeline.
Responses
Video and mask upload URLs createdRemoveObjectVideoProUploadResponse
| Field | Type | Description |
|---|---|---|
task_id | string | |
video_upload_url | string | Signed URL for the source video. |
mask_upload_url | string | Signed URL for the frame-aligned mask video. |
curl -X POST "https://api.snapedit.app/v1/videos/remove-object-pro/upload" \
-H "api-key: YOUR_API_KEY"Response
{
"task_id": "task_abc123",
"video_upload_url": "string",
"mask_upload_url": "string"
}