跳到正文
cccskills
免费在 GitHub 公开

chatgpt-imagegen

Generates or edits raster images through OpenAI's Image API. Use for text-to-image work, reference-based edits, masks, transparent assets, and product or editorial visuals.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra星标 5(GitHub 5 + cccskills 0)
集成工具OpenAI

实测评分 未实测

查看安装方法

包含的文件(4)

  • SKILL.md2.8 KB
  • requirements.txt18 B
  • scripts/chatgpt-img455 B
  • scripts/generate_image.py18.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

ChatGPT Image Generation

Use the bundled chatgpt-img CLI for generation and edits. Resolve its path relative to this SKILL.md.

Setup

python3 -m pip install -r <skill-directory>/requirements.txt
export OPENAI_API_KEY='...'

OPENCODE_OPENAI_API_KEY is accepted as a fallback. CHATGPT_IMAGE_DEFAULT overrides the default model.

Image requests cost money. Confirm scope before generating many images or using high quality repeatedly.

Generate

<skill-directory>/scripts/chatgpt-img \
  'A linocut illustration of a lighthouse in heavy rain' \
  ./lighthouse.png \
  --size 1536x1024 \
  --quality high

Edit

Single reference:

<skill-directory>/scripts/chatgpt-img edit \
  ./portrait.png \
  'Use warm editorial lighting; preserve identity, pose, and clothing' \
  ./portrait-edited.png \
  --quality high

Multiple references:

<skill-directory>/scripts/chatgpt-img \
  --input ./portrait.png \
  --input ./moodboard.png \
  'Apply the moodboard lighting and palette while preserving the portrait identity' \
  ./portrait-styled.png

Optional masked edit:

<skill-directory>/scripts/chatgpt-img edit \
  ./input.png \
  'Replace the masked background with a cloudy coastline' \
  ./output.png \
  --mask ./mask.png

Important options

  • --model: defaults to gpt-image-2
  • --size: supported dimensions or auto
  • --quality: GPT Image uses auto, low, medium, or high
  • --background: auto, transparent, or opaque
  • --format: png, jpeg, or webp
  • --compression: 0 through 100 for JPEG/WebP
  • --num: number of outputs
  • --input: repeatable reference image for edit mode
  • --mask: optional edit mask
  • --input-fidelity: supported by selected older GPT Image models, not gpt-image-2

Use --help and edit --help for the complete interface.

Prompting edits

State both the change and the invariants. For example, name the identity, geometry, text, logos, pose, camera angle, or materials that must remain unchanged. Describe lighting, palette, composition, and finish positively instead of relying on long negative lists.

Verification

  1. Check the process exit status.
  2. Confirm every expected output file exists and is non-empty.
  3. Report exact paths and any revised prompt returned by the API.
  4. Inspect the image with an available viewer when visual verification is part of the task.

Never expose API keys. Error output may include safe request metadata, but it must not include prompt contents or credentials.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Transcribes local audio into Markdown with Gemini 3.5 Transcribe, including speaker labels and provider timestamps. Use for interviews, meetings, lectures, podcasts, voice notes, and similar recordings.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

better-ui

免费

Design engineering principles for making interfaces feel polished. Use when building UI components, reviewing frontend code, implementing animations, hover states, shadows, borders, micro-interactions, enter/exit animations, choosing or reviewing icons, or any visual detail work. Triggers on UI polish, design details, "make it feel better", "feels off", stagger animations, theme switch transitions, border radius, optical alignment, image outlines, box shadows, icons, icon stroke weight, icon states, motion restraint.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

Explores and validates a feature, component, workflow, or behavior change before implementation. Use when work needs clarified intent, compared approaches, and an approved direction.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

bro

免费

Restates the previous response in plain, concise language. Use only when the user invokes bro or explicitly asks for a simpler explanation.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

Applies language-neutral engineering standards when writing or reviewing code, especially around boundaries, failures, domain models, dependencies, tests, and type safety.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

deslopify

免费

Removes generic AI mannerisms, inflated phrasing, and repetition from prose while preserving the author's voice. Use when the user asks to deslopify or naturalize a draft.

中文简介正在准备中。当前显示原文说明。

iurysza/ultra52026年10月22日 更新

查看 iurysza 的全部技能

报告此技能的问题