Skip to main content
POST
/
ai
/
sa
/
video
/
generate
/
v2
sora generate video v2
curl --request POST \
  --url https://ai.pmock.com/api/ai/sa/video/generate/v2 \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "sora-2",
  "prompt": "<string>",
  "images": [
    "<string>"
  ],
  "orientation": "landscape",
  "size": "small",
  "duration": 10,
  "removeWatermark": false,
  "styleId": "anime",
  "storyboard": false
}
'
{
  "code": 200,
  "message": "<string>",
  "data": {
    "taskId": "<string>"
  },
  "traceId": "<string>"
}

Body

application/json

SA-Generate V2 video request parameters

model
enum<string>
required

Video generation model, default is sora-2

Available options:
sora-2
Example:

"sora-2"

prompt
string
required

The prompt for generating videos, up to 5000 characters

Maximum string length: 5000
images
string[]

The images used to generate videos can be URL arrays or empty, currently only supporting one image

Maximum array length: 1
orientation
enum<string>
default:landscape

Direction of video generation, default landscape

Available options:
landscape,
portrait
Example:

"landscape"

size
enum<string>
default:small

Video generation size, default small

Available options:
small
Example:

"small"

duration
enum<string>
default:10

The duration of video generation can only be 10 for sora-2, and 10, 15, with a default of 10

Available options:
10,
15
Example:

10

removeWatermark
boolean
default:false

Whether to remove watermark, default is false

styleId
enum<string>
default:anime

style id for video generation,default is anime

Available options:
anime,
selfie,
golden,
handheld,
festive,
retro,
news,
chaos,
vintage,
comic,
kakalaka,
sitcom
Example:

"anime"

storyboard
boolean
default:false

whether to enable storyboard mode, if true, the prompt will be parsed as storyboard format

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