Videos

Extend a video into a new job

Changed on

POST /v1/videos/extensions

post/api/v1/videos/extensions

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/videos/extensions
  • Auth: HTTP bearer

Request body

promptstring required

Direction for the extended segment.

seconds'4' | '8' | '12' | '16' | '20' required

Requested video duration in seconds. Creation/edits allow 4/8/12; extensions additionally allow 16/20.

Response

New video job

completed_atinteger nullable

Unix timestamp (seconds) when the job completed.

created_atinteger required

Unix timestamp (seconds) when the job was created.

expires_atinteger nullable

Unix timestamp (seconds) when the rendered asset expires.

idstring required

Unique job identifier.

modelstring required

Model used for generation.

objectstring

Object type, always "video".

progressinteger nullable

Approximate completion percentage (0-100).

promptstring nullable

Original generation prompt.

remixed_from_video_idstring nullable

Source video id when this job is a remix.

secondsstring nullable

Requested duration in seconds.

sizestring nullable

Output resolution.

status'queued' | 'in_progress' | 'completed' | 'failed' required

Status of a video generation job.

Changes