extend_video
Continue a video from its last frame by providing a prompt for what happens next. Returns a job ID to retrieve the newly generated segment.
Instructions
Continue a video from its last frame, so a scene keeps going ("the cat jumps off the windowsill"). Uses "spacexai/grok-imagine-video". Returns a job_id for get_video; the result is the new part. Links must be https; links returned by this server work. If this call times out or returns no answer, do not call it again on your own: the job may already be running and a retry pays twice. Tell the user and let them decide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | A Grok Imagine Video model id. Default "spacexai/grok-imagine-video". | |
| prompt | Yes | What happens next | |
| duration | No | Seconds to add | |
| video_url | Yes | The video to continue | |
| estimate_only | No | Only return the estimated price from AI Gateway's list prices. Nothing is started or charged. |