GPT-4o 图像生成与编辑 API 工具
简介
通过PoYo AI调用GPT-4o Image API实现文生图与图生图编辑,需配置API密钥,支持任务提交与状态轮询
原始描述
Use PoYo AI GPT-4o Image through the `https://api.poyo.ai/api/generate/submit` endpoint. Use when a user wants to generate or edit media with this model fami...
通过你的 Agent 添加
安装目录:poyo-gpt-4o-image/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
本 Skill 是 PoYo AI GPT-4o Image 模型的 API 集成工具,提供完整的图像生成工作流支持。用户需先获取 PoYo API 密钥(POYO_API_KEY),然后通过标准化接口提交图像生成任务。
主要功能包括:
- 模型选择:支持
gpt-4o-image(通用生成)和gpt-4o-image-edit(图像编辑)两种模式 - 任务提交:构建符合 PoYo 规范的 JSON 负载,发送至
https://api.poyo.ai/api/generate/submit - 状态追踪:获取
task_id后可通过轮询或回调 URL 监控任务进度
使用流程简洁明了:选择模型 → 构建请求体 → 提交任务 → 获取任务 ID → 等待结果返回。Skill 内置了参考脚本和文档,方便用户快速上手。
显著优点
功能聚焦:专为 GPT-4o 图像生成场景优化,避免通用工具的冗余复杂度,学习成本低。
安全传输:全程 HTTPS 加密,API 密钥通过环境变量注入,无硬编码泄露风险。
无依赖负担:纯 Markdown 文档 + Shell 脚本实现,零第三方依赖,无供应链攻击隐患。
文档完善:提供官方链接、API 参考、示例代码,开发者可快速集成到自有工作流。
MIT-0 许可:宽松的开源协议,商业使用无限制。
潜在缺点与局限性
第三方依赖:核心功能完全依赖 PoYo AI 服务可用性,若官方 API 变更或受限,Skill 将失效。
成本门槛:PoYo 为商业服务,需付费获取 API 密钥,高频调用可能产生较高费用。
异步复杂性:图像生成耗时较长,用户需自行处理轮询逻辑或 webhook 配置,非即时响应。
隐私考量:提示词、参考图片 URL 等数据需发送至第三方服务器,不适合处理敏感或机密内容。
T3 来源风险:由个人开发者维护,长期更新承诺与技术支持能力弱于企业级产品。
适合的目标群体
- AI 应用开发者:需要将 GPT-4o 图像能力集成到产品中的工程师
- 内容创作者:设计师、营销人员等需要批量生成或编辑图像的创意工作者
- 技术爱好者:希望快速体验 GPT-4o 图像 API 而不愿研读冗长文档的个人用户
- 自动化工作流构建者:寻求将 AI 生图能力接入 CI/CD 或批处理流程的 DevOps 人员
使用风险说明
数据外泄风险(LOW):所有生成请求均发送至 PoYo 服务器,虽经加密传输,但用户应意识到数据将离开本地环境。避免在提示词中包含个人身份信息、商业机密或其他敏感内容。
服务可用性风险:依赖外部 SaaS 服务,可能受网络延迟、配额限制、服务维护等因素影响。建议实现重试机制和降级策略。
API 密钥管理风险:密钥泄露可能导致账户被滥用。务必使用环境变量注入,禁止硬编码或提交至版本控制仓库。
成本失控风险:未设置用量监控可能导致意外高额账单。建议配置配额告警,本地测试时使用低成本方案验证逻辑。
合规性注意:用于商业场景时需确认 PoYo 服务条款与生成内容的版权归属政策,避免法律纠纷。
技能正文
---
name: poyo-gpt-4o-image
description: Use PoYo AI GPT-4o Image through the https://api.poyo.ai/api/generate/submit endpoint. Use when a user wants to generate or edit media with this model family, prepare PoYo-compatible payloads, submit jobs, or poll task status for gpt-4o-image, gpt-4o-image-edit.
metadata: {"openclaw": {"homepage":"https://poyo.ai/models/gpt-4o-image-api", "requires": {"bins": ["curl"], "env": ["POYO_API_KEY"]}, "primaryEnv": "POYO_API_KEY"}}
PoYo GPT 4O Image
PoYo Links
- Model page: https://poyo.ai/models/gpt-4o-image-api
- API docs: https://docs.poyo.ai/api-manual/image-series/gpt-4o-image
- API key page: https://poyo.ai/dashboard/api-key
PoYo Links
Use this skill to submit and track PoYo jobs for the GPT-4o Image family.
Quick workflow
- Choose the right model id for the requested output.
- Build the request body for
POST https://api.poyo.ai/api/generate/submit.
- Send Bearer-authenticated JSON with
Authorization: Bearer <POYO_API_KEY>.
- Save the returned
task_id.
- Poll unified task status or wait for
callback_url notifications.
Request rules
- Require top-level
model.
- Keep prompts concrete and outcome-focused.
- Require
input.prompt unless the user already supplied a full payload.
- Use
input.image_urls only when the task needs reference or source images.
- Use
input.size to match the intended aspect ratio or canvas.
Model selection
gpt-4o-image
POST https://api.poyo.ai/api/generate/submit.Authorization: Bearer <POYO_API_KEY>.task_id.callback_url notifications.- Require top-level
model. - Keep prompts concrete and outcome-focused.
- Require
input.promptunless the user already supplied a full payload. - Use
input.image_urlsonly when the task needs reference or source images. - Use
input.sizeto match the intended aspect ratio or canvas.
Model selection
gpt-4o-image
gpt-4o-imageUse for general generation with this model variant.
gpt-4o-image-edit
Use for editing or modifying supplied images.
Execution
- Read
references/api.md for endpoint details, model ids, key fields, example payloads, and polling notes.
- Use
scripts/submit_gpt_4o_image.sh to submit a raw JSON payload from the shell.
- If the user only needs a curl example, adapt the example from
references/api.md instead of rewriting from scratch.
- After submission, report the
task_id clearly so follow-up polling is easy.
Output expectations
references/api.md for endpoint details, model ids, key fields, example payloads, and polling notes.scripts/submit_gpt_4o_image.sh to submit a raw JSON payload from the shell.references/api.md instead of rewriting from scratch.task_id clearly so follow-up polling is easy.When helping with this model family, include:
- chosen model id
- final payload or a concise parameter summary
- whether reference images are involved
- returned
task_idif a request was actually submitted - next step: poll status or wait for webhook
Notes:
Needs POYO_API_KEY from https://poyo.ai
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。