跳转到主要内容
POST
/
gemini
/
video
/
generate
Create video generation task
curl --request POST \
  --url https://api.mountsea.ai/gemini/video/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "A fluffy orange cat running through a sunny meadow",
  "action": "text2video",
  "model": "veo31_fast",
  "imageList": [
    "https://example.com/image1.jpg",
    "https://example.com/image2.jpg"
  ],
  "aspectRatio": "16:9",
  "translation": false
}
'
{
  "taskId": "<string>"
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
prompt
string
必填

Video description/prompt (English recommended for best results)

示例:

"A fluffy orange cat running through a sunny meadow"

action
enum<string>
必填

Video generation action

可用选项:
text2video,
img2video,
ingredients2video
示例:

"text2video"

model
enum<string>
必填

Video generation model. Note: INGREDIENTS2VIDEO only supports veo31_fast

可用选项:
veo2_fast,
veo2_quality,
veo3_fast,
veo3_quality,
veo31_fast,
veo31_quality,
veo31_fast_ingredients
示例:

"veo31_fast"

imageList
string[]

Image URLs for image-based video generation:

  • IMG2VIDEO: 1-2 images (start frame, or start + end frames)
  • INGREDIENTS2VIDEO: 1-3 reference images (required)
  • veo31_fast_ingredients model: 1-3 images
示例:
[
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
aspectRatio
enum<string>
默认值:16:9

Video aspect ratio

可用选项:
16:9,
9:16
示例:

"16:9"

translation
boolean
默认值:false
已弃用

[已废弃] Enable automatic prompt translation to English

示例:

false

响应

201 - application/json
taskId
string
必填

task id, used to get task result later