seedance2.5
seedance2.5
वीडियोByteDanceSeedance 2.5seedance2.5
暂无模型描述
प्रमाणीकरण
- Base URL
https://api.dreamtoai.com- Authorization
Authorization: Bearer YOUR_API_KEY- Content-Type
application/json- मॉडल नाम (model)
seedance2.5
इंटीग्रेशन प्रोटोकॉल
यह प्रोटोकॉल क्यों चुनें
适合需要提交任务并轮询状态的图像、视频、音频生成工作流。
एंडपॉइंट URL
POST/v1/jobs
Authorization: Bearer YOUR_API_KEYContent-Type: application/jsonरिक्वेस्ट / रिस्पॉन्स JSON
रिक्वेस्ट
{
"model": "seedance2.5",
"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",
"channel": "byte2.0"
}
}प्रतिक्रिया
{
"id": "job_example",
"object": "job",
"status": "processing",
"model": "seedance2.5",
"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 |
| channel | string | N |
रिस्पॉन्स फ़ील्ड
| फ़ील्ड | प्रकार | आवश्यक |
|---|---|---|
| id | string | N |
| status | enum | N |
| model | string | N |
| output.videos[].url | video | N |
| output.videos[].duration | number | 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": "seedance2.5",
"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",
"channel": "byte2.0"
}
}'
# रेफ़रेंस फ़ाइल अपलोड करने के लिए 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"