All models

P-Image-Upscale

pruna/p-image-upscale
Pruna Image UpscalingImage-to-ImageEnhancement

Pruna's P-Image-Upscale increases image resolution using AI, targeting 1-128 megapixels with optional detail and realism enhancement for sharper, cleaner results.

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-upscale",
    "image": <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-upscale", "image": "<string>"}'

Examples

example

Parameters

Input
disable_safety_checker boolean required

Disable safety checker for generated images.

enhance_details boolean required

Enhance fine textures and small details.

enhance_realism boolean required

Improve realism. Recommended for AI-generated images.

image string required

Input image to upscale. 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.

output_format string required

Format of the output image.

output_quality integer required

Quality when saving the output image (0-100). Not relevant for .png outputs.

target integer required

Target resolution in megapixels (1-128). Output is capped at 128 MP.

Output
image: model output URL