SuperAPI AI 工具集

p-image

设计与创作

查看项目

更新于 10-15 12:56

技能介绍

用途 p-image 是一组由 Pruna 优化的 P-Image 系列图像模型,通过 inference.sh CLI(belt)调用,用于文生图、风格化出图、图像编辑与多图合成。官方描述称 Pruna 在保持质量的同时对模型进行速度优化。

主要能力与模型

  • P-Image(App ID:pruna/p-image):快速文生图,支持多种画幅比例。
  • P-Image-LoRA(App ID:pruna/p-image-lora):支持使用预设 LoRA 实现自定义风格。
  • P-Image-Edit(App ID:pruna/p-image-edit):图像编辑,支持多图输入。
  • P-Image-Edit-LoRA(App ID:pruna/p-image-edit-lora):风格化图像编辑。

使用方式 首先安装 CLI 技能:npx skills add belt-sh/cli,并完成登录:belt login。

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

指定画幅比例: belt 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,或通过 width/height 自定义。

使用 LoRA 预设: belt 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。

图像编辑: belt app run pruna/p-image-edit --input '{ "prompt": "change the background to a beach", "images": ["https://your-image.jpg"] }'

多图合成: 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"] }'

其他 Pruna 模型 除 P-Image 系列外,还提供以下优化模型:

  • pruna/flux-dev(FLUX Dev 优化版)
  • pruna/flux-klein-4b(极快,$0.0001/image)
  • pruna/qwen-image
  • pruna/z-image-turbo(超快)
  • pruna/wan-image-small(批量生成) 可通过 belt app list --namespace pruna 浏览全部应用。

相关技能

  • npx skills add inference-sh/skills@infsh-cli(完整平台技能)
  • npx skills add inference-sh/skills@ai-image-generation(全部图像生成模型)
  • npx skills add inference-sh/skills@p-video(Pruna 视频生成)
  • npx skills add inference-sh/skills@flux-image(FLUX 模型)

适用场景 适合需要以命令行方式批量或脚本化生成图像、使用预设风格出图、进行图像编辑与多图合成的用户,也适合已在 inference.sh CLI 工作流中集成图像生成的场景。

限制 使用需先安装并登录 inference.sh CLI(belt)。除 pruna/flux-klein-4b 标注为 $0.0001/image 外,其余模型的收费、配额、平台支持范围与效果说明在资料中暂未提供。P-Image 自身支持的输入输出格式、单次调用限制等细节暂未提供。