Skip to main content
POST
/
ai
/
gi
/
video
/
generate
veo-3.1 generate video
curl --request POST \
  --url https://ai.pmock.com/api/ai/gi/video/generate \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "action": "text2video",
  "model": "veo3_fast",
  "videoId": "<string>",
  "imageList": [
    "<string>"
  ],
  "aspectRatio": "16:9",
  "translation": false
}
'
{
  "code": 200,
  "message": "<string>",
  "data": {
    "taskId": "<string>"
  },
  "traceId": "<string>"
}

Body

application/json
prompt
string
required

Video generated prompt words, currently only supporting English explanations

Minimum string length: 1
action
enum<string>
required

Video operation, one of the following: text2video, img2video, get1080p

Available options:
text2video,
img2video,
get1080p
model
enum<string>
required

If the model is veo31_fast_ingredients, an imageList (1-3 http (s) URLs) is required

Available options:
veo3_fast,
veo2_fast,
veo3_quality,
veo2_quality,
veo31_fast,
veo31_quality,
veo31_fast_ingredients
videoId
string

VideoId is only required when operating as GET1080P; Otherwise prohibited

imageList
string[]

ImageList is only required when operating as IMG2VIDEO (1-2 http (s) URLs); Otherwise, it must be omitted or an empty array []

aspectRatio
enum<string>

Aspect ratio:16:9、9:16、1:1、3:4、4:3

Available options:
16:9,
9:16,
1:1,
3:4,
4:3
translation
boolean
default:false

Whether to enable automatic translation of prompt words, default value is false

Response

200 - */*

OK

Unified return structure for response results

code
integer<int32>

Response status code

Example:

200

message
string

Response message

data
object

Response result

traceId
string

Response traceId