Sharpen Generative

This documentation is valid for the following list of our models:

  • topaz-labs/sharpen-gen

Model Overview

A next-level sharpening model powered by generative AI, capable of recovering missing details during the refocusing/resharpening process.

Setup your API Key

If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.

API Schema

post
Body
modelstring · enumRequiredPossible values:
modestring · enumRequiredPossible values:
image_urlstring · uriRequired

The URL of the reference image.

output_formatstring · enumOptional

The format of the generated image.

Default: jpegPossible values:
subject_detectionstring · enumOptional

Specifies which subjects to detect and process. Options: 'All' (detect all subjects), 'Foreground' (detect only foreground subjects), 'Background' (detect background subjects).

Default: AllPossible values:
face_enhancementbooleanOptional

Whether to enhance faces in the image. When true, the model applies face-specific improvements.

Default: true
face_enhancement_creativitynumber · max: 1Optional

Level of creativity for face enhancement (0-1). Higher values allow more creative, less conservative changes.

Default: 0
face_enhancement_strengthnumber · max: 1Optional

How sharp enhanced faces are relative to background (0-1). Lower values blend changes subtly; higher values make faces more pronounced.

Default: 0.8
strengthnumber · max: 1Optional

Defines the overall intensity of the sharpening effect. Increases details. Too much sharpening can create an unrealistic result.

focus_boostnumber · min: 0.25 · max: 1Optional

Corrects images that are missing detail by downscaling your image then upscaling the results back to the original size. Use on very blurry images!

seedintegerOptional

Optional fixed seed for repeatable results.

Responses
200Success
application/json
post
/v1/images/generations
200Success

Quick Example

Let's sharpen a relatively strongly blurred image using the Strong mode while adjusting the strength parameter.

Response
Blurred Image
Deblurred Image
"mode": "Super Focus V2" "strength": 0.6

Last updated

Was this helpful?