curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/sora-2/text-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"duration": 4,
"aspect_ratio": "16:9"
}
}
'
{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Sora 2 Official Text to Video
Turn written scene descriptions into videos with Sora 2, with portrait and landscape framing for clips up to twenty seconds long.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/sora-2/text-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"duration": 4,
"aspect_ratio": "16:9"
}
}
'
{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
Models
- openai/sora-2/text-to-video - Generate video scenes from text prompts.
Features
- Generate video scenes from text prompts.
- Supports landscape (
16:9) and portrait (9:16) framing.
Duration Options
- 4, 8, 12, 16, 20 seconds - Set
durationto one of these values. Default: 4 seconds.
Advanced Parameters
Setmodel and optional callback_url at the request root. Place the parameters below inside input.
Send only the input fields supported by this workflow. Unsupported input fields are rejected before credits are deducted.
Prompt
prompt: Required. Describe the scene and desired motion.- The prompt must not be blank when supplied.
Aspect Ratio
aspect_ratio:16:9,9:16. Default:16:9.
Pricing
Pricing depends on the selected model and applicable output settings. Check the Vidgo dashboard for the current rate. Credits are deducted on submission and refunded if the task fails.Body
application/json
Keep model and callback_url at the root. Unknown root fields are ignored; unsupported input fields are rejected.