Skip to main content
POST
Generate Video

Authorizations

Authorization
string
header
required

Mynth API key sent as Authorization: Bearer <api-key>.

Body

application/json
model
any
required
Example:

"prunaai/p-video"

prompt
string
required

Positive prompt.

Maximum string length: 8192
Example:

"A cat surfing a wave at sunset"

access
object

Controls whether the create-task response should include a short-lived Public Access Token.

That token can be passed to browser or client-side code for polling task status and task videos without exposing your API key.

audio
boolean

Enable model-native generated audio. Only supported by models with audio capability.

duration
number

Video duration in seconds. Defaults to the model's default duration.

Required range: 1 <= x <= 60
inputs
(string | object)[]
Maximum array length: 5
Required string length: 1 - 2048
metadata
object
negative_prompt
string
Maximum string length: 8192
resolution

Resolution tier. Defaults to the model's default tier.

webhook
object

Response

201 - application/json

Video generation task created

data
object
required