界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

xai-grok-imagine-text-to-video

xai-grok-imagine-text-to-video

【效率与协作】XAI | Grok Imagine | Text to Video. Generate videos from text with configurable aspect ratio, duration, and resolution. Triggers: text to video, grok, xai, video generation, t2v

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: xai-grok-imagine-text-to-video description: "XAI | Grok Imagine | Text to Video. Generate videos from text with configurable aspect ratio, duration, and resolution. Triggers: text to video, grok, xai, video generation, t2v" allowed-tools: Bash(curl *), WebFetch

XAI | Grok Imagine | Text to Video

Generate videos from text descriptions using xAI's Grok Imagine with configurable aspect ratios, duration, and up to 720p resolution.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "xai-grok-imagine-text-to-video",
    "version": "0.0.1",
    "input": {
      "prompt": "A hot air balloon rising over a lavender field at sunrise",
      "duration": 6,
      "aspect_ratio": "16:9",
      "resolution": "720p"
    }
  }'

Parameters

ParameterTypeDefaultDescription
aspect_ratiostring16:9Aspect ratio. enum: 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16
durationinteger6Video duration in seconds.
promptstringText description of the desired video.
resolutionstring720pOutput resolution. enum: 480p, 720p

Examples

Cinematic landscape:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "xai-grok-imagine-text-to-video",
    "version": "0.0.1",
    "input": {
      "prompt": "A thunderstorm rolling across a vast prairie, lightning illuminating the clouds",
      "duration": 8,
      "aspect_ratio": "16:9",
      "resolution": "720p"
    }
  }'

Vertical short-form content:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "xai-grok-imagine-text-to-video",
    "version": "0.0.1",
    "input": {
      "prompt": "A mixologist crafting a cocktail with dramatic flair, pouring from a height",
      "duration": 5,
      "aspect_ratio": "9:16",
      "resolution": "720p"
    }
  }'

Quick square preview:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "xai-grok-imagine-text-to-video",
    "version": "0.0.1",
    "input": {
      "prompt": "A goldfish swimming in a crystal-clear bowl with bubbles rising",
      "duration": 4,
      "aspect_ratio": "1:1",
      "resolution": "480p"
    }
  }'

Related Models

Documentation

我的收藏