gpt-image-skill

仓库创建 2025年7月18日最近提交 6 小时前SkillHot 收录 20 天前
▸ 精选理由

便于将文本提示批量或程序化转换为图像素材,适合创作与原型制作。

▸ 风险提示

需要配置 OpenAI API Key 并调用外部服务,会产生费用并涉及隐私。

这个 Skill 做什么

通过 OpenAI 图像模型生成或编辑图片,使用附带的 Python 脚本调用 API。

用 OpenAI 的 GPT 图像接口生成或编辑图片,后台用附带的 Python 脚本直接调 API。只有用户明确指定要用 OpenAI/GPT 画图时才用,普通不指明供应商的图像请求要换别的工具。别用它画架构图或流程图——那些更适合用 Mermaid 或代码来画。

▸ 展开 SKILL.md 英文原文

Generate or edit images using OpenAI GPT Image API (gpt-image-2, gpt-image-1, etc). Use ONLY when the user explicitly names OpenAI or GPT as the provider: "gpt image", "openai image", "generate image with openai", "用 openai 画图", "用 GPT 生成图片". For generic image requests without a provider, use nanobanana-skill instead. Do NOT use for diagrams (架构图/流程图) — draw those with Mermaid or code.

内容创作图片生成OpenAI API脚本通用
1.6k
Stars
242
Forks
12
仓库内 Skill
+33
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/feiskyer/claude-code-settings/main/skills/gpt-image-skill/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/feiskyer/claude-code-settings/main/skills/gpt-image-skill/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# GPT Image Skill

Generate or edit images using OpenAI's GPT Image models through a bundled Python script.

## Requirements

1. **OPENAI_API_KEY**: Must be configured in `~/.gpt-image.env` or `export OPENAI_API_KEY=<your-key>`
2. **OPENAI_API_BASE** (optional): Custom API base URL for compatible endpoints (e.g. Azure OpenAI, proxies). Set in `~/.gpt-image.env` or export it.
3. **Python3 with dependencies**: openai, Pillow. Install via `python3 -m pip install -r ${CLAUDE_SKILL_DIR}/requirements.txt` if not installed yet.
4. **Executable**: `${CLAUDE_SKILL_DIR}/gpt_image.py`

## Instructions

### For image generation

1. Ask the user for:
   - What they want to create (the prompt)
   - Desire
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有