mcpField
A
ai-image-generation

ai-image-generation

github.com/inference-sh创意与媒体7841.7M 次安装2 周前更新
代码仓库

关于 ai-image-generation

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

主要功能

  1. 01使用 50 多种模型生成图像
  2. 02根据文本提示创建图像
  3. 03编辑现有图像
  4. 04放大图像
  5. 05拼接多张图像

适用场景

  1. 01制作产品照片和插画
  2. 02更换图像背景
  3. 03生成含文字的图像
  4. 04放大或组合图像素材

安装

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

$npx skills add https://github.com/inference-sh/skills --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"}'

可用模型

模型App ID适用场景
GPT-Image-2.5 Flareopenai/gpt-image-2-5-flare最佳默认选择:文生图、编辑、局部重绘、透明 PNG
GPT-Image-2.5 Sunburstopenai/gpt-image-2-5-sunburst精确编辑,同时保留主体和构图
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-imageGoogle 最新模型
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-2-klein-4b超低成本($0.0001/张图像)
Topaz Upscalerfalai/topaz-image-upscaler专业级放大

浏览所有图像应用

belt app list --category image

示例

GPT-Image-2.5 Flare
belt app run openai/gpt-image-2-5-flare --input '{
  "prompt": "professional product photo of sneakers, studio lighting",
  "quality": "high"
}'
GPT-Image-2.5 Sunburst 编辑
belt app run openai/gpt-image-2-5-sunburst --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 --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": "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.5 / 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