v1

Edit a video based on a prompt. This is an asynchronous operation that returns a request_id for polling.

post/v1/videos/edits

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/edits
  • Auth: HTTP bearer

Request body

modelstring nullable

Model to be used.

promptstring required

Prompt for video editing.

userstring nullable

A unique identifier representing your end-user.

Example request

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

Response

Video editing 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.