Seedance 2.0 15% OFF | Create in Video Generator →

P Image Upscale

pruna-ai /

Pruna AI P-Image Upscale is a fast AI image upscaling model that enhances image resolution and improves visual detail. Ready-to-use REST inference API for product photos, portraits, design assets, e-commerce images, social media visuals, and image enhancement workflows with simple integration, no coldstarts, and affordable pricing.

upscaler
Input

Drag & drop or click to upload

preview
If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Idle

$0.005per run·~200 / $1

ExamplesView all

Related Models

README

Pruna AI P-Image Upscale

Pruna AI P-Image Upscale enhances and enlarges images with a simple workflow built around target size selection and flexible output formatting. It is suitable for restoring old images, improving low-resolution assets, preparing sharper visuals for design or marketing, and generating cleaner outputs for downstream use.

Why Choose This?

  • Simple image upscaling Upload a single image and generate a higher-quality result with minimal configuration.

  • Target-based output control Use the target setting to choose the desired upscale level or output target.

  • Clean enhancement workflow Improve image clarity for photos, scans, product images, and other visual assets.

  • Flexible output format Export the upscaled image in a supported format such as png.

  • Affordable tiered pricing Uses a simple pricing structure based on the selected target tier.

Parameters

ParameterRequiredDescription
imageYesInput image to upscale.
targetNoTarget upscale setting or output target level. Higher values produce a larger or stronger upscale result. Supports values up to 128.
output_formatNoOutput image format, such as png.

How to Use

  1. Upload your image — provide the source image you want to enhance.
  2. Choose the target — select the upscale target that best matches your quality needs.
  3. Choose output format (optional) — select the format that best fits your workflow.
  4. Submit — run the model and download the upscaled image.

Example Use Case

Upscale an old street photograph to produce a cleaner, sharper version for archival, presentation, or creative reuse.

Pricing

Pricing is based on the selected target tier.

TargetCost
<= 4$0.005
> 4 and <= 8$0.010
> 8 and <= 16$0.020
> 16 and <= 32$0.040
> 32 and <= 64$0.060
> 64 and <= 128$0.120

Billing Rules

  • Requests with target <= 4 cost $0.005 per image
  • Requests with target > 4 and <= 8 cost $0.010 per image
  • Requests with target > 8 and <= 16 cost $0.020 per image
  • Requests with target > 16 and <= 32 cost $0.040 per image
  • Requests with target > 32 and <= 64 cost $0.060 per image
  • Requests with target > 64 and <= 128 cost $0.120 per image
  • Pricing depends on the selected target
  • output_format does not affect pricing

Best Use Cases

  • Old photo enhancement — Improve the clarity of scanned or low-resolution photographs.
  • Design asset preparation — Create sharper source images for layouts, presentations, and creative projects.
  • Product image improvement — Upscale commercial visuals for catalogs, ads, and marketplace listings.
  • Archival restoration workflows — Produce cleaner and larger outputs from legacy image assets.
  • General low-resolution cleanup — Improve images that need a simple boost in size and quality.

Pro Tips

  • Start with a lower target setting first if you want a faster and cheaper test run.
  • Use a clean source image whenever possible for better enhancement results.
  • Choose a higher target only when you actually need the larger or stronger upscale output.
  • png is a good choice when you want to preserve output quality.

Notes

  • image is the only required field.
  • target now supports values up to 128.
  • Pricing depends on the selected target tier.
  • output_format changes the file type, but not the price.
  • Higher target values may be more suitable for print, detailed review, or premium delivery workflows.

Related Models

Accessibility:This website uses AI models provided by third parties.

P Image Upscale API — Quick start

Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/pruna-ai/p-image/upscale with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for P Image Upscale below.

HTTP example
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/pruna-ai/p-image/upscale" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "image": "https://example.com/your-input.jpg",
    "target": 4,
    "output_format": "png",
    "enable_sync_mode": false,
    "enable_base64_output": false
}'

# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# When status is "completed", read the output from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');

const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env

const result = await client.run("pruna-ai/p-image/upscale", {
        "image": "https://example.com/your-input.jpg",
        "target": 4,
        "output_format": "png",
        "enable_sync_mode": false,
        "enable_base64_output": false
});

console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "pruna-ai/p-image/upscale",
    {
    "image": "https://example.com/your-input.jpg",
    "target": 4,
    "output_format": "png",
    "enable_sync_mode": false,
    "enable_base64_output": false
}
)

print(output["outputs"][0])  # → URL of the generated output

P Image Upscale API — Frequently asked questions

What is the P Image Upscale API?

P Image Upscale is a Pruna Ai model for upscaling, exposed as a REST API on WaveSpeedAI. Pruna AI P-Image Upscale is a fast AI image upscaling model that enhances image resolution and improves visual detail. Ready-to-use REST inference API for product photos, portraits, design assets, e-commerce images, social media visuals, and image enhancement workflows with simple integration, no coldstarts, and affordable pricing. You can call it programmatically or try it from the playground above.

How do I call the P Image Upscale API?

POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/pruna-ai/pruna-ai-p-image-upscale.

How much does P Image Upscale cost per run?

P Image Upscale starts at $0.005 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.

What inputs does P Image Upscale accept?

Key inputs: `image`, `enable_base64_output`, `enable_sync_mode`, `output_format`, `target`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/pruna-ai/pruna-ai-p-image-upscale.

How do I get started with the P Image Upscale API?

Sign up for a free WaveSpeedAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.

Can I use P Image Upscale outputs commercially?

Commercial usage rights depend on the model's license, set by its provider (Pruna Ai). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.