使用gpt接口进行绘图

SKILL前端设计
前端设计 未标注权限 许可证不明确
安装这个技能

在你的agent工具中,使用gpt-image2接口进行绘图,需额外配置api-key。Generate images from natural-language requests, optionally using one or more reference images. Use this when the user asks Codex to draw, generate, create, or render an image without masks or local canvas editing.

一句话选型结论

按资料字段整理

使用gpt接口进行绘图是前端设计类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类前端设计 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_1314aee0/sdgsdfg234f
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

前端设计
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_1314aee0仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-11-06上游最后核验时间 · 数据更新 2026-11-06
正文体量9.0 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
出页面与组件

按描述生成页面结构和组件草稿。

调整样式与布局

改间距、配色与响应式布局。

生成设计说明

把设计稿整理成开发能接的说明。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在前端设计场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
使用gpt接口进行绘图当前 未标注权限 未标注 未标注 未标注 有
前端设计 只读 GitHub 仓库 882.3 万 Codex、Claude、Cursor 有
Vercel 组合模式 联网访问 GitHub 仓库 385.9 万 Codex、Claude、Cursor 有
Vercel React native skills 前端 只读 GitHub 仓库 246.9 万 Codex、Claude、Cursor 有
adapt 搜索 浏览器控制 GitHub 仓库 202.7 万 Codex、Claude、Cursor 有
使用我的浏览器 浏览器控制 GitHub 仓库 184.8 万 Codex、Claude、Cursor 有

SKILL.md 全文

9.0 KB
模型实际读到的说明书原文,来自技能仓库

GPT Image 2

User Experience

The user should feel they are talking to a drawing assistant, not operating an API wrapper.

When the user asks for an image, do the interpretation yourself:

  • Extract the picture they want.
  • Detect any local image paths or attached image files that should be used as references.
  • Infer count, ratio, resolution, quality, and save location from ordinary language.
  • Run the configured image-generation backend yourself.
  • Report the saved local file path and any real generation/download error.

Do not ask the user to choose a backend, channel, endpoint, request mode, provider, environment variable, or CLI flag.
Do not reveal internal supplier/channel names.
Do not expose command-line details unless the user explicitly asks for command usage or debugging output.

First-Run Setup

Before the first generation, inspect scripts/.env.

If scripts/.env does not exist, create it from scripts/.env.example.
If URL or sk is missing, do not generate yet. Ask the user:

“请提供画图接口 URL 和 sk。你也可以顺便告诉我默认生成几张、默认图片比例、默认清晰度、默认质量和默认保存位置;如果不提供,我会使用当前默认配置:1 张、1:1 方图、1K、低质量、默认输出目录。”

After the user provides configuration, write it to scripts/.env:

  • URL -> GPT_IMAGE2_BASE_URL
  • sk -> GPT_IMAGE2_API_KEY
  • default count -> GPT_IMAGE2_N
  • default resolution -> GPT_IMAGE2_RESOLUTION
  • default aspect ratio -> GPT_IMAGE2_ASPECT_RATIO
  • default quality -> GPT_IMAGE2_QUALITY
  • default output directory -> GPT_IMAGE2_OUT_DIR

If the user omits optional defaults, write the current defaults explicitly:

  • GPT_IMAGE2_N=1
  • GPT_IMAGE2_RESOLUTION=1k
  • GPT_IMAGE2_ASPECT_RATIO=1:1
  • GPT_IMAGE2_QUALITY=
  • GPT_IMAGE2_OUT_DIR=./image2_output
  • GPT_IMAGE2_MODE=current
  • GPT_IMAGE2_MODEL=gpt-image-2
  • GPT_IMAGE2_TIMEOUT_MS=240000

After writing .env, tell the user the effective default drawing configuration in natural language, without printing the sk. Then continue with the requested generation if they already gave an image prompt.

Normal Conversation Flow

  1. Identify the actual image prompt.
    Keep it close to the user’s words. Expand or polish the prompt only when the user asks for that.

  2. Detect reference images.
    If the user provides one or more local image paths as references, pass them to the drawing script. Reference-image requests currently produce one output image even if the configured default count or user wording asks for multiple variants.

  3. Infer image count.
    Use the configured default count when the user does not specify one. Use multiple images only for prompt-only requests when the user asks for variants, multiple drafts, or a specific number.

  4. Infer resolution.
    Use the configured default resolution when the user does not specify one. Use 2k for requests like “高清”, “更清晰”, or “细节多一点”. Use 4k for requests like “4K”, “超清”, “海报级”, “大图”, or “适合打印”.

  5. Infer aspect ratio.
    Use explicit ratios when the user provides them. Use 9:16 or 3:4 for vertical posters, phone wallpapers, and portrait-oriented images. Use 16:9 for video covers, desktop wallpapers, and horizontal scenes. Use the configured default aspect ratio when no ratio is implied.

  6. Infer quality.
    Use low quality by default unless the user explicitly asks for higher quality, high detail, premium-looking output, or names a specific quality level.

  7. Execute generation.
    Use the default configured drawing path for ordinary requests. Use compatibility test mode only when the user explicitly asks to test an official-compatible image API or inspect request shape.

  8. Reply naturally.
    Give the saved file path. Mention only actionable errors, such as missing configuration, rejected prompt, failed request, failed download, or empty image payload.

User-Facing Language

Use product-level wording:

  • “当前画图服务”
  • “默认画图通道”
  • “这次生成”
  • “保存到了...”
  • “当前画图服务还没配置好”

Avoid implementation wording in normal replies:

  • endpoint
  • upstream
  • provider
  • request body
  • env var
  • sk, unless the user is clearly configuring the service
  • supplier or channel names
  • script flags

If configuration is missing outside the first-run flow, always ask:

“请提供画图接口 URL 和 sk。”

Guided User Prompt

When the user seems unsure how to describe an image request, guide them with a short natural-language prompt like this:

“你可以直接告诉我想画什么,也可以补充这些信息:参考图、生成几张、图片比例、清晰度、质量要求、保存位置。

例如:
‘画一张赛博朋克雨夜街头,横版 16:9,2K,低质量,生成 2 张。’
‘画一个国风女孩头像,方图,默认配置。’
‘画一张手机壁纸,9:16,4K,高质量。’
‘参考这两张图,生成一张同风格海报,16:9,2K。’

如果你不特别说明,我会使用当前默认配置。初始默认配置是:生成 1 张、1:1 方图、1K、低质量,并保存到默认输出目录。有参考图时,这次只输出 1 张。”

Supported Requests

This skill supports image generation from text, with optional reference images:

  • Text prompt
  • Optional reference images: 1 to 16 local image files, up to 10MB each
  • One or more generated images for prompt-only requests
  • One generated image for reference-image requests
  • Resolution: 1k, 2k, 4k
  • Aspect ratio: 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 21:9, 9:21
  • Quality: auto, low, medium, high
  • Output directory

This skill does not support:

  • Inpainting
  • Masks
  • Local repaint workflows
  • Multi-turn canvas editing

If the user asks for one of those unsupported workflows, explain briefly that this drawing skill supports text generation and reference-image guided generation, but not mask-based editing or local canvas repainting. Route to the appropriate available image editing or product workflow if one exists.

Internal Execution

Use scripts/gpt-image2.mjs as the execution backend.

For ordinary user requests, use the configured default mode.
For explicit official-compatible API validation, use --mode official-compatible.

The script accepts natural controls as flags, but those flags are for Codex execution only:

node scripts/gpt-image2.mjs "生成一张雨夜街头的电影感海报"
node scripts/gpt-image2.mjs --prompt "生成一张雨夜街头的电影感海报" -n 4
node scripts/gpt-image2.mjs --prompt "生成一张雨夜街头的电影感海报" --resolution 4k --aspect-ratio 16:9
node scripts/gpt-image2.mjs --prompt "生成一张雨夜街头的电影感海报" --out-dir ./image2_output
node scripts/gpt-image2.mjs --prompt "参考两张图,生成一张同风格海报" --image /path/to/reference-1.png --image /path/to/reference-2.jpg --resolution 2k --aspect-ratio 16:9
node scripts/gpt-image2.mjs --dry-run --prompt "检查请求体" --resolution 2k --aspect-ratio 16:9
node scripts/gpt-image2.mjs --dry-run --prompt "检查参考图请求形态" --image /path/to/reference.png

Use --dry-run only for internal validation or when the user explicitly asks to inspect request shape. Do not use it for normal generation.

Reference-image execution details:

  • Prompt-only requests use the JSON generation path and include n.
  • Reference-image requests use the multipart edit path.
  • Append each reference file as a repeated image multipart field.
  • Send model, prompt, size, and optional quality as multipart fields.
  • Do not send n or response_format for reference-image requests.
  • Save at most the first returned image for reference-image requests.

Internal Configuration

Read configuration from scripts/.env.

Keys:

  • GPT_IMAGE2_API_KEY
  • GPT_IMAGE2_BASE_URL
  • GPT_IMAGE2_MODEL
  • GPT_IMAGE2_MODE
  • GPT_IMAGE2_N
  • GPT_IMAGE2_RESOLUTION
  • GPT_IMAGE2_ASPECT_RATIO
  • GPT_IMAGE2_QUALITY
  • GPT_IMAGE2_OUT_DIR
  • GPT_IMAGE2_TIMEOUT_MS

Do not mention these keys to ordinary users. Mention them only when the user is configuring or debugging the skill.

Initial defaults should be represented in .env, not only in prose:

  • GPT_IMAGE2_N=1
  • GPT_IMAGE2_RESOLUTION=1k
  • GPT_IMAGE2_ASPECT_RATIO=1:1
  • GPT_IMAGE2_QUALITY= means the current drawing path falls back to low quality unless the user explicitly requests another quality.
  • GPT_IMAGE2_OUT_DIR=./image2_output

Output Handling

The script saves images from:

  • pure Base64 payloads
  • data:image/...;base64,... payloads
  • URL payloads in data[].url

If the response contains no usable image payload, report that the generation returned no image.
If URL download fails, report the download failure rather than retrying indefinitely.

常见问题

5 问
答案由本站依据条目字段整理
使用gpt接口进行绘图怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_1314aee0/sdgsdfg234f。安装方式为未标注。装完刷新技能列表或重开客户端。

使用gpt接口进行绘图支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

使用gpt接口进行绘图权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

使用gpt接口进行绘图收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

使用gpt接口进行绘图用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-11-06。