Skip to main content
POST
/
api
/
ai
/
videos
/
generate
Generate video
curl --request POST \
  --url https://hub.oxen.ai/api/ai/videos/generate \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "aspect_ratio": "<string>",
  "duration": 123,
  "seed": 123
}
'
{
  "created": 123,
  "model": "<string>",
  "videos": [
    {
      "url": "<string>"
    }
  ]
}

Body

application/json

Video generation request

model
string
required
prompt
string
required

Text prompt describing the desired video

aspect_ratio
string | null
duration
integer | null

Duration in seconds

seed
integer | null

Response

Generated videos

created
integer
model
string
videos
object[]