mcpField
A
ai-image-generation

ai-image-generation

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

关于 ai-image-generation

这是一个通过 inference.sh 的 belt 命令行使用多种模型生成和编辑图像的技能,面向需要文生图、图像修改、放大或拼接的创作者。

主要功能

  1. 01通过 belt 运行 50 多种图像模型
  2. 02根据文本提示词生成图像
  3. 03编辑图像并进行局部重绘
  4. 04放大图像并拼接多张图片

适用场景

  1. 01根据提示词制作产品照片或插画
  2. 02更换图像背景或修改内容
  3. 03放大图像或组合多张图片

安装

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

$npx skills add https://github.com/101-skills/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