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

ai-imageAI 图像

Agent Skill

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

总安装

461

周安装

19

GitHub Stars

40

下载量

150
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/tyrchen/claude-skills --skill ai-image

简介

利用 OpenAI gpt-image-1 模型实现高质量图像生成,支持自定义艺术风格与构图比例。

  • 适用于创意素材制作、品牌视觉设计或多模态内容创作等场景。
  • 可指定主题、色调与画幅格式,灵活适配不同展示平台需求。
  • 安装命令:npx skills add https://github.com/tyrchen/claude-skills --skill ai-image
  • 需设置 OPENAI_API_KEY 环境变量,并注意输出图像的版权归属与使用限制。

SKILL.md

AI Image Generation Skill

Generate high-quality AI images using OpenAI's gpt-image-1 model with customizable styles and themes.

When to Use This Skill

Use this skill when the user wants to:

  • Generate images from text descriptions
  • Create artwork with specific artistic styles
  • Generate images with particular aspect ratios (vertical, horizontal, square)
  • Apply themed visual styles (Studio Ghibli, futuristic, Pixar, oil painting, Chinese painting)

Instructions

  1. Check for API Key: Verify that the OPENAI_API_KEY environment variable is set
  2. Gather Requirements: Ask the user for:

- Image prompt (required) - Style/aspect ratio: vertical (1024x1536), horizontal (1536x1024), or square (1024x1024) - Theme: ghibli, futuristic, pixar, oil-paint, or chinese-paint (optional) - Output location (optional, defaults to./generated_image.png)

  1. Run the CLI: Execute the main.py script with the appropriate parameters
  2. Report Results: Show the user where the image was saved and any relevant details

Available Options

Aspect Ratios (--style)

  • vertical: 1024x1536 pixels (portrait orientation)
  • horizontal: 1536x1024 pixels (landscape orientation)
  • square: 1024x1024 pixels (default)

Artistic Themes (--theme)

  • ghibli: Studio Ghibli animation style with whimsical, dreamlike aesthetics
  • futuristic: Sci-fi style with sleek designs and neon lights
  • pixar: Vibrant 3D animation style with expressive characters
  • oil-paint: Classical oil painting with rich textures and brushstrokes
  • chinese-paint: Traditional Chinese ink painting with delicate brushwork

Usage Examples

Basic Usage

uv run main.py --prompt "a cat sitting on a tree"

With Style and Theme

uv run main.py --prompt "a sunset over mountains" --style horizontal --theme oil-paint --output ./sunset.png

Futuristic Portrait

uv run main.py --prompt "a robot in a city" --style vertical --theme futuristic --output ./robot.png

Studio Ghibli Landscape

uv run main.py --prompt "a magical forest with spirits" --style horizontal --theme ghibli --output ./forest.png

Setup Requirements

This skill requires an OpenAI API key with access to the gpt-image-1 model:

export OPENAI_API_KEY='your-api-key-here'

Note: Using gpt-image-1 requires organization verification on the OpenAI platform.

Technical Details

  • Model: OpenAI gpt-image-1 (released April 2025)
  • Response Format: Base64 encoded images (b64_json)
  • Supported Sizes: 1024x1024, 1024x1536, 1536x1024
  • Maximum Resolution: Up to 4096x4096 pixels
  • Dependencies: openai>=2.7.1

Pricing Information

Usage is priced per token:

  • Text tokens: $5 per million
  • Image input tokens: $10 per million
  • Image output tokens: $40 per million

Approximate costs per generated image:

  • Low quality square: ~$0.02
  • Medium quality square: ~$0.07
  • High quality square: ~$0.19

Troubleshooting

API Key Not Set

If you see "Error: OPENAI_API_KEY environment variable not set", ensure your API key is exported in your shell session.

Organization Not Verified

gpt-image-1 requires organization verification on platform.openai.com. Visit your OpenAI account settings to complete verification.

Invalid Size Error

Ensure you're using one of the supported sizes: 1024x1024, 1024x1536, or 1536x1024.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

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

平台分布

Claude Code

30.72%
按下载量换算46

OpenCode

25.3%
按下载量换算38

Antigravity

16.69%
按下载量换算25

Codex

13.65%
按下载量换算20

Gemini CLI

7.63%
按下载量换算11

windsurf

3.4%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills