The classic image upscaler (94M+ runs). Real-ESRGAN super-resolution up to 10x with optional GFPGAN face enhancement โ the go-to default for cleanly enlarging photos and AI images.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "nightmareai/real-esrgan",
"input": {
"image": "https://example.com/photo.jpg",
"scale": 4
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image | string | Yes | - | Input image to upscale |
scale | number | No | 4 | Factor to scale the image by (up to 10) |
face_enhance | boolean | No | false | Run GFPGAN face enhancement along with upscaling |
There are 3 ways to provide files for the image parameter:
Attach files directly to POST /v1/predictions/upload. No separate upload step needed.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=nightmareai/real-esrgan" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:image=@your_file.png"Pass a publicly accessible URL directly. You can also use file_url from the Storage API.
{
"model": "nightmareai/real-esrgan",
"input": {
"prompt": "your prompt here",
"image": "https://example.com/image.jpg"
}
}Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Standard 4x upscale of a photo
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "nightmareai/real-esrgan",
"input": {
"image": "https://example.com/photo.jpg",
"scale": 4
}
}'Upscale a portrait and restore facial details
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "nightmareai/real-esrgan",
"input": {
"image": "https://example.com/portrait.jpg",
"scale": 2,
"face_enhance": true
}
}'POST /v1/predictions