This is a simplified guide to an AI model called P-Image-Upscale maintained by Prunaai. If you like these kinds of analysis, you should join AImodels.fyi or follow us on Twitter.
Overview
p-image-upscale is a fast image upscaler from prunaai that scales images to target resolutions up to 8 megapixels in under one second. The model supports two upscaling modes: a fixed megapixel target (1-8 MP) or a scaling factor applied to each dimension (1-8x). The single most important thing to know is that this model prioritizes speed—it completes 4 MP upscales in under one second—making it suitable for real-time applications, but you must verify output quality against your specific use case requirements since speed is the primary optimization target.
Best use cases
Web image optimization and lazy loading. This model works well for dynamically upscaling compressed or thumbnail-quality web images before display. Since it processes 4 MP images in under one second, you can upscale images on-demand in user-facing applications without noticeable latency. The enhance_realism flag helps recover detail lost in JPEG compression, making it practical for e-commerce thumbnails that need to display at larger sizes on product pages.
Real-time photo enhancement in mobile and desktop applications. Native apps can call this model from within editing workflows where users expect immediate feedback. The speed enables interactive upscaling where users see results instantly after importing a photo, rather than waiting for background processing to complete. This is particularly useful for camera apps or photo editors that need to preview upscaled results before the user commits to the enhancement.
AI-generated image refinement. The enhance_realism parameter specifically targets AI-generated images, improving their realism without requiring a separate specialized model. If your pipeline generates images from a diffusion model or other generative system, piping them through this upscaler with enhancement flags can produce more polished final outputs suitable for publication or further refinement.
Batch processing of legacy image archives. Organizations with large archives of lower-resolution images can upscale them in batches using the factor-based mode. The sub-second inference time means you can process thousands of images without excessive compute costs. This applies to historical photo libraries, archival digitization projects, or datasets where you need uniform higher resolution for modern display or analysis.
Fine detail recovery with selective enhancement. When you need to recover small details without altering the overall image significantly, the enhance_details flag provides texture-focused upscaling. This works best for images with identifiable fine structures like fabric textures, natural patterns, or technical drawings where detail preservation matters more than stylistic consistency.
Limitations
This model caps output at 8 megapixels, which limits its use for ultra-high-resolution applications like billboard printing, large-format photography, or gigapixel-scale imaging. The maximum scaling factor of 8x and megapixel ceiling mean you cannot take a small thumbnail and scale it arbitrarily large.
The enhance_details and enhance_realism parameters introduce intentional deviation from the original image. Documentation states they "may increase contrast and introduce minor deviations from the original image," which disqualifies this model for applications requiring pixel-perfect fidelity, like archival restoration where authenticity is paramount or medical imaging where unintended artifacts could affect diagnosis.
The model applies a safety checker by default (disable_safety_checker defaults to false), which may reject certain image types unexpectedly. While you can disable it, this adds operational complexity if your use case frequently encounters false positives.
Output quality settings only apply to JPG format—PNG outputs ignore the output_quality parameter entirely. This means PNG outputs cannot be tuned for file size, which matters if you're generating PNGs for bandwidth-constrained scenarios.
The model makes no claims about supporting specific upscaling scenarios like face hallucination, text clarity, or domain-specific images (medical scans, satellite imagery, scientific microscopy). General-purpose upscaling often struggles with these specialized inputs, and the documentation does not indicate custom handling.
The speed advantage comes at the potential cost of quality compared to slower models that spend more computation per pixel. You must validate visual quality empirically for your specific image types and use cases rather than assuming "fastest" means "best for your needs."
How it compares
qwen-image-fast by prunaai generates high-fidelity 1.5 MP images in 1 second from text prompts, making it a generative model rather than an upscaler. Choose p-image-upscale when you need to enlarge existing images; choose qwen-image-fast when you need to generate new images from scratch or descriptions.
masked-upscaler by prakharsaxena24 upscales selected regions using masks, offering fine-grained spatial control that p-image-upscale lacks. Pick p-image-upscale for simple full-image upscaling across your entire pipeline; pick masked-upscaler when you need selective upscaling of specific image areas while preserving others at original resolution.
upscaler by scamai is another general-purpose upscaler with unspecified speed characteristics. Since p-image-upscale advertises sub-second inference for 4 MP, it likely outpaces upscaler if latency matters; however, without published benchmarks for upscaler, you should test both if quality is your primary concern over speed.
Technical specifications
The model runs on Replicate's infrastructure and uses Cog version 0.16.12. It accepts image URIs as input and returns a single image URI as output. The API supports two distinct upscaling workflows: target mode (scale to fixed megapixel resolution from 1-8 MP) or factor mode (multiply each image dimension by a scaling factor from 1-8x), with a hard output cap of 8 megapixels regardless of mode.
Enhancement features include optional detail sharpening and realism improvement, both disabled by default. Output format selection supports JPG (default, with quality 0-100, default 80) and PNG (quality parameter ignored). A health check mode (no_op) exists for status verification without triggering inference. The safety checker runs by default but can be disabled. The latest version was deployed on April 30, 2026, indicating active maintenance.
Key constraints:
- Maximum output resolution: 8 megapixels
- Maximum scaling factor: 8x
- Inference time for 4 MP: <1 second (per description)
- Supported output formats: JPG, PNG
- Default upscale mode: target (4 MP)
- Default scaling factor: 2x (when factor mode is selected)
- Default output format: JPG at quality 80
Model inputs and outputs
Inputs
- image (string, URI, required): Input image to upscale. Provided as a URL-formatted string.
- upscale_mode (enum, default: "target"): Choice between "target" (fixed megapixel resolution) or "factor" (scaling multiplier).
- target (integer, default: 4, range: 1-8): Target resolution in megapixels when upscale_mode is "target".
- factor (number, default: 2, range: 1-8): Scaling multiplier applied to each image dimension when upscale_mode is "factor".
- enhance_details (boolean, default: false): Enable fine texture and detail enhancement. May increase contrast and introduce minor deviations from original.
- enhance_realism (boolean, default: false): Improve realism, particularly for AI-generated images. May deviate more significantly from original.
- output_format (enum, default: "jpg"): Output image format, either "jpg" or "png".
- output_quality (integer, default: 80, range: 0-100): Quality level for JPG output. Ignored for PNG format.
- disable_safety_checker (boolean, default: false): Disable content safety filtering if needed.
- no_op (boolean, default: false): Health check mode that returns status without running inference.
Outputs
- output (string, URI): A single image URI pointing to the upscaled result. Format and quality determined by input parameters.
Getting started
import replicate client = replicate.Replicate() output = client.run( "prunaai/p-image-upscale:ea74e255330ec5a0a6aa394e7e1451a8cea94fe1edb8266cc4848eab047a74c4", input={ "image": "https://example.com/photo.jpg", "upscale_mode": "target", "target": 4, "enhance_realism": False, "enhance_details": False, "output_format": "jpg", "output_quality": 80, } ) print(output) This example upscales an image to 4 megapixels using the default target mode without enhancement. Adjust target to a value between 1-8 for different megapixel resolutions, set enhance_realism to true for AI-generated images, or switch upscale_mode to "factor" with an appropriate factor value (1-8) if you prefer scaling by a multiplier instead.
Frequently asked questions
Q: What image formats does this model accept as input?
A: The API accepts image URIs as strings, so any format your hosting supports (JPG, PNG, WebP, etc.) should work as long as it's accessible via HTTP(S) URL. The model itself does not enforce format restrictions based on the schema.
Q: Can I upscale images larger than 8 megapixels, or scale them more than 8x?
A: No. The hard output ceiling is 8 megapixels regardless of input size or scaling factor, and the maximum scaling factor is 8x per dimension. Attempting to exceed these limits will be capped at the maximum.
Q: What is the difference between enhance_details and enhance_realism?
A: enhance_details focuses on fine textures and small structures, potentially increasing contrast with minor deviations; enhance_realism targets overall perceptual realism and is recommended for AI-generated images, with potentially larger deviations from the original. Use enhance_details for photographs or technical images where texture matters; use enhance_realism for AI outputs or when you want more dramatic improvement.
Q: How long does upscaling actually take?
A: The description states the model upscales 4 MP images in under one second. Larger upscales may take longer, but this model prioritizes speed as its core advantage. Exact timing varies by image content and server load on Replicate.
Q: Should I use target mode or factor mode?
A: Use target mode (default) if you want consistent output resolution across different input sizes—specify the final megapixel target and let the model handle scaling proportionally. Use factor mode if you want to uniformly enlarge all images by the same multiplier, preserving aspect ratios explicitly.
Q: Is the safety checker likely to block my images?
A: The safety checker is enabled by default and may flag certain image types. If you encounter unexpected rejections, set disable_safety_checker to true. The exact criteria for flagging are not documented.
Q: Can I use upscaled images commercially?
A: The model itself is provided through Replicate's commercial API, so usage is subject to Replicate's terms of service and any license specified by prunaai. Check the model's official repository or creator documentation for any specific restrictions on output ownership or reuse.
Q: How does this compare to offline upscaling tools or models I can self-host?
A: This model trades self-hosting flexibility and privacy for convenience and speed guarantees on Replicate's managed infrastructure. If latency, privacy, or offline operation are critical, self-hosting alternatives may be preferable; if you need simple, fast API access without managing infrastructure, this model delivers that directly.

