用途
该技能用于通过 inference.sh 命令行工具(infsh)调用 50 多个 AI 图像模型来生成和处理图片。它把多种图像模型统一到同一个 CLI 入口下,用户无需分别对接各家平台,即可用命令行完成文生图、图像编辑、图像放大和多图拼接等任务。
主要能力
资料列出的可用模型及其适用场景如下:
- 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):专业放大。
此外还提供图像拼接应用(infsh/stitch-images),可将多张图片按方向拼接。
使用方式
使用前需要安装 inference.sh CLI(infsh),资料中给出了安装说明的链接但未提供完整安装命令内容。安装后先登录:
infsh login
用 FLUX 生成图片:
infsh app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut in space"}'
浏览全部图像类应用:
infsh app list --category image
更多示例:
FLUX 文生图:
infsh app run falai/flux-dev-lora --input '{
"prompt": "professional product photo of a coffee mug, studio lighting"
}'
FLUX Klein 快速生成:
infsh app run falai/flux-2-klein-lora --input '{"prompt": "sunset over mountains"}'
Google Gemini 3 Pro:
infsh app run google/gemini-3-pro-image-preview --input '{
"prompt": "photorealistic landscape with mountains and lake"
}'
Grok Imagine(可指定画幅比例):
infsh app run xai/grok-imagine-image --input '{
"prompt": "cyberpunk city at night",
"aspect_ratio": "16:9"
}'
Reve(带文字渲染):
infsh app run falai/reve --input '{
"prompt": "A poster that says HELLO WORLD in bold letters"
}'
Seedream 4.5(4K 画质):
infsh app run bytedance/seedream-4-5 --input '{
"prompt": "cinematic portrait of a woman, golden hour lighting"
}'
图像放大:
infsh app run falai/topaz-image-upscaler --input '{"image_url": "https://..."}'
多图拼接:
infsh app run infsh/stitch-images --input '{
"images": ["https://img1.jpg", "https://img2.jpg"],
"direction": "horizontal"
}'
相关技能
资料还列出可安装的相关技能:
npx skills add inference-sh/skills@infsh-cli
npx skills add inference-sh/skills@p-image
npx skills add inference-sh/skills@flux-image
npx skills add inference-sh/skills@image-upscaling
npx skills add inference-sh/skills@background-removal
npx skills add inference-sh/skills@ai-video-generation
npx skills add inference-sh/skills@ai-avatar-video
浏览全部应用:
infsh app list
适用场景
适合需要在命令行或自动化流程中批量调用多种图像模型的开发者与创作者,例如按不同质量、速度或成本需求切换模型生成图片,进行图像编辑、放大、拼接,或需要文字渲染、特定画幅比例输出的场景。
限制
资料未提供完整的 CLI 安装步骤、各模型的详细参数说明、除 FLUX Klein 4B 外的具体收费与价格信息,以及各模型的平台支持范围。使用前需自行完成 infsh CLI 的安装与登录。