# Grok Imagine Edit (https://docs.fuser.studio/docs/nodes/video/grok-imagine-edit)

_Provided by [Fal](https://fal.ai) — [Learn More](https://fal.ai/models/xai/grok-imagine-video/edit-video)._

## Inputs [#inputs]

- **Mode** (`dropdown`) — Edit rewrites video content based on a text prompt. Extend appends new footage to the end of the video.

   Optional: `true` • Default: `edit` • Accepts: `Edit`, `Extend`

- **Prompt** (`textarea`) — Text description of the desired edit or what should happen next in the video. Maximum 4096 characters.

- **Video** (`video`) — Source video to edit or extend. For Edit mode, the video is resized to a maximum area of 854×480 pixels and truncated to 8 seconds. For Extend mode, the video must be MP4 format (H.264, H.265, or AV1 codec) and 2–15 seconds long.

- **Resolution** (`dropdown`) — Resolution of the edited video. Applies to Edit mode only.

   Optional: `true` • Default: `720p` • Accepts: `480p`, `720p`

- **Extension Duration** (`slider`) — Length of the new footage to append in seconds. Applies to Extend mode only.

   Optional: `true` • Default: `6` • Minimum: `2` • Maximum: `10`

## Outputs [#outputs]

- **Output Video** (`video`) — The edited or extended video from the model.