p-image
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePruna P-Image Generation
Pruna P-Image 生成
Generate images with Pruna's optimized P-Image models via inference.sh CLI.

通过 inference.sh CLI 使用 Pruna 优化的 P-Image 模型生成图像。

Quick Start
快速开始
Requires inference.sh CLI (). Get installation instructions:infshnpx skills add inference-sh/skills@agent-tools
bash
infsh login
infsh app run pruna/p-image --input '{"prompt": "a futuristic cityscape at sunset"}'需要安装 inference.sh CLI()。获取安装指引:infshnpx skills add inference-sh/skills@agent-tools
bash
infsh login
infsh app run pruna/p-image --input '{"prompt": "a futuristic cityscape at sunset"}'P-Image Models
P-Image 模型
Pruna optimizes AI models for speed without sacrificing quality.
| Model | App ID | Best For |
|---|---|---|
| P-Image | | Fast text-to-image, multiple aspect ratios |
| P-Image-LoRA | | Custom styles with preset LoRAs |
| P-Image-Edit | | Image editing with multi-image support |
| P-Image-Edit-LoRA | | Stylized image editing |
Pruna 对 AI 模型进行了速度优化,同时不会牺牲画质。
| 模型 | 应用 ID | 最佳适用场景 |
|---|---|---|
| P-Image | | 快速文生图,支持多种宽高比 |
| P-Image-LoRA | | 使用预设 LoRA 实现自定义风格 |
| P-Image-Edit | | 支持多图的图像编辑 |
| P-Image-Edit-LoRA | | 风格化图像编辑 |
Examples
示例
Text-to-Image
文生图
bash
infsh app run pruna/p-image --input '{
"prompt": "professional product photo of sneakers, studio lighting",
"aspect_ratio": "1:1"
}'bash
infsh app run pruna/p-image --input '{
"prompt": "professional product photo of sneakers, studio lighting",
"aspect_ratio": "1:1"
}'With LoRA Presets
使用 LoRA 预设
P-Image-LoRA includes built-in style presets:
bash
infsh app run pruna/p-image-lora --input '{
"prompt": "portrait of a woman in golden hour light",
"lora_preset": "photos-realism"
}'Available presets: , , , , , , , , , ,
photos-realismpixel-artjapanese-modern-lookcinematic-movie-stylegraffiti-splashneon-punkanime-2-5dethereal-portraitretro-90s-styleink-sketchbookpaper-cutP-Image-LoRA 内置了风格预设:
bash
infsh app run pruna/p-image-lora --input '{
"prompt": "portrait of a woman in golden hour light",
"lora_preset": "photos-realism"
}'可用预设:, , , , , , , , , ,
photos-realismpixel-artjapanese-modern-lookcinematic-movie-stylegraffiti-splashneon-punkanime-2-5dethereal-portraitretro-90s-styleink-sketchbookpaper-cutImage Editing
图像编辑
bash
infsh app run pruna/p-image-edit --input '{
"prompt": "change the background to a beach",
"images": ["https://your-image.jpg"]
}'bash
infsh app run pruna/p-image-edit --input '{
"prompt": "change the background to a beach",
"images": ["https://your-image.jpg"]
}'Multi-Image Compositing
多图像合成
bash
infsh app run pruna/p-image-edit --input '{
"prompt": "combine these images into a collage",
"images": ["https://img1.jpg", "https://img2.jpg", "https://img3.jpg"]
}'bash
infsh 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
自定义宽高比
bash
infsh app run pruna/p-image --input '{
"prompt": "landscape mountain scene",
"aspect_ratio": "16:9"
}'Supported ratios: , , , , , , , or with width/height
1:116:99:164:33:43:22:3custombash
infsh app run pruna/p-image --input '{
"prompt": "landscape mountain scene",
"aspect_ratio": "16:9"
}'支持的比例:, , , , , , ,或搭配宽高参数使用
1:116:99:164:33:43:22:3customOther Pruna Models
其他 Pruna 模型
Pruna offers optimized versions of popular models:
bash
undefinedPruna 提供了多款热门模型的优化版本:
bash
undefinedFLUX Dev (optimized)
FLUX Dev (优化版)
infsh app run pruna/flux-dev --input '{"prompt": "..."}'
infsh app run pruna/flux-dev --input '{"prompt": "..."}'
FLUX Klein 4B (extremely fast, $0.0001/image)
FLUX Klein 4B (速度极快,单张图像仅需 $0.0001)
infsh app run pruna/flux-klein-4b --input '{"prompt": "..."}'
infsh app run pruna/flux-klein-4b --input '{"prompt": "..."}'
Qwen Image
Qwen Image
infsh app run pruna/qwen-image --input '{"prompt": "..."}'
infsh app run pruna/qwen-image --input '{"prompt": "..."}'
Z-Image Turbo (ultra-fast)
Z-Image Turbo (超高速)
infsh app run pruna/z-image-turbo --input '{"prompt": "..."}'
infsh app run pruna/z-image-turbo --input '{"prompt": "..."}'
WAN Image Small (batch generation)
WAN Image Small (批量生成)
infsh app run pruna/wan-image-small --input '{"prompt": "..."}'
undefinedinfsh app run pruna/wan-image-small --input '{"prompt": "..."}'
undefinedBrowse All Pruna Apps
浏览所有 Pruna 应用
bash
infsh app list --namespace prunabash
infsh app list --namespace prunaRelated Skills
相关技能
bash
undefinedbash
undefinedFull platform skill (all 150+ apps)
完整平台技能(包含全部150+款应用)
npx skills add inference-sh/skills@agent-tools
npx skills add inference-sh/skills@agent-tools
All image generation models
全部图像生成模型
npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@ai-image-generation
Pruna video generation
Pruna 视频生成
npx skills add inference-sh/skills@p-video
npx skills add inference-sh/skills@p-video
FLUX models
FLUX 模型
npx skills add inference-sh/skills@flux-image
Browse all apps: `infsh app list`npx skills add inference-sh/skills@flux-image
浏览所有应用:`infsh app list`Documentation
文档
- Running Apps - How to run apps via CLI
- Image Generation Example - Complete image generation guide
- Streaming Results - Real-time progress updates