mcpField
A
ai-image-generation

ai-image-generation

github.com/skills-101创意与媒体17599.4k 次安装12 周前更新
代码仓库

关于 ai-image-generation

这是一个 belt CLI 技能,可通过 inference.sh 使用 50 多种 AI 模型生成和编辑图像,适合命令行用户。涵盖文生图、图像编辑、放大和拼接等任务。

主要功能

  1. 01通过 belt 运行图像模型
  2. 02根据文本提示生成图像
  3. 03编辑图像并进行局部重绘
  4. 04放大及拼接图像
  5. 05按类别浏览图像应用

适用场景

  1. 01根据提示制作插画或产品图
  2. 02用文本指令编辑图像
  3. 03放大现有图像
  4. 04将多张图像拼接在一起

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/skills-101/superpowers --skill ai-image-generation

安装后在 Claude Code 中输入/ai-image-generation确认已加载。

详细介绍

安装 belt CLI 技能: npx skills add belt-sh/cli

AI 图像生成

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

AI 图像生成

快速开始

需要 inference.sh CLI(belt)。安装说明

belt login

# Generate an image with FLUX
belt app run falai/flux-dev-lora --input '{"prompt": "a cat astronaut in space"}'

可用模型

模型应用 ID适用场景
GPT-Image-2openai/gpt-image-2文生图、编辑、局部重绘
FLUX Dev LoRAfalai/flux-dev-lora使用自定义风格生成高质量图像
FLUX.2 Klein LoRAfalai/flux-2-klein-lora快速生成,支持 LoRA(4B/9B)
P-Imagepruna/p-image快速、经济,支持多种宽高比
P-Image-LoRApruna/p-image-lora快速生成,支持预设 LoRA 风格
P-Image-Editpruna/p-image-edit快速图像编辑
Gemini 3 Progoogle/gemini-3-pro-image-previewGoogle 最新模型
Gemini 2.5 Flashgoogle/gemini-2-5-flash-imageGoogle 快速模型
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 图像
FLUX Klein 4Bpruna/flux-klein-4b超低成本($0.0001/张)
Topaz Upscalerfalai/topaz-image-upscaler专业级放大

浏览所有图像应用

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

相关技能

# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

# Pruna P-Image (fast & economical)
npx skills add inference-sh/skills@p-image

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

# FLUX-specific skill
npx skills add inference-sh/skills@flux-image

# Upscaling & enhancement
npx skills add inference-sh/skills@image-upscaling

# Background removal
npx skills add inference-sh/skills@background-removal

# Video generation
npx skills add inference-sh/skills@ai-video-generation

# AI avatars from images
npx skills add inference-sh/skills@ai-avatar-video

浏览所有应用:belt app list

文档

评论

支持 Markdown