Skip to main content
POST
/
generate
/
k
/
sora2-pro-text-to-video
Sora2 Pro Text-to-Video
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/sora2-pro-text-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "aspect_ratio": "landscape",
  "n_frames": 10,
  "prompt": "a cinematic scene of a spaceship",
  "remove_watermark": false,
  "size": "standard"
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Professional version of Sora 2, providing higher quality text-to-video generation with support for standard and high quality levels.

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

prompt
string
required

Prompt (required)

Example:

"a cinematic scene of a spaceship"

aspect_ratio
enum<string>
default:landscape

Aspect ratio (optional, default landscape)

Available options:
portrait,
landscape
Example:

"landscape"

n_frames
enum<integer>
default:10

Video duration (optional, 10 or 15 seconds, default 10)

Available options:
10,
15
Example:

10

remove_watermark
boolean

Remove watermark (optional)

Example:

false

size
enum<string>
default:standard

Video quality (optional, standard/high, default standard)

Available options:
standard,
high
Example:

"standard"

Response

OK

task_id
string
required

Task ID

Example:

"01234567-89ab-cdef-0123-456789abcdef"