tools.grok_imagine module

GameGirl Color – Asset animation tool via Grok Imagine.

Takes an existing game asset (image URL) and animates it into a short video using xAI’s Grok Imagine img2vid API. The result is sent as an animated WebP or MP4. # 🌀💀 CORRUPTED ANIMATION PIPELINE

async tools.grok_imagine.run(asset_name, prompt='', save_as='', output_format='webp', ctx=None)[source]

Animate a game asset using Grok Imagine img2vid.

Parameters:
  • asset_name (str) – Asset name or URL to animate.

  • prompt (str) – Optional motion prompt.

  • save_as (str) – Optional name to save result as asset.

  • output_format (str) – Output format (webp, mp4, gif).

  • ctx (ToolContext | None) – Tool execution context.

Returns:

JSON result.

Return type:

str