grok-video

v2026.09.24

Generate AI videos with Grok (xAI) via AceDataCloud API. Use when creating videos from text prompts or animating images using Grok's video generation models. Supports text-to-video and image-to-video with configurable resolution and aspect ratio.

GitHub
安装命令
npx skhub add acedatacloud/grok-video
Markdown
SKILL.md

Grok Video Generation

Generate AI videos through AceDataCloud's Grok (xAI) API.

Setup: See authentication for token setup.

Quick Start

curl -X POST https://api.acedata.cloud/grok/videos \
  -H "Authorization: ******" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "a futuristic city at night with flying cars and neon lights", "model": "grok-imagine-video-1.5-fast:reverse", "callback_url": "https://api.acedata.cloud/health"}'

Async: See async task polling. Poll via POST /grok/tasks with {"id": "..."}.

Models

ModelResolutionDefaultNotes
grok-imagine-video-1.5-fast:reverseup to 1080p✓Best value. 6–30s, billed by duration tier
grok-imagine-video:reverseup to 1080pBetter value. 1–15s, billed per output second
grok-imagine-video:officialup to 1080pHigher quality. 1–15s, billed per output second
grok-imagine-video-1.5:officialup to 1080pHigher quality, image-to-video only (image_url required)
grok-imagine-videoup to 720pBase model, text-to-video only
grok-imagine-video-1.5-previewup to 720p1.5 preview (grok-video.json surface)

Workflows

1. Text-to-Video

Generate a video from a text description.

POST /grok/videos
{
  "prompt": "a majestic eagle soaring over snow-capped mountains at dawn",
  "model": "grok-imagine-video-1.5-fast:reverse",
  "resolution": "720p",
  "aspect_ratio": "16:9",
  "duration": 6
}

2. Image-to-Video

Animate a still image into motion. Provide the image URL via image_url.

POST /grok/videos
{
  "prompt": "the eagle lifts off and flies into the sunset",
  "image_url": "https://example.com/eagle.jpg",
  "model": "grok-imagine-video:official",
  "resolution": "720p",
  "aspect_ratio": "16:9"
}

3. Multi-Reference Generation

Supply up to several reference images via reference_image_urls for style or subject consistency.

POST /grok/videos
{
  "prompt": "the character walks through a cyberpunk alley",
  "reference_image_urls": [
    "https://example.com/character.jpg",
    "https://example.com/style.jpg"
  ],
  "model": "grok-imagine-video-1.5-fast:reverse",
  "resolution": "1080p"
}

Parameters

ParameterValuesDescription
promptstringText description of the desired video
modelsee Models tableModel to use (default: grok-imagine-video-1.5-fast:reverse)
image_urlURLSingle reference image for image-to-video
reference_image_urlsarray of URLsMultiple reference images for style/subject guidance
aspect_ratio"1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"Output aspect ratio
resolution"480p", "720p", "1080p"Output resolution (default: 480p; 1080p only for :reverse/:official models)
durationintegerDuration in seconds (default: 6)
callback_urlURLWebhook URL for async delivery
asyncbooleanReturn a task ID immediately for polling

Task Queries

POST /grok/tasks
{"id": "<task_id>", "action": "retrieve"}

Batch retrieval:

POST /grok/tasks
{"ids": ["<id1>", "<id2>"], "action": "retrieve_batch"}

Gotchas

  • 1080p resolution is only supported by :reverse and :official model variants
  • image_url provides a single driving image; reference_image_urls provides multiple style/subject references
  • Set callback_url to get the task ID immediately without blocking on completion
  • Poll POST /grok/tasks with {"id": "..."} until a final video URL appears in the response

MCP: See MCP servers for tool-use integration.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

NOASSERTION

源路径

skills/grok-video

默认分支

main

最新提交

57cc298

Tree SHA

acaa402