SuperAPI AI 工具集

ai-image-generation

设计与创作

查看项目

更新于 10-13 22:09

技能介绍

用途

AI Image Generation 是一个命令行图像生成技能,目的是让用户通过 inference.sh CLI 调用 50 多个 AI 图像模型,完成图像生成、编辑和增强等任务。

主要能力

该技能提供多种模型,按资料所列可覆盖以下用途:

  • 文本生成图像、编辑与内补:GPT-Image-2(App ID:openai/gpt-image-2)
  • 高质量与自定义风格:FLUX Dev LoRA(falai/flux-dev-lora)
  • 快速生成并支持 LoRA(4B/9B):FLUX.2 Klein LoRA(falai/flux-2-klein-lora)
  • 快速、经济、支持多种比例:P-Image(pruna/p-image)
  • 快速并带预设 LoRA 风格:P-Image-LoRA(pruna/p-image-lora)
  • 快速图像编辑:P-Image-Edit(pruna/p-image-edit)
  • Google 最新模型:Gemini 3 Pro(google/gemini-3-pro-image-preview)
  • 快速 Google 模型:Gemini 2.5 Flash(google/gemini-2-5-flash-image)
  • xAI 模型,支持多种比例:Grok Imagine(xai/grok-imagine-image)
  • 2K–4K 电影级画质:Seedream 4.5(bytedance/seedream-4-5)
  • 高质量 2K–4K:Seedream 4.0(bytedance/seedream-4-0)
  • 准确的文本渲染:Seedream 3.0(bytedance/seedream-3-0-t2i)
  • 自然语言编辑与文本渲染:Reve(falai/reve)
  • 超高保真 4K:ImagineArt 1.5 Pro(falai/imagine-art-1-5-pro-preview)
  • 极低成本(每张 $0.0001):FLUX Klein 4B(pruna/flux-klein-4b)
  • 专业放大:Topaz Upscaler(falai/topaz-image-upscaler)

此外,资料中还列出了拼接多张图片的示例应用 infsh/stitch-images,支持横向拼接。

使用方式

  1. 安装 belt CLI 技能:
npx skills add belt-sh/cli
  1. 登录:
belt login
  1. 用 FLUX 生成一张图片的快速开始示例:
belt app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut in space"}'
  1. 浏览全部图像类应用:
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"
}'

相关技能安装

# 完整平台技能(所有应用)
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

适用场景

该技能适用于需要通过命令行批量或脚本化生成图像、编辑图像、对图像进行文本渲染、放大增强以及拼接多图的场景。资料中给出的示例包括产品摄影风格图片、电影感肖像、风景图、赛博朋克城市、带文字的海报等。

限制

资料中未说明该技能的收费模式、免费额度、平台限制、是否需要额外账号或网络条件等信息,这些内容暂未提供。使用时需要先安装 belt CLI 并登录,具体可用的模型和参数以资料所列 App ID 与示例为准。