Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (api2img) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Api2img Skill
功能
让任何使用非官方 API-Key 的 Agent 具备接近原生的生图能力。
api2img 专门面向通过中转 API 使用 Agent,同时又有图片生成和图片编辑需求的人。
支持 Codex、Claude Code、OpenClaw、Hermes 等可安装技能的 Agent,也兼容其他可手动接入的 Agent。

安装
复制以下指令发给 Agent:
npx api2img生图 API 中转商推荐
朋友搭的,低价走量:
- 个人请求数据每天删除,隐私放心
- 支持生图(1k图=0.01元/张,2k图=0.02元/张,4k图/张=0.03元/张)
- Claude Code / Codex 都支持(8.8 人民币 = 100 美元 API 额度,地板价可验模型)
调用方式
会在必要时自动被 Agent 调用,正常生图用也可以使用,比如:
- 【生成】生成一张xxx图
- 【修改】替换图片里的某个部分
- 【上传】修改我上传图片里的xxx
支持指令
用自然语言跟 Agent 说:
安装:
- 把 api2img 安装成全局技能(默认)
- 把 api2img 安装到当前项目
配置:
- 帮我配置 api2img 的 base url
- 帮我更新 api2img 的 api key
- 帮我清空 api2img 的配置隐私声明
- 本技能不会上传你的任何数据
- 生成图片时,你的提示词、上传的图片会经过你配置的三方 API 中转商,请不要处理身份证件、人脸、工作机密等各类私人敏感内容