PrunaAI's high-end image upscaler (575K+ runs) reaching up to 128-megapixel output. Target-megapixel or factor-based control, optional detail/realism enhancement passes, and megapixel-tiered pricing that starts at just 15 credits.
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": "prunaai/p-image-upscale",
"input": {
"image": "https://example.com/photo.jpg",
"upscale_mode": "target",
"target": 4
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image | string | Yes | - | Input image to upscale |
upscale_mode | string | No | target | target: aim for the megapixel count in `target` (precise billing). factor: multiply input size by `factor` (billed at top tier) targetfactor |
target | integer | No | 4 | Target output size in megapixels (1-128), used when upscale_mode is target |
factor | number | No | 2 | Upscale factor (1-8), used when upscale_mode is factor |
enhance_details | boolean | No | false | Run an extra pass that sharpens fine details |
enhance_realism | boolean | No | false | Run an extra pass that improves photographic realism |
output_format | string | No | jpg | Output format webpjpgpng |
output_quality | integer | No | 80 | Output quality (0-100) |
disable_safety_checker | boolean | No | false | Disable safety checker for generated images. |
no_op | boolean | No | false | Deprecated and ignored. Predictions always run normally. |
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=prunaai/p-image-upscale" \
-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": "prunaai/p-image-upscale",
"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 |
Default target mode at the cheapest tier (15 credits)
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "prunaai/p-image-upscale",
"input": {
"image": "https://example.com/photo.jpg",
"upscale_mode": "target",
"target": 4
}
}'High-resolution output with detail enhancement (120 credits)
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "prunaai/p-image-upscale",
"input": {
"image": "https://example.com/artwork.jpg",
"upscale_mode": "target",
"target": 32,
"enhance_details": true,
"output_format": "png"
}
}'POST /v1/predictions