v4

latestOpenAPI 3.1.02026-08-0143190206.8 KB
v1

Extend a video by generating continuation content. This is an asynchronous operation that returns a request_id for polling.

post/v1/videos/extensions

Request body

durationinteger nullable

Duration of the extension segment to generate in seconds (2-10). Defaults to 6 seconds if not specified.

modelstring nullable

Model to be used.

promptstring required

Prompt describing what should happen next in the video.

Example request

{
  "model": "grok-imagine-video"
}

Response

Video extension started successfully

request_idstring required

A unique request ID to poll for the result.