Ai Image Generation

通过CLI调用50+模型生成AI图像,支持文生图、图生图等多场景应用。

已扫描
适合谁
设计师与创意工作者、内容创作者与营销人员
不适合谁
无网络环境的用户、不熟悉命令行操作的初学者
国内可用性
需网络配置。可能需要网络配置或第三方服务可访问。
安装难度
新手友好(★☆☆)。基于终端操作、依赖、API Key 和本地环境要求的初步判断。

安装与下载

openclaw skills install @okaris/ai-image-generation

Skill 说明

命令、参数、文件名以原文为准

AI 图像生成

通过 [inference.sh](https://inference.sh) CLI 工具,使用 50 多种 AI 模型生成图像。

![AI 图像生成](https://cloud.inference.sh/app/files/u/4mg21r6ta37mpaz6ktzwtt8krr/01kg0v0nz7wv0qwqjtq1cam52z.jpeg)

快速开始

# 安装 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 校验值。无需管理员权限或后台进程。[手动安装与校验方法](https://dist.inference.sh/cli/checksums.txt) 可用。

可用模型

模型应用 ID适用场景
FLUX Dev LoRAfalai/flux-dev-lora高质量,支持自定义风格
FLUX.2 Klein LoRAfalai/flux-2-klein-lora速度快,支持 LoRA(4B/9B)
Gemini 3 Progoogle/gemini-3-pro-image-previewGoogle 最新模型
Gemini 2.5 Flashgoogle/gemini-2-5-flash-image快速响应的 Google 模型
Grok Imaginexai/grok-imagine-imagexAI 模型,支持多角度生成
Seedream 4.5bytedance/seedream-4-52K–4K 电影级画质
Seedream 4.0bytedance/seedream-4-0高质量 2K–4K 画质
Seedream 3.0bytedance/seedream-3-0-t2i文字渲染准确
Revefalai/reve自然语言编辑,文字渲染能力强
ImagineArt 1.5 Profalai/imagine-art-1-5-pro-preview超高保真 4K 画质
Topaz 上采样器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"}'

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

相关技能

# 完整平台技能(包含 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

文档

  • [运行应用](https://inference.sh/docs/apps/running) - 通过 CLI 运行应用的方法
  • [图像生成示例](https://inference.sh/docs/examples/image-generation) - 完整的图像生成指南
  • [应用概览](https://inference.sh/docs/apps/overview) - 理解应用生态系统
O
@okaris

已收录 4 个 Skill

相关推荐