Edit video
Grok Imagine video editing (POST /v1/videos/edits). Supported by grok-imagine-video models; poll via GET /v1/videos/{id}.
POST
/v1/videos/editsBody Parametersapplication/json
aspect_ratio* string
("1:1" | "16:9" | "9:16" )
model* string
grok-imagine-video
prompt* string
prompt word
resolution* string
("480p" | "720p")
video* object
Video URL or identifier
properties url* string
Resource URL
Responses
200 application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"aspect_ratio": "string",
3"model": "string",
4"prompt": "string",
5"resolution": "string",
6"video": {
7"url": "string"
8}
9}
1curl -X POST "https://api.digislash.com/v1/videos/edits" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"aspect_ratio": "string",
6"model": "string",
7"prompt": "string",
8"resolution": "string",
9"video": {
10"url": "string"
11}
12}'
1▼{
2"aspect_ratio": "16:9",
3"model": "grok-imagine-video",
4"prompt": "Give the woman a silver necklace",
5"resolution": "480p",
6▼"video": {
7"url": "https://imageproxy.zhongzhuan.chat/api/proxy/image/5dada4bd5c095d1062b79582a51481bf.mp4"
8}
9}
