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": "https://example.com/input.jpg"
}'
# 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": "https://example.com/input.jpg"}'Examples
Parameters
Input
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.
disable_safety_checker boolean optional default: false
Disable safety checker for generated images.
enhance_details boolean optional default: false
Enhance fine textures and small details.
enhance_realism boolean optional default: false
Improve realism. Recommended for AI-generated images.
output_format string optional default: "jpg"
Format of the output image.
output_quality integer optional default: 80
Quality when saving the output image (0-100). Not relevant for .png outputs.
target integer optional default: 4
Target resolution in megapixels (1-128). Output is capped at 128 MP.
Output
image: model output URL