Skip to main content
POST
/
generation
/
xai
/
grok-imagine-video
/
extend-video
Grok Imagine Extend Video
curl --request POST \
  --url https://open.skills.video/api/v1/generation/xai/grok-imagine-video/extend-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
  }
}
Extend 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 what should happen next in the video

video_url
string<uri>
required

URL of the source video to extend. Must be MP4 format (H.264, H.265, or AV1 codec), 2-15 seconds long.

n
integer
default:1

Number of results to generate (1-4)

Required range: 1 <= x <= 4
duration
integer
default:6

Length of the extension in seconds

Required range: 2 <= x <= 10

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