Back to Skills

p-image

Generate images with Pruna P-Image models via inference.sh CLI. Models: P-Image, P-Image-LoRA, P-Image-Edit, P-Image-Edit-LoRA. Capabilities: text-to-image, image editing, LoRA styles, multi-image compositing, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna, p-image, pruna image, fast image generation, optimized flux, pruna ai, p image, fast ai image, economic image generation, cheap image generation

7starsUpdated 8/14/2026

Security Assessment

Safe(95/100)
Security Score95/100

About p-image

p-image is a skill for generating and editing images with Pruna's optimized P-Image model family through the inference.sh command-line tool (`belt`). Pruna optimizes popular diffusion models for faster, cheaper inference without sacrificing quality, and this skill wraps that catalogue so an agent can produce images from a single shell command. It solves the practical problem of turning a text prompt or an input image into a finished visual asset without wiring up an SDK, GPU, or model weights locally.

The skill documents four core models: P-Image for fast text-to-image across multiple aspect ratios, P-Image-LoRA for preset artistic styles (photo-realism, pixel-art, cinematic, neon-punk, anime, and others), P-Image-Edit for image editing and multi-image compositing, and P-Image-Edit-LoRA for stylized edits. Every operation is invoked as `belt app run pruna/<model> --input '{...}'` with a JSON payload carrying the prompt, aspect ratio (1:1, 16:9, 9:16, custom, and more), LoRA preset, or source image URLs. It also points to other Pruna-optimized options such as FLUX Dev, FLUX Klein 4B, Qwen Image, and Z-Image Turbo, and to related inference.sh skills for video and text-to-speech.

It targets developers, designers, and content creators who want fast, low-cost AI image generation from a terminal or an agent workflow — product photography mockups, stylized portraits, background edits, collages, and rapid concept iteration. Because it depends entirely on the hosted inference.sh service and the `belt` CLI, it is essentially a documented front-end to that platform rather than a self-contained image engine.

FAQ

What do I need before using this skill?

The inference.sh CLI (`belt`) must be installed and you must run `belt login` first. The skill links to install instructions and notes that the belt CLI skill can be added via `npx skills add belt-sh/cli`.

Which models and capabilities are covered?

P-Image (text-to-image), P-Image-LoRA (preset styles), P-Image-Edit (image editing and multi-image compositing), and P-Image-Edit-LoRA (stylized editing), plus references to other Pruna models like FLUX and Qwen Image.

How do I control the output size?

Pass an `aspect_ratio` in the input JSON. Supported values include 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, or `custom` with explicit width and height.

Can I edit or combine existing images?

Yes. P-Image-Edit accepts an `images` array of URLs; a single image is edited (for example changing a background), and multiple images can be composited into a collage.

Does it run locally?

No. All generation runs on the hosted inference.sh platform; the skill only issues `belt` CLI commands and does not run models on your machine.

Install p-image

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill