Skip to main content
POST
/
generation
/
xai
/
grok-imagine-video
/
edit-video
Grok Imagine Edit Video
curl --request POST \
  --url https://open.skills.video/api/v1/generation/xai/grok-imagine-video/edit-video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "video_url": "<string>"
}
'
{
  "id": "<string>",
  "status": "starting",
  "usage": {
    "total": 0,
    "subscription": 0,
    "permanent": 0
  }
}
Edit source videos with xAI’s Grok Imagine Video model

Authorizations

Authorization
string
header
required

API Key for API endpoints

Body

prompt
string
required

Text description of the desired edit

video_url
string<uri>
required

URL of the input video to edit. The video will be resized to a maximum area of 854x480 pixels and truncated to 8 seconds.

n
integer
default:1

Number of results to generate (1-4)

Required range: 1 <= x <= 4
resolution
enum<string>
default:auto

Resolution of the output video

Available options:
auto,
480p,
720p

Response

Generation status

id
string
required

Generation id.

status
enum<string>
required

Generation status

Available options:
starting,
processing,
succeeded,
failed,
canceled
usage
object
required

Credit usage breakdown for the request