Skip to main content
POST
/
sora
/
video
/
generate
create video generation task
curl --request POST \
  --url https://api.mountsea.ai/sora/video/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "sora-2",
  "prompt": "cat running on the road",
  "styleId": "anime",
  "images": [],
  "orientation": "landscape",
  "size": "small",
  "duration": 10,
  "removeWatermark": true,
  "editId": "xxxxxxxxxxxxxxxxxxx"
}
'
{
  "taskId": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
model
enum<string>
required

model for video generation,default is sora-2

Available options:
sora-2,
sora-2-pro
Example:

"sora-2"

prompt
string
required

prompt for video generation,max 5000 characters

Maximum string length: 5000
Example:

"cat running on the road"

styleId
enum<string>
required

style id for video generation,default is anime

Available options:
thxgiving,
comic,
news,
selfie,
vintage,
anime
Example:

"anime"

images
string<uri>[]

images for video generation, can be an array of URLs or empty,currently only support 1 image

orientation
enum<string>
default:landscape

orientation for video generation,default is landscape

Available options:
landscape,
portrait
Example:

"landscape"

size
enum<string>
default:small

size for video generation,default is Small,if model is sora-2-pro,size can be Large

Available options:
small,
large
Example:

"small"

duration
enum<number>
default:10

duration for video generation,if model is sora-2,duration can be 10,15,if model is sora-2-pro,duration can be 10,15

Available options:
10,
15
Example:

10

removeWatermark
boolean
default:true

whether to remove watermark,default is false

Example:

true

editId
string

video edit id, you can use this id to edit video, edit id is returned together with video url

Example:

"xxxxxxxxxxxxxxxxxxx"

Response

Task created successfully

taskId
string
required

task id, used to get task result later