All models

P-Image Try-On

pruna/p-image-try-on
Pruna Image EditingVirtual Try-OnFashion

Pruna's P-Image Try-On virtually fits one or more garments onto a person's photo. Provide a photo of a person plus garment reference images and the model realistically dresses the person in the provided garments.

Quick start

# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
  -H "content-type: application/json" \
  -d '{
    "model": "pruna/p-image-try-on",
    "prompt": <string>
  }'

# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
  -J '{"model": "pruna/p-image-try-on", "prompt": "<string>"}'

Examples

example

Parameters

Input
garment_images array required

Garment reference images to fit onto the person. Each entry is an HTTP(S) URL or a base64 data URI. Up to 6 recommended, up to 11 supported.

output_format string required

Format of the saved output image.

output_quality integer required

Quality for jpg/webp outputs, from 0 to 100.

person_image string required

Image of the person to dress. A publicly reachable HTTP(S) URL or a base64 data URI (data:image/...;base64,...). Pass a public URL; to use a local file, upload it (free) via POST /v1/media (≤40MB) and pass the returned url.

preserve_input_size boolean required

Return the output at the original input resolution.

prompt string required

Experimental guidance for non-flatlay garment images, e.g. which garment from which image to use.

reference_pose string

Optional reference pose image (HTTP(S) URL or data URI). When provided, the person is reposed to match this reference before virtual try-on. Pass a public URL; to use a local file, upload it (free) via POST /v1/media (≤40MB) and pass the returned url.

seed integer

Random seed. Leave unset for a random seed.

turbo boolean required

Run faster with additional optimizations. Not recommended for more than 4 garments.

Output
image: model output URL