mcpField
P
p-image

p-image

github.com/beltsh其他08 次安装15 周前更新
代码仓库

关于 p-image

通过 inference.sh CLI 使用 Pruna P-Image 模型生成图像。模型:P-Image、P-Image-LoRA、P-Image-Edit、P-Image-Edit-LoRA。功能:文生图、图像编辑、LoRA 风格、多图合成、快速推理。Pruna 优化模型以提升速度,同时不损失质量。触发词:pruna、p-image、pruna image、fast image generation、optimized flux、pruna ai、p image、fast ai image、economic image generation、cheap image generation

安装

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

$npx skills add https://github.com/beltsh/superpowers --skill p-image

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

README 原文English

来自项目 README

README 暂无中文译文,以下为英文原文;中文介绍见上方。

Install the belt CLI skill: npx skills add belt-sh/cli

Pruna P-Image Generation

Generate images with Pruna's optimized P-Image models via inference.sh CLI.

P-Image Generation

Quick Start

Requires inference.sh CLI (belt). Install instructions

belt login

belt app run pruna/p-image --input '{"prompt": "a futuristic cityscape at sunset"}'

P-Image Models

Pruna optimizes AI models for speed without sacrificing quality.

ModelApp IDBest For
P-Imagepruna/p-imageFast text-to-image, multiple aspect ratios
P-Image-LoRApruna/p-image-loraCustom styles with preset LoRAs
P-Image-Editpruna/p-image-editImage editing with multi-image support
P-Image-Edit-LoRApruna/p-image-edit-loraStylized image editing

Examples

Text-to-Image
belt app run pruna/p-image --input '{
  "prompt": "professional product photo of sneakers, studio lighting",
  "aspect_ratio": "1:1"
}'
With LoRA Presets

P-Image-LoRA includes built-in style presets:

belt app run pruna/p-image-lora --input '{
  "prompt": "portrait of a woman in golden hour light",
  "lora_preset": "photos-realism"
}'

Available presets: photos-realism, pixel-art, japanese-modern-look, cinematic-movie-style, graffiti-splash, neon-punk, anime-2-5d, ethereal-portrait, retro-90s-style, ink-sketchbook, paper-cut

Image Editing
belt app run pruna/p-image-edit --input '{
  "prompt": "change the background to a beach",
  "images": ["https://your-image.jpg"]
}'
Multi-Image Compositing
belt app run pruna/p-image-edit --input '{
  "prompt": "combine these images into a collage",
  "images": ["https://img1.jpg", "https://img2.jpg", "https://img3.jpg"]
}'
Custom Aspect Ratios
belt app run pruna/p-image --input '{
  "prompt": "landscape mountain scene",
  "aspect_ratio": "16:9"
}'

Supported ratios: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, or custom with width/height

Other Pruna Models

Pruna offers optimized versions of popular models:

# FLUX Dev (optimized)
belt app run pruna/flux-dev --input '{"prompt": "..."}'

# FLUX Klein 4B (extremely fast, $0.0001/image)
belt app run pruna/flux-klein-4b --input '{"prompt": "..."}'

# Qwen Image
belt app run pruna/qwen-image --input '{"prompt": "..."}'

# Z-Image Turbo (ultra-fast)
belt app run pruna/z-image-turbo --input '{"prompt": "..."}'

# WAN Image Small (batch generation)
belt app run pruna/wan-image-small --input '{"prompt": "..."}'

Browse All Pruna Apps

belt app list --namespace pruna

Related Skills

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

# All image generation models
npx skills add inference-sh/skills@ai-image-generation

# Pruna video generation
npx skills add inference-sh/skills@p-video

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

Browse all apps: belt app list

Documentation

评论

支持 Markdown