---
title: "Create an xAI video edit job"
method: POST
path: "/grok/v1/videos/edits"
---

# Create an xAI video edit job

`POST /grok/v1/videos/edits`

Start a Grok video editing job from a source MP4 and a natural-language edit instruction. Poll the same query endpoint used by video generation.

## Request body

- object
  - `prompt` string, required — Edit instruction describing the change you want.
  - `model` string — xAI video model id.
  - `video` object, required — Source video to edit. xAI documents an input limit of about 8.7 seconds.
    - `url` string, required — Reachable source MP4 URL.
  - `output` object — Optional output delivery configuration.
  - `user` string — Optional end-user identifier.

## Response `200`

Request accepted.

- object
  - `request_id` string, required — Deferred request id used for polling.

---

[API](https://skmtc.net/cometapi/apis/create-api-key.md) · [All operations](https://skmtc.net/cometapi/apis/create-api-key/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cometapi/create-api-key/versions/0863102dbf34/schema)
