AI图像生成Skill ai-image-generation

这个技能用于通过inference.sh CLI调用多种AI模型(如FLUX、Gemini、Grok等)生成高质量图像,支持文本到图像、图像到图像、修复、放大和文本渲染等功能,适用于AI艺术创作、产品设计、营销视觉和概念插图等场景。关键词:AI图像生成、稳定扩散、文本到图像、图像编辑、LoRA、放大、AI艺术、生成式AI、CLI工具。

AIGC 0 次安装 0 次浏览 更新于 3/12/2026

名称: ai-image-generation 描述: “通过FLUX、Gemini、Grok、Seedream、Reve和50+模型使用inference.sh CLI生成AI图像。模型:FLUX Dev LoRA、FLUX.2 Klein LoRA、Gemini 3 Pro Image、Grok Imagine、Seedream 4.5、Reve、ImagineArt。能力:文本到图像、图像到图像、修复、LoRA、图像编辑、放大、文本渲染。用途:AI艺术、产品模拟、概念艺术、社交媒体图形、营销视觉、插图。触发词:flux、图像生成、ai图像、文本到图像、稳定扩散、生成图像、ai艺术、midjourney替代品、dall-e替代品、text2img、t2i、图像生成器、ai图片、用ai创建图像、生成式ai、ai插图、grok图像、gemini图像” 允许工具: Bash(infsh *)

AI图像生成

通过inference.sh CLI使用50+ AI模型生成图像。

AI图像生成

快速开始

# 安装CLI
curl -fsSL https://cli.inference.sh | sh && infsh login

# 使用FLUX生成图像
infsh app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut in space"}'

安装说明: 安装脚本仅检测您的操作系统/架构,从dist.inference.sh下载匹配的二进制文件,并验证其SHA-256校验和。无需提升权限或后台进程。手动安装和验证可用。

可用模型

模型 App ID 最佳用途
FLUX Dev LoRA falai/flux-dev-lora 高质量与自定义风格
FLUX.2 Klein LoRA falai/flux-2-klein-lora 快速支持LoRA(4B/9B)
Gemini 3 Pro google/gemini-3-pro-image-preview 谷歌最新
Gemini 2.5 Flash google/gemini-2-5-flash-image 快速谷歌模型
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
Topaz Upscaler falai/topaz-image-upscaler 专业放大

浏览所有图像应用

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"}'

谷歌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"
}'

相关技能

# 完整平台技能(所有150+应用)
npx skills add inference-sh/skills@inference-sh

# FLUX特定技能
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

# 从图像生成AI头像
npx skills add inference-sh/skills@ai-avatar-video

浏览所有应用:infsh app list

文档