mcpField
A
ai-image-generation

ai-image-generation

github.com/makerjackie创意与媒体1111 次安装36 周前更新
代码仓库

关于 ai-image-generation

通过 inference.sh CLI 调用 50 多种 AI 模型生成图像的技能,适合使用命令行的图像创作者。可运行生成、编辑、放大等图像应用。

主要功能

  1. 01通过 `infsh` 运行图像应用
  2. 02使用 50 多种 AI 模型
  3. 03根据提示词生成图像
  4. 04使用支持的模型编辑图像
  5. 05放大图像并拼接多张图

适用场景

  1. 01生成概念艺术或产品图
  2. 02制作含文字的海报
  3. 03放大 URL 指向的图像

安装

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

$npx skills add https://github.com/makerjackie/jackie-skills-starter --skill ai-image-generation

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

详细介绍

AI 图像生成

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

AI 图像生成

快速开始

# Install CLI
curl -fsSL https://cli.inference.sh | sh && infsh login

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

安装说明:安装脚本仅检测你的操作系统和架构,从 dist.inference.sh 下载对应的二进制文件,并验证其 SHA-256 校验和。无需提升权限或运行后台进程。可查看手动安装与验证说明。

可用模型

模型App ID最适合
FLUX Dev LoRAfalai/flux-dev-lora高品质图像与自定义风格
FLUX.2 Klein LoRAfalai/flux-2-klein-lora生成快速,支持 LoRA(4B/9B)
Gemini 3 Progoogle/gemini-3-pro-image-previewGoogle 最新模型
Gemini 2.5 Flashgoogle/gemini-2-5-flash-image快速的 Google 模型
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 图像
Topaz Upscalerfalai/topaz-image-upscaler专业级放大

浏览所有图像应用

infsh app list --category image

示例

使用 FLUX 从文本生成图像
infsh app run falai/flux-dev-lora --input '{
  "prompt": "professional product photo of a coffee mug, studio lighting"
}'
使用 FLUX Klein 快速生成
infsh app run falai/flux-2-klein-lora --input '{"prompt": "sunset over mountains"}'
Google Gemini 3 Pro
infsh app run google/gemini-3-pro-image-preview --input '{
  "prompt": "photorealistic landscape with mountains and lake"
}'
Grok Imagine
infsh app run xai/grok-imagine-image --input '{
  "prompt": "cyberpunk city at night",
  "aspect_ratio": "16:9"
}'
Reve(支持文字渲染)
infsh app run falai/reve --input '{
  "prompt": "A poster that says HELLO WORLD in bold letters"
}'
Seedream 4.5(4K 画质)
infsh app run bytedance/seedream-4-5 --input '{
  "prompt": "cinematic portrait of a woman, golden hour lighting"
}'
图像放大
infsh app run falai/topaz-image-upscaler --input '{"image_url": "https://..."}'
拼接多张图像
infsh app run infsh/stitch-images --input '{
  "images": ["https://img1.jpg", "https://img2.jpg"],
  "direction": "horizontal"
}'

相关技能

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

# 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

浏览所有应用:infsh app list

文档

评论

支持 Markdown