Token导航 LogoToken导航TokenDH.com
图像处理敏感数据clawhub未标认证来源可访问clear审计提醒

image-2图 2

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

2,115

周安装

89

GitHub Stars

公开资料未说明

下载量

740
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:image-2(图 2)
来源仓库:https://github.com/gpt/image-2
安装命令:
openclaw skills install image-2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install image-2

简介

image-2 使用 GPT-4o 原生 API 进行图像生成与编辑。

  • 支持文本转图像、修复与转换,适用于创意设计。image-2 属于图像处理类 Skill,可作为该场景下的辅助能力补充。
  • 通过提示词和图片输入触发,输出高质量视觉内容。
  • 建议确认 API 调用频率限制及是否需付费订阅。
  • 可结合来源仓库和 README 进一步核验编辑功能边界。

SKILL.md

name
image-2
version
1.1.0
description
GPT-4o Image Generation & Editing Skill - Create, edit, transform, and analyze images using GPT-4o native image-2 API. Supports text-to-image, inpainting, outpainting, style transfer, background removal, and intelligent image analysis. Ideal for marketing, product photos, illustrations, UI mockups, and visual content creation.
metadata
openclaw
emoji
🎨
homepage
https://clawhub.ai/gpt/image-2
always
false
skillKey
image-2
requires
env
primaryEnv
OPENAI_API_KEY
install
package
openai
bins
[]

Image-2 Skill

Create, edit, transform, and analyze images with GPT-4o's native image generation API

When to Use This Skill

Use this skill whenever the user needs to:

  • Generate images from text descriptions ("画一张...", "生成图片...", "create an image of...")
  • Edit existing images with natural language ("把背景去掉", "add a sunset", "换成蓝色")
  • Create variations of an image ("生成几个变体", "make 4 variations")
  • Analyze/describe images ("这张图是什么", "describe this image", "提取文字")
  • Remove backgrounds ("去除背景", "remove background")
  • Style transfer ("变成水彩风格", "make it look like Van Gogh")
  • Create marketing visuals ("设计海报", "make a social media post")
  • Product photography ("产品图", "product shot on white background")
  • UI/UX mockups ("界面设计", "app mockup", "website screenshot")

Core Workflows

Workflow 1: Text-to-Image Generation

When the user describes an image they want to create:

  1. Enhance the prompt — Automatically add quality boosters:

- Append professional photography/art terms based on context - Add lighting, composition, and mood details if not specified - Specify output format and dimensions if needed

  1. Call the API — Use generateImage() with the enhanced prompt:
   const result = await generateImage(enhancedPrompt, { size, quality, style });
  1. Save and present — Download the image to the project directory and show the user:

- Save to ./generated-images/ by default - Return the file path and a brief description

Workflow 2: Image Editing

When the user wants to modify an existing image:

  1. Locate the source image — Find the image file path from the conversation context
  2. Parse the edit intent — Understand what changes the user wants
  3. Call the edit API — Use editImage() with the source and instruction:
   const result = await editImage(imagePath, editInstruction, { mask: maskPath });
  1. Present the result — Show the edited image and describe what changed

Workflow 3: Image Analysis

When the user asks about an image:

  1. Get the image — From file path or URL
  2. Analyze with GPT-4o Vision — Use describeImage():
   const result = await describeImage(imageSource, question);
  1. Report findings — Present the analysis in a structured format

Workflow 4: Batch Generation

When the user needs multiple images:

  1. Parse the batch request — Understand variations needed
  2. Generate in parallel — Call generateImage() for each variant
  3. Organize results — Save with descriptive filenames

Prompt Enhancement Rules

When generating images, automatically enhance the user's prompt:

Quality Boosters (always append unless user specifies quality)

professional quality, high resolution, sharp details

Context-Based Additions

User IntentAuto-Add
Product photo"studio lighting, clean background, commercial photography"
Portrait"professional portrait photography, natural lighting"
Social media"eye-catching, vibrant colors, modern design"
Illustration"detailed illustration, professional artist quality"
Logo/branding"clean vector style, scalable, minimal details"
Architecture"architectural visualization, realistic rendering"
Food"appetizing, food styling, professional food photography"
UI mockup"clean design, modern interface, pixel-perfect"

Size Recommendations

Use CaseRecommended Size
Social media post1024x1024 (square)
Story/vertical1024x1792
Banner/landscape1792x1024
Product listing1024x1024
Presentation1792x1024
Wallpaper1792x1024

Style Presets

Quick style references for common requests:

Preset NameStyle Description
productClean white background, studio lighting, commercial photography
lifestyleNatural setting, warm lighting, aspirational mood
minimalistSimple composition, negative space, clean lines
vintageRetro color grading, film grain, nostalgic mood
futuristicNeon accents, dark background, sci-fi aesthetic
watercolorSoft edges, pastel palette, artistic brush strokes
3d-renderOctane render, realistic materials, dramatic lighting
animeJapanese animation style, vibrant, expressive
sketchPencil drawing, hand-drawn, artistic
flat-designVector style, bold colors, geometric shapes

API Reference

generateImage(prompt, options)

Generate a new image from text description.

Parameters:

  • prompt (string) — Image description (auto-enhanced by this skill)
  • options (object):

- size1024x1024 | 1024x1792 | 1792x1024 (default: 1024x1024) - qualitystandard | hd (default: standard) - stylevivid | natural (default: vivid) - modelgpt-image-2 | dall-e-3 (default: gpt-image-2) - saveTo — File path to save the image (default: ./generated-images/)

Returns: { success, url, localPath, revisedPrompt }

editImage(imagePath, prompt, options)

Edit an existing image with natural language instructions.

Parameters:

  • imagePath (string) — Path to the source image
  • prompt (string) — Edit instruction
  • options (object):

- mask — Path to mask image (white = edit area, black = keep) - size — Output size - modelgpt-image-2 | dall-e-3 (default: gpt-image-2)

Returns: { success, url, localPath }

generateVariations(imagePath, options)

Generate creative variations of an existing image.

Parameters:

  • imagePath (string) — Path to the source image
  • options (object):

- count — Number of variations 1-4 (default: 2) - size — Output size

Returns: { success, variations: [{ url, localPath }] }

describeImage(imageSource, question)

Analyze an image using GPT-4o Vision.

Parameters:

  • imageSource (string) — File path or URL of the image
  • question (string|null) — Specific question about the image (default: general description)

Returns: { success, description }

downloadImage(url, savePath)

Download a generated image to local storage.

Parameters:

  • url (string) — Image URL from generation API
  • savePath (string|null) — Local file path (default: auto-generated in ./generated-images/)

Returns: { success, localPath }

Error Handling

ErrorCauseResolution
Invalid API keyOPENAI_API_KEY not set or invalidCheck environment variable
Content policy violationPrompt violates safety guidelinesRephrase the prompt
Rate limit exceededToo many requestsWait and retry with backoff
Image too largeSource image exceeds size limitResize to under 4MB
TimeoutGeneration took too longSimplify prompt or retry

Best Practices

  1. Always enhance prompts — Don't pass raw user input directly to the API
  2. Save locally — Download generated images; URLs expire after 1 hour
  3. Use appropriate sizes — Match the output size to the use case
  4. Prefer gpt-image-2 — Better quality and text rendering than dall-e-3
  5. Batch thoughtfully — Generate 2-4 images max per request to avoid rate limits
  6. Describe edits clearly — Be specific about what to change and where

Changelog

v1.1.0

  • Added GPT-4o native image generation support (gpt-image-2 model)
  • Added automatic prompt enhancement workflow
  • Added image download and local save functionality
  • Added style presets for quick reference
  • Added batch generation workflow
  • Improved error handling and documentation

v1.0.0

  • Initial release with DALL-E 3 support
  • Basic generate, edit, variations, and describe functions

Tags: image-generation AI-art GPT-4o image-2 gpt-image-2 visual-creation marketing product-photos illustration design openai dall-e image-editing background-removal style-transfer ui-mockup

适合场景

01

商品图处理

02

人像抠图

03

透明背景素材

04

营销设计资产

能力概览

能力 1

调用背景移除模型

能力 2

输出透明背景图片

能力 3

支持商品、人像和营销素材处理

能力 4

可接入图像编辑工作流

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.44%
按下载量换算662

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills