# Pruna P-Image Upscale > Fastest image upscaler in the world (<1s) supporting outputs up to 128 MP. - **Provider**: replicate - **Model ID**: prunaai/p-image-upscale - **Category**: image_upscale_restore - **Credits**: 12 per request - **Pricing Type**: input_based ## API Endpoint Base URL: https://api.core.today/v1 ### Create Prediction POST /predictions ### Get Status GET /predictions/{job_id} ### Cancel DELETE /predictions/{job_id} ## Authentication Header: `X-API-Key: YOUR_API_KEY` ## Input Parameters - `image` (string, **required**): Input image to upscale. - `disable_safety_checker` (boolean, optional): Disable safety checker for generated images. (Default: `False`) - `output_format` (string, optional): Format of the output images (Default: `jpg`; Options: `webp`, `jpg`, `png`) - `enhance_realism` (boolean, optional): Improve realism. May deviate more from the original image. Recommended for AI-generated images. (Default: `False`) - `enhance_details` (boolean, optional): Enhance fine textures and small details. May increase contrast and introduce minor deviations from the original image. (Default: `False`) - `factor` (number, optional): Scaling factor applied to each side of the image (used when upscale_mode is 'factor'). Output capped at 128 MP. (Default: `2`; Range: min: 1, max: 8) - `no_op` (boolean, optional): Deprecated and ignored. Predictions always run normally. (Default: `False`) - `output_quality` (integer, optional): Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs (Default: `80`; Range: min: 0, max: 100) - `upscale_mode` (string, optional): Upscale mode. 'target' scales to a fixed megapixel resolution. 'factor' multiplies each side by the given factor. (Default: `target`; Options: `target`, `factor`) - `target` (integer, optional): Target resolution in megapixels (used when upscale_mode is 'target'). (Default: `4`; Range: min: 1, max: 128) ## Example Request ```json { "model": "prunaai/p-image-upscale", "input": { "image": "https://replicate.delivery/pbxt/Omb2L1aOCEjqoP5R1bm6biU0MsbI1PGMtsoUdoIdOaO4Pc16/rltivouao62wpy9zcl5o3woj1wam.jpg", "output_format": "jpg", "enhance_realism": false, "enhance_details": false, "factor": 2, "no_op": false, "output_quality": 50, "upscale_mode": "target", "target": 4 } } ``` ## Response Format ```json { "job_id": "abc123", "status": "pending", "provider": "replicate", "model": "black-forest-labs/flux-schnell", "created_at": "2026-01-01T00:00:00Z", "result": null, "error": null } ``` Status values: `pending`, `processing`, `completed`, `failed`, `cancelled` ## Usage Flow 1. POST /predictions with model and input → receive job_id 2. Poll GET /predictions/{job_id} until status is `completed` or `failed` 3. Result contains output URL(s) or data ## Output Type url ## Tags prunaai, upscaler, image-upscale, 128mp, enhancement, utility ## Documentation https://replicate.com/prunaai/p-image-upscale