SuperAPI AI 工具集

ai-image-generation

设计与创作

查看项目

更新于 10-16 09:41

技能介绍

用途

该技能用于通过 inference.sh CLI(命令名为 belt)调用 50 多个 AI 图像模型来生成和处理图片。它把不同厂商的图像模型统一到同一个命令行入口,用户无需分别对接各家 API,只需指定模型的应用 ID 并传入 JSON 参数即可运行。

主要能力

  • 文生图:根据文本提示词生成图像。
  • 图像编辑与局部重绘:例如 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 系列、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 等。

使用方式

先安装 belt CLI 技能:

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

查看所有图像类应用:

belt app list --category image

示例命令

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

模型速查

模型 App ID 适用场景
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-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 专业放大

相关技能

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

# Pruna P-Image(快速且经济)
npx skills add inference-sh/skills@p-image

# GPT-Image-2(OpenAI)
npx skills add inference-sh/skills@gpt-image

# 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

浏览所有应用:

belt app list

适用场景

适合需要在命令行或自动化流程中批量调用多种图像模型的开发者与创作者,例如产品图生成、海报文字渲染、图像编辑与放大、多图拼接等。

限制

使用前需安装并登录 inference.sh CLI(belt)。各模型的具体参数、可用比例、计费与配额等细节,资料中除 FLUX Klein 4B 标注为 $0.0001/张外,其余暂未提供。