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"
}요청 / 응답 필드
요청 필드
| 필드 | 타입 | 필수 |
|---|---|---|
| prompt | string | Y |
| image | image | N |
| lastframe | image | N |
| referenceImages | string | N |
| video | video | N |
| aspectratio | string | Y |
| resolution | string | Y |
| generate_audio | boolean | N |
| negative_prompt | string | N |
| durationseconds | string | Y |
응답 필드
| 필드 | 타입 | 필수 |
|---|---|---|
| task_id | string | N |
| status | enum | 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": "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"