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

Body

application/json

SA-Generate video request parameters

model
enum<string>
required

Video generation model, default is sora-2

Available options:
sora-2,
sora-2-pro
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, only sora-2-pro, size can be set large

Available options:
small,
large
Example:

"small"

duration
enum<string>
default:10

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

Available options:
10,
15
Example:

10

removeWatermark
boolean
default:false

Whether to remove watermark, default 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