✨

Guishu GPT Image 2

Guishu GPT Image 2 · v1.0.0
可以安装,但有提示 HAS_SCRIPTS
安全 unknown 级 作者 quqi1599 公开目录收录
237 下载 0 安装 1.1k 收藏 1 浏览

简介

Guishu GPT Image 2

原始描述

Generate images with Guishu Token gpt-image-2 through the OpenAI-compatible images endpoint. Use when the user wants Guishu gpt-image-2 image generation, an...

通过你的 Agent 添加

安装目录:guishu-gpt-image-2/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/guishu-gpt-image-2/
Codex CLI~/.codex/skills/guishu-gpt-image-2/
DeepSeek Harness~/.agents/skills/guishu-gpt-image-2/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: guishu-gpt-image-2 description: Generate images with Guishu Token gpt-image-2 through the OpenAI-compatible images endpoint. Use when the user wants Guishu gpt-image-2 image generation, an OpenClaw image skill, scripted image creation, local image output, prompt-to-image tests, customer demos, or a gallery of generated images through https://api.llm-token.cn/v1/images/generations.

Guishu GPT Image 2

Generate images through the Guishu Token OpenAI-compatible image endpoint.

Quick Start

Use the bundled script. It reads the API key from environment variables in this order:

  1. LLM_TOKEN_API_KEY
  2. GUI_SHU_TOKEN_KEY
  3. OPENAI_API_KEY
export LLM_TOKEN_API_KEY="sk-..."
python3 {baseDir}/scripts/generate.py \
  --prompt "a clean product poster for a blue smart speaker, studio lighting" \
  --size 1024x1024 \
  --quality high \
  --n 1

The default endpoint is:

https://api.llm-token.cn/v1/images/generations

The default model is:

gpt-image-2

Workflow

  1. Read references/gpt-image-2-api.md when you need endpoint details, supported request fields, timeout guidance, or customer-facing setup notes.
  2. Prepare one specific image prompt. Keep prompts concrete about subject, style, composition, camera, lighting, color, and output use.
  3. Run scripts/generate.py. Prefer --response-format b64_json so the script can save files locally without depending on temporary URLs.
  4. Inspect the saved output directory. The script writes generated images, prompts.json, request.json, and index.html.
  5. If the request times out after a long wait, do not automatically retry. High-resolution requests can take 70-150 seconds and may still be billable upstream.

Useful Commands

# Dry-run without sending a billable request.
python3 {baseDir}/scripts/generate.py --prompt "test prompt" --dry-run

# Tall portrait.
python3 {baseDir}/scripts/generate.py \
  --prompt "ultra realistic portrait photo, natural light, shallow depth of field" \
  --size 1024x1792 \
  --quality high

# Multiple prompts from a text file, one prompt per line.
python3 {baseDir}/scripts/generate.py --prompt-file ./prompts.txt --n 1

# Custom endpoint if the gateway changes.
python3 {baseDir}/scripts/generate.py \
  --endpoint https://api.llm-token.cn/v1/images/generations \
  --model gpt-image-2 \
  --prompt "minimal app icon, white background"

Safety and Cost Notes

  • Do not print API keys. Prefer environment variables over command-line --api-key.
  • Avoid blind retries after long timeouts. Ask the user before retrying a request that may already have been processed.
  • For casual users, recommend the web UI first: https://image2.gpt-agent.cc/.
  • For automation or agent workflows, use the script and save local outputs.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill