Skip to main content
POST
/
generate
/
k
/
sora2-text-to-video
Sora2 Text-to-Video
curl --request POST \
  --url https://api.sinancode.com/v1/generate/k/sora2-text-to-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "aspect_ratio": "landscape",
  "n_frames": 10,
  "prompt": "a cat playing with a ball",
  "remove_watermark": false
}'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
OpenAI Sora 2 model for generating high-quality videos from text descriptions, supporting 10-15 second durations.

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

prompt
string
required

Prompt (required)

Example:

"a cat playing with a ball"

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

Response

OK

task_id
string
required

Task ID

Example:

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