veo-3.1-fast
veo-3.1-fast
वीडियोGoogleVeo 3.1veo-3.1-fast

Veo 3.1 是一种用于生成 8 秒视频(720p、1080p 或 4k)的模型,可原生生成音频。

प्रमाणीकरण

Base URL
https://api.dreamtoai.com
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
मॉडल नाम (model)
veo-3.1-fast

इंटीग्रेशन प्रोटोकॉल

यह प्रोटोकॉल क्यों चुनें

适合需要提交任务并轮询状态的图像、视频、音频生成工作流。

एंडपॉइंट URL
POST/v1/jobs
Authorization: Bearer YOUR_API_KEYContent-Type: application/json

रिक्वेस्ट / रिस्पॉन्स JSON

रिक्वेस्ट
{
  "model": "veo-3.1-fast",
  "input": {
    "prompt": "一段自然纪录片风格的雪山航拍镜头",
    "image": "https://example.com/image.png",
    "lastframe": [
      "https://example.com/ref.png"
    ],
    "referenceImages": [
      "https://example.com/ref.png"
    ],
    "video": [
      "https://example.com/ref.mp4"
    ],
    "aspectratio": "16:9,9:16",
    "resolution": "720p,1080p,4k",
    "generate_audio": false,
    "negative_prompt": "低清晰度、闪烁、变形",
    "durationseconds": "4,6,8"
  }
}
प्रतिक्रिया
{
  "id": "job_example",
  "object": "job",
  "status": "processing",
  "model": "veo-3.1-fast",
  "created": 1710000000,
  "request_id": "req_example"
}

रिक्वेस्ट / रिस्पॉन्स फ़ील्ड

रिक्वेस्ट फ़ील्ड
फ़ील्डप्रकारआवश्यक
promptstringY
imageimageN
lastframeimageN
referenceImagesstringN
videovideoN
aspectratiostringY
resolutionstringY
generate_audiobooleanN
negative_promptstringN
durationsecondsstringY
रिस्पॉन्स फ़ील्ड
फ़ील्डप्रकारआवश्यक
task_idstringN
statusenumN

कोड उदाहरण

cURLrequest.sh
curl -X POST "https://api.dreamtoai.com/v1/jobs" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "veo-3.1-fast",
  "input": {
    "prompt": "一段自然纪录片风格的雪山航拍镜头",
    "image": "https://example.com/image.png",
    "lastframe": [
      "https://example.com/ref.png"
    ],
    "referenceImages": [
      "https://example.com/ref.png"
    ],
    "video": [
      "https://example.com/ref.mp4"
    ],
    "aspectratio": "16:9,9:16",
    "resolution": "720p,1080p,4k",
    "generate_audio": false,
    "negative_prompt": "低清晰度、闪烁、变形",
    "durationseconds": "4,6,8"
  }
}'

# स्टेटस जाँचने के लिए cURL
# job_example को सबमिट रिस्पॉन्स से मिले task_id से बदलें।
curl -X GET "https://api.dreamtoai.com/v1/jobs/job_example" \
  -H "Authorization: Bearer YOUR_API_KEY"