Skip to main content
POST
Grok Imagine Video Extension

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:grok-imagine-video-extension
required

grok-imagine-video-extension: Generates continuation clips based on existing videos

prompt
string
required

Text prompt describing what should happen next in the video

Notes:

  • Supports both Chinese and English
  • Recommended to describe camera continuation, action progression, or scene transitions
Example:

"The camera slowly zooms out to reveal the city skyline at sunset"

video_url
string
required

Public URL of the input video

Notes:

  • Must be a publicly accessible MP4 URL
  • Input video duration must be between 2 - 15 seconds
Example:

"https://example.com/input-video.mp4"

duration
integer | null

Extension clip duration in seconds

Notes:

  • Range: 2 - 10
  • Defaults to 6 seconds upstream when not specified
Example:

2

Response

Task created successfully

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

Actual model name used

object
enum<string>

Specific task type

Available options:
video.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Asynchronous task information

type
enum<string>

Task output type

Available options:
video
Example:

"video"