当前位置: 首页 > Skill >

Picnow — 图像生成

Picnow — 图像生成

Picnow — 图像生成

Picnow 图像生成 Skill —— 让 Claude Code / Codex / OpenClaw 等任何兼容 SKILL.md 的 AI agent 一句话生成图片。 基于 GPT-Image-2 模型(api.letmego.top)。支持文生图、图生图、风格化、改图,覆盖 1K / 2K / 4K 三档分辨率和方图 / 横图 /竖图三种宽高比。适合产品主图、海报、Banner、社交媒体配图、插画、封面、缩略图等场景。 使用前需在 https://api.letmego.top 注册并获取令牌,设置环境变量 LETMEGO_API_KEY 即可。

1.1.0 2026.11.24 474
获取Skill文件查看使用说明
作 者:顾宁 许可证: 更新时间:2026.11.24
本文目录收起

Picnow Image Generation Skill

Picnow wraps the api.letmego.top GPT-Image-2 API. This skill handles text-to-image and image-to-image (edit) generation.

The script uses the async API (/v1/async/images/...) — it submits the job, polls until completion, and prints the final URL. This avoids the 100s Cloudflare edge timeout that 2K/4K renders used to hit. A single call may take up to ~5 minutes for heavy renders; no extra flags needed.

1. Environment check

Before generating, verify the token is set:

if [ -z "$LETMEGO_API_KEY" ]; then
  echo "❌ LETMEGO_API_KEY is not set."
  echo "Visit https://api.letmego.top to get your 令牌, then:"
  echo "  export LETMEGO_API_KEY=your_token"
  exit 1
fi

2. Gather parameters

Ask the user if not already provided:

Parameter Options Default
prompt any text description (required)
quality 1k · 2k · 4k 1k
aspect square · landscape · portrait square
n 1 – 10 1
ref local file path (optional) (none → text-to-image)

Quality guide:

  • 1k — up to 1536×1536, fast and cheap, great for previews and social media
  • 2k — up to 2048×2048, suitable for e-commerce and print
  • 4k — up to 3840×2160, landscape or portrait only (no 4k square)

3. Locate and run the generation script

# Resolve skill directory (user-global → project-local)
SKILL_DIR="$HOME/.claude/skills/picnow"
[ -d "$SKILL_DIR" ] || SKILL_DIR=".claude/skills/picnow"

node "$SKILL_DIR/scripts/generate.js" 
  --prompt "PROMPT_HERE" 
  --quality QUALITY 
  --aspect ASPECT 
  --n N
  # add: --ref /path/to/image.jpg   for image-to-image

The script outputs a single JSON line:

{ "urls": ["https://...cdn.../image.png"] }

4. Present results

  • Display each URL as a clickable link or inline image.
  • For multiple images, list them with index labels (1/3, 2/3, …).
  • Offer to download, save to a project, or run another variation.

Error handling

Exit condition Meaning Action
LETMEGO_API_KEY missing Token not set Guide user to picnow settings
HTTP 401 Token invalid Ask user to check or refresh token
HTTP 402 / quota Insufficient balance Direct to letmego.top recharge
HTTP 4xx other Bad request Show upstream error message
Network error Connection issue Suggest retry

Examples

Text-to-image:

User: 帮我画一张珠宝产品主图,白色背景,高清
→ quality=2k, aspect=square
→ node "$SKILL_DIR/scripts/generate.js" 
    --prompt "jewelry product hero shot, white background, studio lighting, photorealistic" 
    --quality 2k --aspect square --n 1

Image-to-image:

User: 把这张图改成动漫风格 [uploads reference.jpg]
→ quality=1k, ref=reference.jpg
→ node "$SKILL_DIR/scripts/generate.js" 
    --prompt "anime style illustration, vibrant colors, clean linework" 
    --quality 1k --aspect square --n 1 --ref reference.jpg

Landscape banner:

User: Generate a landscape banner for a coffee brand
→ quality=1k, aspect=landscape, n=2
→ node "$SKILL_DIR/scripts/generate.js" 
    --prompt "coffee brand lifestyle banner, warm tones, morning light, artisan aesthetic" 
    --quality 1k --aspect landscape --n 2

相关文章

更多
ai-image-generation统一调用50+图像模型

ai-image-generation Skill 通过 inference.sh CLI 统一了 50 多个图像模型的调用入口,涵盖 GPT-Image-2.6、FLUX 等主流模型。该方案将模型选择与参数配置集中管理,简化了文生图、图生图等任务的发起流程,便于团队在批量生成或横向评测时切换模型,但需注意各模型能力差异及输入格式限制。

2026.11.12 181
Skill 文件
  • SKILL.md
    • Picnow Image Generation Skill
    • 1. Environment check
    • 2. Gather parameters
    • 3. Locate and run the generation script
    • 4. Present results
    • Error handling
    • Examples
  • 项目或源文件

相关 Skill

更多
图生PPT 图生PPT 用 OpenAI gpt-image-2 一键生成高审美、高完成度的 PPT
暗格人物封面图 暗格人物封面图 使用gpt-image-2模型生成小红书封面,固定风格为深色背景+人物侧影+亮黄大字,3:4竖版比例,电影感光影。当用户需要生成暗色调人物封面、深色背景小红书封面、人物IP风格封面时使用此技能。
xiaohongshu |小红书 AI 宣传图和图文笔记技能 xiaohongshu |小红书 AI 宣传图和图文笔记技能 小红书 AI 宣传图和图文笔记技能 - 根据用户提示词自动判断生成单张或多张宣传图,调用 gpt-image-2 或火山引擎 Ark 文生图模型生成视觉素材并合成小红书图片;仅在用户明确要求发布时才执行发布。
GPT Image 2 API GPT Image 2 API 通过OpenAI gpt-image-2模型生成和编辑图片。通用CLI,支持任意AI代理(Hermes、Claude Code、Codex、OpenClaw等)。
AI绘图大师 AI绘图大师 基于六维视觉分析框架的高级AI绘图提示词工程技能。它专为即梦、GPT-Image-2、Nano Banana 等新一代文生图模型量身定制,能够将模糊的创意或复杂的画面,转化为表现力极强的自然语言提示词。 SOCAWT 六维框架解析:不只是看表面,通过系统化的视觉分析框架深度解构画面,确保提示词逻辑严密、细节拉满。 🗣️ 自然语言叙事流:彻底抛弃传统的“标签式/词汇堆砌”写法,采用符合人类语感与模型深度理解的自然语言长句,激发新一代模型的最佳生成效果。 🔄 双模式智能切换: 模式一:灵感创作 — 没有参考图?只需文字描述你的想象,即可生成高质量提示词。 模式二:逆向提取 — 提供参考图,自动识别图像类型,自适应分析深度,精准提取并还原画面提示词。