API Reference
Create talking-head upload URLs
Create image and audio upload URLs. Upload the files to provided URLs with HTTP PUT before creating the task.
The input audio must be no longer than 180 seconds (3 minutes).
After preparing inputs, submit Create task.
post
/v1/videos/talking-head/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
Hình ảnh
- Định dạng
- JPEG, PNG, WEBP
- Độ phân giải tối đa
- 3000 × 3000 px
Âm thanh
- Thời lượng tối đa
- 180 giây (3 phút)
Responses
Upload URLs createdGenerateVideoUploadResponse
| Field | Type | Description |
|---|---|---|
task_id | string | |
image_upload_url | string | URL for the source image. |
audio_upload_url | string | URL for talking-head audio. |
curl -X POST "https://api.snapedit.app/v1/videos/talking-head/upload" \
-H "api-key: YOUR_API_KEY"Response
{
"task_id": "task_abc123",
"image_upload_url": "string",
"audio_upload_url": "string"
}