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 '
{
  "prompt": "a cat playing with a ball",
  "aspect_ratio": "landscape",
  "n_frames": 10,
  "remove_watermark": false
}
'
{
  "task_id": "01234567-89ab-cdef-0123-456789abcdef"
}
Generate videos from text using OpenAI’s Sora 2 model. Key Features:
  • Native Audio-Video Sync - Video with sound effects, speech, and background music generated together
  • Realistic Physics - Accurate simulation of gravity, buoyancy, collisions, and other physical phenomena
  • Multi-Shot Narrative - Support complex multi-shot instructions while maintaining scene coherence
  • 1080P Output - Support 10-15 second HD videos in cinematic/anime styles

Authorizations

Authorization
string
header
required

Please use your API Token for authentication

Body

application/json

Task parameters

prompt
string
required

Prompt (required)

Minimum string length: 1
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"