跳到正文
TakoAPI
返回技能列表

grok-imagine-image-pro

由 nixeifoit 提供

Image & Video Generation
618下载量由 clawskills.sh 提供
3星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Generiert hochwertige Bilder mit xAI Grok/Flux API.

描述

该技能的功能

Generates images from text prompts using xAI's Grok/Flux API, outputting PNG files saved locally. Also handles style-transfer editing by using an existing image as a reference for a new generation. Supports aspect ratio selection and batch generation of up to 10 images per request.

Using base64 response format avoids temporary URL expiry issues common with other image generation APIs.

何时使用

  • Generate a product mockup image from a text description
  • Create a batch of social media thumbnails in 1:1 format
  • Apply an oil painting style to a photo from a local file
  • Generate a widescreen banner from a prompt with 2:1 aspect ratio
  • Reimagine an existing image as a pencil sketch

示例工作流

输入

User asks: generate a PNG of a futuristic cityscape at sunset, widescreen format

智能体
  1. 1

    Sets prompt to 'futuristic cityscape at sunset' and aspect_ratio to '16:9'

  2. 2

    Calls xAI /v1/images/generations endpoint with model grok-imagine-image-pro

  3. 3

    Receives base64-encoded image data in response

  4. 4

    Decodes and saves PNG to ~/.openclaw/media/generated_<timestamp>_0.png

  5. 5

    Returns the file path to the user

输出

PNG file saved at ~/.openclaw/media/generated_1710000000_0.png

前置要求

  • XAI_API_KEY environment variable

安装

clawhub install nixeifoit/grok-imagine-image-pro

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接