Token导航 LogoToken导航TokenDH.com
图像处理敏感数据github未标认证来源可访问许可证需确认审计通过

invokeai-image-geninvokeai 图像生成

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

1,378

周安装

58

GitHub Stars

125

下载量

483
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:invokeai-image-gen(invokeai 图像生成)
来源仓库:https://github.com/sammcj/agentic-coding
仓库路径:skills/invokeai-image-gen
安装命令:
npx skills add https://github.com/sammcj/agentic-coding --skill invokeai-image-gen
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sammcj/agentic-coding --skill invokeai-image-gen

简介

invokeai-image-gen 用于辅助图像生成、图片编辑或视觉素材处理。

  • 适合根据文本生成图片、处理背景或整理视觉提示词。
  • 使用时需确认输入图片、输出格式和模型限制条件。
  • 涉及人物、品牌或公开展示素材时,应额外核对授权和真实性。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

InvokeAI Image Generation

Generate images via InvokeAI's REST API. Supports FLUX.2 Klein (default), Z-Image Turbo, FLUX.1, and SDXL.

Quick Start

Simply call the script with your prompt and the output file name:

python scripts/generate.py -p "A dramatic sunset over snow-capped mountains, warm orange light reflecting off a still alpine lake in the foreground. Soft clouds catch the fading light." -o sunset.png

Overriding The Default Model

If the user asks you to use a specific model, first find the model key, then use it in the command:

python scripts/generate.py --list-models | grep -i 'flux'

python scripts/generate.py -p "A tabby cat with bright green eyes sits on a weathered wooden windowsill, soft afternoon light streaming through lace curtains. Cosy, intimate mood." --model MODEL_KEY -o cat.png

Options

OptionDescription
--prompt, -pGeneration prompt (required)
--negative, -nNegative prompt (SDXL only)
--model, -mModel key (UUID) or partial name match
--width, -W / --height, -HDimensions
--steps, -sDenoising steps
--cfg, -cCFG scale
--guidance, -gGuidance strength (FLUX.1 only)
--schedulerSampling scheduler
--seedRandom seed
--output, -oOutput path (default: invokeai-{seed}.png)
--list-modelsList installed models
--jsonJSON output

Model Defaults

Note: FLUX.2 Klein is the latest model which is used by default.

ModelStepsGuidanceCFGScheduler
FLUX.2 Klein43.51.0euler
Z-Image Turbo9-1.0euler
FLUX.1 dev283.51.0euler
FLUX.1 Krea dev284.51.0euler
FLUX.1 Kontext dev282.51.0euler
FLUX.1 schnell40.01.0euler
SDXL25-6.0dpmpp_2m_k
SDXL Turbo8-1.0dpmpp_sde

All models default to 1024x1024. FLUX requires dimensions divisible by 16, SDXL by 8.

FLUX.1 Variant Notes

  • FLUX.1 dev: Standard text-to-image model, balanced quality/speed
  • FLUX.1 Krea dev: Fine-tuned for aesthetic photography, use higher guidance (4.5)
  • FLUX.1 Kontext dev: Image editing model, use lower guidance (2.5)
  • FLUX.1 schnell: Distilled fast model, 4 steps, no guidance needed

Model Selection

Auto-priority: Klein > Z-Image > FLUX > SDXL

Detection by name/base:

  • flux2_klein: "klein" in name or "flux2" in base
  • flux_krea: "krea" in name (FLUX.1 base)
  • flux_kontext: "kontext" in name (FLUX.1 base)
  • flux_schnell: "schnell" in name (FLUX.1 base)
  • flux: "flux" in base (standard dev)
  • zimage: "z-image" in base or "z-image/zimage" in name
  • sdxl: "sdxl" in base (turbo/lightning variants auto-detect)

Prompting (general information, but especially useful for FLUX.2 Klein)

Write prose, not keywords. Structure: Subject -> Setting -> Details -> Lighting -> Atmosphere

A weathered fisherman in his late sixties stands at the bow of a wooden boat,
wearing a salt-stained wool sweater. Golden hour sunlight filters through
morning mist, creating quiet determination and solitude.

Key techniques:

  1. Front-load critical elements (word order matters)
  2. Specify lighting: source, quality, direction, temperature
  3. Include sensory texture: materials, reflections, atmosphere

Good: "A woman with short blonde hair poses against a light neutral background wearing colourful earrings, resting her chin on her hand."

Bad: "woman, blonde, short hair, neutral background, earrings"

Append style tags: Style: Country chic. Mood: Serene, romantic.

Troubleshooting

IssueSolution
Connection refusedCheck InvokeAI is running
Model not foundUse --list-models for valid keys
Dimensions errorFLUX: multiples of 16, SDXL: 8
Black images (macOS)Set precision: bfloat16 in invokeai.yaml

If the script fails to find the URL or authentication token, you can set or ask the user to set environment variables:

export INVOKEAI_API_URL='http://localhost:9090'
export INVOKEAI_AUTH_TOKEN='your-token'  # Optional

Resources

  • scripts/generate.py - Main generation script

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.14%
按下载量换算175

Claude

33.44%
按下载量换算162

Cursor

19.1%
按下载量换算92

Gemini CLI

8.66%
按下载量换算42

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills