p-image

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Pruna P-Image Generation

Pruna P-Image 生成

Generate images with Pruna's optimized P-Image models via inference.sh CLI.
P-Image Generation
通过 inference.sh CLI 使用 Pruna 优化的 P-Image 模型生成图像。
P-Image 生成

Quick Start

快速开始

Requires inference.sh CLI (
infsh
). Get installation instructions:
npx 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(
infsh
)。获取安装指引:
npx 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.
ModelApp IDBest For
P-Image
pruna/p-image
Fast text-to-image, multiple aspect ratios
P-Image-LoRA
pruna/p-image-lora
Custom styles with preset LoRAs
P-Image-Edit
pruna/p-image-edit
Image editing with multi-image support
P-Image-Edit-LoRA
pruna/p-image-edit-lora
Stylized image editing
Pruna 对 AI 模型进行了速度优化,同时不会牺牲画质。
模型应用 ID最佳适用场景
P-Image
pruna/p-image
快速文生图,支持多种宽高比
P-Image-LoRA
pruna/p-image-lora
使用预设 LoRA 实现自定义风格
P-Image-Edit
pruna/p-image-edit
支持多图的图像编辑
P-Image-Edit-LoRA
pruna/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-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
P-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-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

图像编辑

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:
1:1
,
16:9
,
9:16
,
4:3
,
3:4
,
3:2
,
2:3
, or
custom
with width/height
bash
infsh app run pruna/p-image --input '{
  "prompt": "landscape mountain scene",
  "aspect_ratio": "16:9"
}'
支持的比例:
1:1
,
16:9
,
9:16
,
4:3
,
3:4
,
3:2
,
2:3
,或搭配宽高参数使用
custom

Other Pruna Models

其他 Pruna 模型

Pruna offers optimized versions of popular models:
bash
undefined
Pruna 提供了多款热门模型的优化版本:
bash
undefined

FLUX 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": "..."}'
undefined
infsh app run pruna/wan-image-small --input '{"prompt": "..."}'
undefined

Browse All Pruna Apps

浏览所有 Pruna 应用

bash
infsh app list --namespace pruna
bash
infsh app list --namespace pruna

Related Skills

相关技能

bash
undefined
bash
undefined

Full 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

文档