seedance-1.5-pro-1080p
seedance-1.5-pro-1080p
비디오ByteDanceSeedance 1.51080p
字节上一代视频模型,可生成音画高精同步的视频内容
인증
- Base URL
https://api.dreamtoai.com- Authorization
Authorization: Bearer YOUR_API_KEY- Content-Type
application/json- 모델 이름 (model)
seedance-1.5-pro-1080p
연동 프로토콜
이 프로토콜을 선택하는 이유
适合需要提交任务并轮询状态的图像、视频、音频生成工作流。
엔드포인트 URL
POST/v1/jobs
Authorization: Bearer YOUR_API_KEYContent-Type: application/json요청 / 응답 JSON
요청
{
"model": "seedance-1.5-pro-1080p",
"input": {
"prompt": "电影感街头运镜,一辆跑车穿过雨夜霓虹街道",
"first_frame_url": "https://example.com/first.png",
"last_frame_url": "https://example.com/last.png",
"reference_image_urls": [
"https://example.com/ref.png"
],
"reference_video_urls": [
"https://example.com/ref.mp4"
],
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9",
"seed": 12345,
"callback_url": "https://example.com/webhook",
"ratio": "16:9",
"frames": 121,
"camera_fixed": false,
"watermark": true,
"return_last_frame": false,
"service_tier": "auto",
"generate_audio": false,
"execution_expires_after": 600,
"draft": false
}
}응답
{
"id": "job_example",
"object": "job",
"status": "processing",
"model": "seedance-1.5-pro-1080p",
"created": 1710000000,
"request_id": "req_example"
}요청 / 응답 필드
요청 필드
| 필드 | 타입 | 필수 |
|---|---|---|
| prompt | string | Y |
| first_frame_url | image | N |
| last_frame_url | image | N |
| reference_image_urls | array | N |
| reference_video_urls | array | N |
| resolution | enum | N |
| duration | number | N |
| aspect_ratio | enum | N |
| seed | integer | N |
| callback_url | string | N |
| ratio | enum | N |
| frames | integer | N |
| camera_fixed | boolean | N |
| watermark | boolean | N |
| return_last_frame | boolean | N |
| service_tier | enum | N |
| generate_audio | boolean | N |
| execution_expires_after | integer | N |
| draft | boolean | N |
응답 필드
| 필드 | 타입 | 필수 |
|---|---|---|
| output.task_id | string | N |
| output.status | string | N |
| output.videos[] | video | N |
코드 예제
cURLrequest.sh
curl -X POST "https://api.dreamtoai.com/v1/jobs" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "seedance-1.5-pro-1080p",
"input": {
"prompt": "电影感街头运镜,一辆跑车穿过雨夜霓虹街道",
"first_frame_url": "https://example.com/first.png",
"last_frame_url": "https://example.com/last.png",
"reference_image_urls": [
"https://example.com/ref.png"
],
"reference_video_urls": [
"https://example.com/ref.mp4"
],
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9",
"seed": 12345,
"callback_url": "https://example.com/webhook",
"ratio": "16:9",
"frames": 121,
"camera_fixed": false,
"watermark": true,
"return_last_frame": false,
"service_tier": "auto",
"generate_audio": false,
"execution_expires_after": 600,
"draft": false
}
}'
# 참조 파일 업로드 cURL
curl -X POST "https://api.dreamtoai.com/v1/files/upload" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "kind=video" \
-F "purpose=reference" \
-F "[email protected]"
# 작업 상태 조회 cURL
# job_example을 제출 응답이 반환한 task_id로 바꾸세요
curl -X GET "https://api.dreamtoai.com/v1/jobs/job_example" \
-H "Authorization: Bearer YOUR_API_KEY"