Skip to main content
POST
/
videos
/
generations
curl --request POST \
  --url https://platform.qubrid.com/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "p-video",
  "prompt": "A butterfly flying through a flower garden",
  "duration": 5,
  "resolution": "720p",
  "fps": 24,
  "aspect_ratio": "16:9",
  "draft": false,
  "save_audio": true,
  "prompt_upsampling": true
}
'
{
  "created": 1710000000,
  "data": [
    {
      "url": "https://cdn.qubrid.com/generated/video.mp4"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

model
string
required

The video generation model to use.

Example:

"p-video"

prompt
string

Optional text prompt describing the video to generate.

Example:

"A butterfly flying through a flower garden"

duration
integer

Duration of the generated video in seconds.

Example:

5

resolution
string

Output video resolution.

Example:

"720p"

fps
integer

Frames per second for the generated video.

Example:

24

aspect_ratio
string

Aspect ratio of the output video.

Example:

"16:9"

image
string | null

Optional input image URL to guide or initialize video generation.

Example:

"https://example.com/input-image.jpg"

audio
string | null

Optional input audio URL to include in the generated video.

Example:

"https://example.com/audio.mp3"

draft
boolean
default:false

Whether to generate a draft/preview version of the video.

save_audio
boolean
default:true

Whether to retain the provided audio in the final generated video.

prompt_upsampling
boolean
default:true

Whether to automatically enhance or expand the prompt before generation.

Response

Video generated successfully

created
integer

Unix timestamp when the video generation request was created.

Example:

1710000000

data
object[]