用途
该技能用于通过 inference.sh CLI(belt)调用 50 多个 AI 图像模型生成与处理图片。它本身是一个技能包,安装后可在命令行中运行各类图像应用。
主要能力
- 文生图:使用 prompt 生成图像。
- 图像编辑与局部重绘:如 GPT-Image-2 支持编辑、inpainting。
- 文字渲染:Reve、Seedream 3.0 等模型适合文字渲染。
- 图像放大:Topaz Upscaler 提供专业放大。
- 多图拼接:infsh/stitch-images 支持按方向拼接多张图片。
- 多模型选择:覆盖 GPT-Image-2、FLUX Dev LoRA、FLUX.2 Klein LoRA、P-Image、P-Image-LoRA、P-Image-Edit、Gemini 3 Pro、Gemini 2.5 Flash、Grok Imagine、Seedream 4.5/4.0/3.0、Reve、ImagineArt 1.5 Pro、FLUX Klein 4B、Topaz Upscaler 等。
使用方式
先安装技能:
npx skills add belt-sh/cli
需要 inference.sh CLI(belt),并登录:
belt login
使用 FLUX 生成图像示例:
belt app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut in space"}'
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"
}'
浏览全部图像应用:
belt app list --category image
相关技能
# 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
适用场景
需要以命令行方式批量或脚本化调用多种 AI 图像模型进行生成、编辑、放大、拼接的开发与创作场景。
限制
资料未提供各模型的具体收费、价格、平台支持范围、生成效果保证或使用步骤之外的额外限制,暂未提供。