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

  • Base URL: https://docs.x.ai (the document declares no server; this is the origin it was published from)
  • URL: https://docs.x.ai/v1/videos/extensions
  • Auth: HTTP bearer

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.

Changes

No recorded changes to this operation across all 1 revision of this API.