PeumeAPI

AI generation

Sharpen Image

Sharpening models tuned per blur type: lens, motion, focus, portrait, wildlife.

$0.15 per credit

Call it

curl https://api.peume.com/v1/call/sharpen-image \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image_url": "your image url",
    "source_width": 10,
    "source_height": 10,
    "model": "Standard",
    "output_format": "jpeg"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: sharpen-image.

Parameters

image_urlRequiredstring

Public https:// URL of the source image (JPEG, PNG or TIFF). downloads it directly. Max 500 MB.

source_widthRequiredinteger

Source width in pixels, e.g. 4000. The output keeps the source size and billing is by its megapixels, so the size sets the price.

source_heightRequiredinteger

Source height in pixels, e.g. 3000.

modelstring

Model: Standard (general-purpose sharpening); Strong (noticeably soft images); Natural (subtle sharpening that avoids over-processing); Lens Blur V2 (optical blur from lens softness or missed focus); Motion Blur (blur from camera or subject movement); Refocus (slightly out-of-focus images); Portrait (faces and skin texture); Wildlife (fur, feathers and scales); Auto Sharpen (noise-aware one-click sharpening). Default Standard.

Standard · Strong · Natural · Lens Blur V2 · Motion Blur · Refocus · Portrait · Wildlife · Auto Sharpen

Example: Standard

output_formatstring

Output image format. Default jpeg.

jpeg · png · tiff

Example: jpeg

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.