Skip to main content
POST
Start an video generation operation

Authorizations

Authorization
string
header
required

Mint API key sent as a Bearer token.

Headers

Idempotency-Key
string

Optional stable key for safely retrying an uncertain mutating request. Mint creates an internal key when this header is omitted. Reusing a supplied key with different parameters returns 409.

Required string length: 1 - 255

Body

application/json

Create a final video directly. References are owned Mint reference asset IDs; mode and reference limits are validated before paid generation.

prompt
string
required
Required string length: 1 - 8000
name
string
Required string length: 1 - 120
generationPreset
enum<string>
default:standard
Available options:
fast,
standard,
production
videoMode
enum<string>
default:text_to_video
Available options:
text_to_video,
image_to_video,
first_last_frame,
reference_to_video
durationSeconds
integer

Whole seconds within the selected preset's supported range. Defaults to a sole video reference's duration, rounded to whole seconds, or 8 seconds. Supply explicitly when using multiple video references.

Required range: 3 <= x <= 15
aspectRatio
enum<string>
default:16:9

Image and first/last-frame modes follow the start image in every preset. Its landscape/portrait orientation must match this setting; reframe the image before submitting to change orientation. Exact output dimensions are reported on completion.

Available options:
16:9,
9:16
generateAudio
boolean
default:true
references
object[]
Maximum array length: 50

Response

An earlier request with the same retry key returned this operation.

A long-running operation acting on one Mint video.

object
string
required

Stable object discriminator.

Allowed value: "operation"
id
string
required

Mint operation ID used for polling.

type
enum<string>
required

The work this operation performs.

Available options:
video_generation
generationMode
enum<string>
required

Workflow mode for this operation.

Available options:
auto,
review
status
enum<string>
required

Current operation lifecycle status.

Available options:
queued,
running,
preview_ready,
billing_required,
succeeded,
partially_succeeded,
failed,
canceled
resource
object | null
required

The Mint asset created by this operation, or null before the asset exists.

createdAt
string<date-time>
required

When the operation was created.

updatedAt
string<date-time>
required

When the operation last changed.

prompt
string

Developer-supplied generation brief or revision feedback.

generationPreset
enum<string>

Public generation preset selected for this operation.

Available options:
fast,
standard,
production
billing
object

The billing action required before this operation can continue.

credits
object

Credit estimate, active reservation, finalized charge, and post-reservation balance for this operation.

error
object

Terminal failure details when the operation failed.

completedAt
string<date-time>

When the operation completed.

canceledAt
string<date-time>

When the operation was canceled.