# Real-ESRGAN > The classic image upscaler (94M+ runs). Real-ESRGAN super-resolution up to 10x with optional GFPGAN face enhancement. - **Provider**: replicate - **Model ID**: nightmareai/real-esrgan - **Category**: image_upscale_restore - **Credits**: 5 per request - **Pricing Type**: fixed ## 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 - `scale` (number, optional): Factor to scale image by (Default: `4`; Range: min: 0, max: 10) - `face_enhance` (boolean, optional): Run GFPGAN face enhancement along with upscaling (Default: `False`) ## Example Request ```json { "model": "nightmareai/real-esrgan", "input": { "image": "https://replicate.delivery/pbxt/Ing7Fa4YMk6YtcoG1YZnaK3UwbgDB5guRc5M2dEjV6ODNLMl/cat.jpg", "scale": 2, "face_enhance": false } } ``` ## 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 upscaling, super-resolution, real-esrgan, face-enhancement, restoration ## Documentation https://replicate.com/nightmareai/real-esrgan