关于 ai-image-generation
这是一个通过 inference.sh 的 belt 命令行调用 50 多种 AI 模型生成和编辑图像的技能,适合需要文生图、图像修改、放大或拼接的创作者。
主要功能
- 01使用 50 多种模型生成图像
- 02根据文本提示创建图像
- 03编辑现有图像
- 04放大图像
- 05拼接多张图像
适用场景
- 01制作产品照片和插画
- 02更换图像背景
- 03生成含文字的图像
- 04放大或组合图像素材
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ inference-sh/ skills --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"}'
可用模型
| 模型 | App ID | 适用场景 |
|---|---|---|
| GPT-Image-2.5 Flare | openai/gpt-image-2-5-flare | 最佳默认选择:文生图、编辑、局部重绘、透明 PNG |
| GPT-Image-2.5 Sunburst | openai/gpt-image-2-5-sunburst | 精确编辑,同时保留主体和构图 |
| 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 | 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-2-klein-4b | 超低成本($0.0001/张图像) |
| Topaz Upscaler | falai/topaz-image-upscaler | 专业级放大 |
浏览所有图像应用
belt app list --category image
示例
GPT-Image-2.5 Flare
belt app run openai/gpt-image-2-5-flare --input '{
"prompt": "professional product photo of sneakers, studio lighting",
"quality": "high"
}'
GPT-Image-2.5 Sunburst 编辑
belt app run openai/gpt-image-2-5-sunburst --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 --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": "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.5 / 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