跳到正文
cccskills
免费在 GitHub 公开

apimart-image-gen

Generate and download images through APIMart's asynchronous GPT-Image-2 API. Use when Codex needs APIMart image generation, GPT-Image-2 text-to-image, image-to-image with reference URLs or local image files, 1k/2k/4k output, aspect-ratio control, task polling, or saving APIMart image results locally.

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

查看安装方法

包含的文件(4)

  • SKILL.md3.0 KB
  • agents/openai.yaml226 B
  • references/api.md2.1 KB
  • scripts/apimart_image_gen.py12.3 KB

SKILL.md(原文)

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

APIMart Image Gen

Use this skill to submit GPT-Image-2 image jobs to APIMart, poll the async task result, and download returned image URLs.

Credential Rule

Read the API key from an environment variable. Do not hardcode API keys in prompts, scripts, skill files, zip packages, commits, or shell history.

Preferred variable:

export APIMART_API_KEY="..."

The helper also accepts APIMART_TOKEN as a fallback.

Quick Start

Use the bundled helper for normal requests:

python scripts/apimart_image_gen.py generate \
  --prompt "一只橘猫坐在窗台上看夕阳,水彩画风格" \
  --size "16:9" \
  --resolution "2k" \
  --output-dir ./outputs/apimart-image-gen

The script submits POST /v1/images/generations, waits before the first poll, queries GET /v1/tasks/{task_id}, and downloads completed image URLs into --output-dir.

Workflows

Text-to-image:

python scripts/apimart_image_gen.py generate \
  --prompt "a corgi astronaut on the moon, cinematic" \
  --size "16:9" \
  --resolution "2k"

Image-to-image with public URLs:

python scripts/apimart_image_gen.py generate \
  --prompt "把参考图变成水彩画风格" \
  --image-url "https://example.com/photo.jpg" \
  --size "4:3" \
  --resolution "2k"

Image-to-image with local files:

python scripts/apimart_image_gen.py generate \
  --prompt "融合这些参考图,生成一张公众号封面" \
  --image-file ./reference-a.png \
  --image-file ./reference-b.jpg \
  --size "21:9" \
  --resolution "2k"

Check an existing task:

python scripts/apimart_image_gen.py status \
  --task-id task_01KPQ7J7DWB7QZ3WCEK3YVPBRA \
  --download \
  --output-dir ./outputs/apimart-image-gen

Validate request shape without calling the API:

python scripts/apimart_image_gen.py generate \
  --prompt "星空下的古老城堡" \
  --size "16:9" \
  --resolution "4k" \
  --dry-run

Defaults And Limits

  • Model is fixed to gpt-image-2.
  • n is fixed to integer 1; do not send "1" as a string.
  • Valid resolution values are 1k, 2k, and 4k.
  • Valid ratio values are auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, and 9:21.
  • Pixel sizes such as 1881x836 or 887x1774 are also accepted.
  • Up to 16 reference images can be supplied across --image-url and --image-file.
  • Prefer putting aspect ratio in --size, not in the prompt, to avoid conflicting instructions.
  • Result URLs should be downloaded promptly because APIMart reports an expires_at timestamp.

Reference

Read references/api.md when you need endpoint details, status values, error handling, or the size/resolution map.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Find low-follower viral Bilibili videos for account-growth topic selection. Use when the user asks for B站低粉爆款, Bilibili low-fan hits, 起号选题 from B站, niche Bilibili references, or videos ranked by UP主粉丝数, 播放, 点赞, 投币, 收藏, 分享, 评论, 弹幕, and 播放粉丝比.

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

kangarooking/kangarooking-skills6802026年9月7日 更新

用于处理写书过程中的章节截图与插图工作流。适用于:梳理某一章需要哪些截图、逐步给出 Claude Code 实操提示词、规定截图文件名与图号映射、回填本地 Markdown 中的图片位置、清理作者备注为读者版正文、以及把章节和图片按正确位置同步到 Feishu 文档。用户如果提到“书的截图”“章节配图”“图号对应”“放到原文里”“上传飞书文档”“按刚才那套流程来”,应触发此 skill。

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

kangarooking/kangarooking-skills6802026年9月7日 更新

Use for the owner's personal creator-content thumbnails and covers for short video, Bilibili, Douyin, WeChat, or similar platforms from a title, summary, established real portrait, kangaroo IP, product Logo, screenshot, or app reference. It enforces the owner's visual signature, runs a four-concept selection stage, then five responsive platform ratios. Do not use for generic clients, book or album covers, slide title pages, generic posters or social cards, article body illustrations, document headers, website hero art, or unrelated image edits unless the user explicitly invokes cover-skill and accepts the personal-signature rules.

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

kangarooking/kangarooking-skills6802026年9月7日 更新

Initialize a Harness Engineering framework in the current project. Use when user says 'harness', 'init harness', 'initialize framework', 'setup harness engineering', '/harness', or wants to set up a Plan-Build-Verify development workflow with specialized agents (planner, generator, evaluator). Creates CLAUDE.md, agent definitions, command templates, hooks, and documentation structure for autonomous AI-driven development.

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

kangarooking/kangarooking-skills6802026年9月7日 更新

hy-3d-gen

免费

输入文字或图片,通过腾讯混元生3D TokenHub/OpenAI 兼容接口或腾讯云 SDK 生成3D模型。支持文生3D、图生3D、多视图生3D、PBR、白模、草图生3D、智能拓扑生3D;当用户要求生成或查询混元3D模型时使用。

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

kangarooking/kangarooking-skills6802026年9月7日 更新

Standalone multi-agent image generation skill for Hermes. Includes an internal design compiler, GPT-Image-2 generation via apimart.ai, case library reuse, interactive reference selection, batch workflows, and style-consistent series generation.

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

kangarooking/kangarooking-skills6802026年9月7日 更新

查看 kangarooking 的全部技能

报告此技能的问题