v1

latestOpenAPI 3.1.02026-07-2611077199.5 KB

Extend a video by generating continuation content. This is an asynchronous operation that returns a request_id for polling.<br/><br/>Note: Synced with official rules, content moderation failure will also be charged.

post/grok/v1/videos/extensions

Request body

promptstring required

Prompt describing what should happen next in the video.

durationinteger

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

model'grok-imagine-video'

Model to be used.

Example request

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

Response

Request successful

request_idstring required

Request ID

Example response

{
  "request_id": "a3d1008e-4544-40d4-d075-11527e794e4a"
}