关于 ai-image-generation
这是一个通过 inference.sh 的 belt 命令行使用多种模型生成和编辑图像的技能,面向需要文生图、图像修改、放大或拼接的创作者。
主要功能
- 01通过 belt 运行 50 多种图像模型
- 02根据文本提示词生成图像
- 03编辑图像并进行局部重绘
- 04放大图像并拼接多张图片
适用场景
- 01根据提示词制作产品照片或插画
- 02更换图像背景或修改内容
- 03放大图像或组合多张图片
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ 101-skills/ superpowers --skill ai-image-generation安装后在 Claude Code 中输入/ai-image-generation确认已加载。
详细介绍
安装 belt CLI 技能:
npx skills add belt-sh/cli
AI 图像生成
通过 inference.sh CLI 使用 50 多种 AI 模型生成图像。

快速开始
需要 inference.sh CLI(
belt)。安装说明
belt login
# Generate an image with FLUX
belt app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut in space"}'
可用模型
| 模型 | 应用 ID | 适用场景 |
|---|---|---|
| GPT-Image-2 | openai/gpt-image-2 | 文生图、编辑、局部重绘 |
| FLUX Dev LoRA | falai/flux-dev-lora | 使用自定义风格生成高质量图像 |
| FLUX.2 Klein LoRA | falai/flux-2-klein-lora | 快速生成,支持 LoRA(4B/9B) |
| P-Image | pruna/p-image | 快速、经济,支持多种宽高比 |
| P-Image-LoRA | pruna/p-image-lora | 快速生成,支持预设 LoRA 风格 |
| P-Image-Edit | pruna/p-image-edit | 快速图像编辑 |
| Gemini 3 Pro | google/gemini-3-pro-image-preview | Google 最新模型 |
| Gemini 2.5 Flash | google/gemini-2-5-flash-image | Google 快速模型 |
| Grok Imagine | xai/grok-imagine-image | xAI 模型,支持多种宽高比 |
| Seedream 4.5 | bytedance/seedream-4-5 | 2K-4K 电影级画质 |
| Seedream 4.0 | bytedance/seedream-4-0 | 高质量 2K-4K 图像 |
| Seedream 3.0 | bytedance/seedream-3-0-t2i | 精准渲染文本 |
| Reve | falai/reve | 自然语言编辑、文本渲染 |
| ImagineArt 1.5 Pro | falai/imagine-art-1-5-pro-preview | 超高保真 4K 图像 |
| FLUX Klein 4B | pruna/flux-klein-4b | 超低成本($0.0001/张) |
| Topaz Upscaler | falai/topaz-image-upscaler | 专业级放大 |
浏览所有图像应用
belt app list --category image
示例
GPT-Image-2
belt app run openai/gpt-image-2 --input '{
"prompt": "professional product photo of sneakers, studio lighting",
"quality": "high"
}'
GPT-Image-2 图像编辑
belt app run openai/gpt-image-2 --input '{
"prompt": "change the background to a beach at sunset",
"images": ["https://your-image.jpg"]
}'
使用 FLUX 文生图
belt app run falai/flux-dev-lora --input '{
"prompt": "professional product photo of a coffee mug, studio lighting"
}'
使用 FLUX Klein 快速生成
belt app run falai/flux-2-klein-lora --input '{"prompt": "sunset over mountains"}'
Google Gemini 3 Pro
belt app run google/gemini-3-pro-image-preview --input '{
"prompt": "photorealistic landscape with mountains and lake"
}'
Grok Imagine
belt app run xai/grok-imagine-image --input '{
"prompt": "cyberpunk city at night",
"aspect_ratio": "16:9"
}'
Reve(支持文本渲染)
belt app run falai/reve --input '{
"prompt": "A poster that says HELLO WORLD in bold letters"
}'
Seedream 4.5(4K 画质)
belt app run bytedance/seedream-4-5 --input '{
"prompt": "cinematic portrait of a woman, golden hour lighting"
}'
图像放大
belt app run falai/topaz-image-upscaler --input '{"image_url": "https://..."}'
拼接多张图像
belt app run infsh/stitch-images --input '{
"images": ["https://img1.jpg", "https://img2.jpg"],
"direction": "horizontal"
}'
相关技能
# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli
# Pruna P-Image (fast & economical)
npx skills add inference-sh/skills@p-image
# GPT-Image-2 (OpenAI)
npx skills add inference-sh/skills@gpt-image
# FLUX-specific skill
npx skills add inference-sh/skills@flux-image
# Upscaling & enhancement
npx skills add inference-sh/skills@image-upscaling
# Background removal
npx skills add inference-sh/skills@background-removal
# Video generation
npx skills add inference-sh/skills@ai-video-generation
# AI avatars from images
npx skills add inference-sh/skills@ai-avatar-video
浏览所有应用:belt app list
文档
评论
支持 Markdown