Loading...
Loading...
通过 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 skill4agent add inference-shell/skills p-image
需要安装 inference.sh CLI()。获取安装指引:infshnpx skills add inference-sh/skills@agent-tools
infsh login
infsh app run pruna/p-image --input '{"prompt": "a futuristic cityscape at sunset"}'| 模型 | 应用 ID | 最佳适用场景 |
|---|---|---|
| P-Image | | 快速文生图,支持多种宽高比 |
| P-Image-LoRA | | 使用预设 LoRA 实现自定义风格 |
| P-Image-Edit | | 支持多图的图像编辑 |
| P-Image-Edit-LoRA | | 风格化图像编辑 |
infsh app run pruna/p-image --input '{
"prompt": "professional product photo of sneakers, studio lighting",
"aspect_ratio": "1:1"
}'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-cutinfsh app run pruna/p-image-edit --input '{
"prompt": "change the background to a beach",
"images": ["https://your-image.jpg"]
}'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"]
}'infsh app run pruna/p-image --input '{
"prompt": "landscape mountain scene",
"aspect_ratio": "16:9"
}'1:116:99:164:33:43:22:3custom# FLUX Dev (优化版)
infsh app run pruna/flux-dev --input '{"prompt": "..."}'
# FLUX Klein 4B (速度极快,单张图像仅需 $0.0001)
infsh app run pruna/flux-klein-4b --input '{"prompt": "..."}'
# Qwen Image
infsh app run pruna/qwen-image --input '{"prompt": "..."}'
# Z-Image Turbo (超高速)
infsh app run pruna/z-image-turbo --input '{"prompt": "..."}'
# WAN Image Small (批量生成)
infsh app run pruna/wan-image-small --input '{"prompt": "..."}'infsh app list --namespace pruna# 完整平台技能(包含全部150+款应用)
npx skills add inference-sh/skills@agent-tools
# 全部图像生成模型
npx skills add inference-sh/skills@ai-image-generation
# Pruna 视频生成
npx skills add inference-sh/skills@p-video
# FLUX 模型
npx skills add inference-sh/skills@flux-imageinfsh app list