Pular para o conteúdo principal
Model logo

API do Topaz Image Upscale

  • Imagem para imagem

Topaz Image Upscale faz parte da família de modelos TopazVer todos os modelos Topaz

Toque para enviarPNG, JPG, WEBP, GIF · Máx. 100 MB
Saída

Seu image gerado aparecerá aqui

Atualizado

What is the Topaz Image Upscale API?

The Topaz Image Upscale API is live on UnificAlly as topaz-labs/image-upscale, from $0.035 per image. Topaz Image Upscale is a single-call image enhancement and resizing endpoint backed by Topaz Labs' production models. The API mirrors the upscaling pass inside Photo AI: pick a preset for your source type, set an output size with an upscale factor such as 2x or 4x, optionally adjust denoise and sharpen between 0 and 1 inside extra_settings, and turn on face enhancement when the source is a portrait. Five presets cover general photos, low-resolution sources, CGI and illustration, high-fidelity enlargement, and text. The preset selects which Topaz model variant runs, and any setting you leave out is configured automatically by Topaz. Output is delivered as a downloadable image URL once the task completes.

Topaz Image Upscale API specs

Model IDtopaz-labs/image-upscale
EndpointPOST https://api.unifically.com/v1/tasks
Request typesImage upscaling and enhancement from one source image
Presetsstandard-v2, low-resolution-v2, cgi, high-fidelity-v2, text-refine
Upscale factorA number such as 2, 2.5, or 4, or a string such as "2x" or "4x"
Maximum output1024 megapixels
Output formatsjpeg, jpg, png, tiff, tif
Reference inputsOne image URL in image_url
Rate up to 24 MP$0.035
Rate at 24-48 MP$0.07
Rate at 48-72 MP$0.105
Rate at 72-96 MP$0.14
Rate over 96 MP$0.035/24 megapixels

Billing is per image by megapixel tier, with no subscription. The pricing page shows the live rate table.

How to use the Topaz Image Upscale API

  1. Create an API key on the API keys page.
  2. Send a POST request to https://api.unifically.com/v1/tasks with the model ID and an input object.
  3. Read the task_id from the response, then check /v1/tasks/{task_id} until the task is finished, or pass a callback URL and wait for the result.
curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "topaz-labs/image-upscale",
    "input": {
      "image_url": "https://example.com/photo.jpg",
      "upscale_factor": "2x"
    }
  }'

The response returns the task ID straight away:

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}

The finished task carries the image URL.

curl https://api.unifically.com/v1/tasks/{task_id} \
  -H "Authorization: Bearer YOUR_API_KEY"

Topaz Image Upscale API parameters

ParameterTypeDefaultWhat it does
image_urlstringrequiredPublicly accessible URL of the source image
presetstringstandard-v2Topaz model variant. One of standard-v2, low-resolution-v2, cgi, high-fidelity-v2, text-refine
upscale_factorstring or numbernoneOutput-dimension multiplier. Accepts a number (2, 2.5, 4) or a string suffix ("2x", "4x"). The source image is probed automatically to derive output dimensions
crop_to_fillbooleanfalseCrops to fill the output dimensions instead of letterboxing
face_enhancementbooleanfalseEnables face recovery. When true, set face_enhancement_strength and face_enhancement_creativity inside extra_settings
output_formatstringnoneOutput image format. One of jpeg, jpg, png, tiff, tif
extra_settingsobjectnoneModel-specific tuning, listed below
nsfw_checkbooleanfalseChecks the prompt and input images for NSFW content before generating. Off unless set to true

The Topaz Image Upscale API documentation has the full reference, with an example for every preset.

Extra settings

Pass any of these inside extra_settings. Anything omitted is configured automatically by Topaz.

KeyTypeRangeWhat it does
face_enhancement_strengthfloat0 to 1Required when face_enhancement is true. Strength of face recovery
face_enhancement_creativityfloat0 to 1Required when face_enhancement is true. 0 is realistic, 1 is creative
subject_detectionstringforeground, background, allWhere enhancements are applied
sharpenfloat0 to 1Slightly sharpens the output
denoisefloat0 to 1Reduces noise
fix_compressionfloat0 to 1Reduces JPEG compression artifacts
strengthfloat0.01 to 1Overall model strength. Too high can look unrealistic
deblur_strengthfloat0 to 1Deblur pass strength, default 0.5. cgi and text-refine presets only
denoise_strengthfloat0 to 1Noise reduction strength, default 0.5. text-refine preset only
decompression_strengthfloat0 to 1Compression-artifact recovery strength, default 0.5. text-refine preset only
opacityfloat0 to 1Blend between source and processed output, default 1.0. text-refine preset only

Portrait with face recovery

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "topaz-labs/image-upscale",
    "input": {
      "image_url": "https://example.com/portrait.jpg",
      "preset": "high-fidelity-v2",
      "upscale_factor": "2x",
      "face_enhancement": true,
      "extra_settings": {
        "face_enhancement_strength": 0.7,
        "face_enhancement_creativity": 0.2,
        "subject_detection": "foreground"
      }
    }
  }'

Key features of Topaz Image Upscale

Five features cover the surface area you'll actually use.

Flexible upscale factor

Set the factor as a number such as 2, 2.5, or 4, or as a string such as "2x" or "4x". Both sides scale by the factor, and the source image is probed automatically to work out the output dimensions.

Denoise and sharpen as separate sliders

Both run from 0 to 1 inside the extra settings, and Topaz configures them automatically when you leave them out. Treat them as independent dials. Compressed JPEGs reward low denoise and moderate sharpen; clean digital sources can take more sharpen without halo. The split lets you tune for material instead of forcing a single quality knob.

Face enhancement tuned for portraits

Off by default. Turn it on and the face pass recovers detail in eyes, hair, and skin texture, with a strength and a creativity value from 0 to 1 that you set in the extra settings. Leave it off for landscapes, product shots, and non-human subjects, where it can amplify random textures into face-like artifacts.

Five presets for different material

Photographs, screenshots, anime art, line work, document scans, and game assets all flow through the same endpoint. Pick the preset that fits the source: standard for most photos and graphics, low-resolution for degraded inputs, CGI for illustration and renders, high-fidelity for sources that are already large, and text-refine for typography, logos, and UI.

1024 MP ceiling for print and large displays

A 1024-pixel-wide source becomes 16384 pixels at 16x. Enough headroom for billboard prints, large-format event displays, and high-DPI master files. The computed output can be at most 1024 megapixels. Plan downstream storage around the resulting size and pick a smaller factor when delivery requirements are kinder.

What Topaz Image Upscale is best for

  • E-commerce catalogs

    Lift small supplier JPEGs to storefront-ready sizes with 4x or 8x upscaling, denoise pulled down to keep texture, and face enhancement left off for product-only shots.

  • Print prep from digital-only sources

    4x or 8x passes when the design file is all that exists. Push sharpen toward 0.7 for line work and lettering, ease back for photographs.

  • Portrait restoration and headshot prep

    Turn face enhancement on. Pair with 2x or 4x and a moderate denoise value to lift older portraits before manual retouching.

  • Document and screenshot scaling

    2x with the text-refine preset cleans up screenshots, scanned forms, and OCR-bound pages without softening text edges.

  • Anime, CG, and game asset scaling

    8x or 16x with the CGI preset keeps line clarity and color blocks intact when scaling pixel art or marketing key art.

  • In-place enhancement at original size

    Set the upscale factor to 1x to run the enhancement pass without changing geometry. Useful when the resolution is already correct but the image is noisy or soft.

Topaz Image Upscale use cases

Wire a supplier-image normalisation step into a product ingestion pipeline: every new SKU image flows through Topaz at 4x and lands at storefront-ready resolution before it reaches the catalog. Build a portrait restoration tool that lets users upload a phone photo of an old print and receive a face-enhanced 4x version back. Scale digital marketing key art to print resolution by sending the latest hero asset through 8x with sharpen tuned high. Add an in-place clean-up step to a content management workflow by running every uploaded image through 1x for grain reduction without any size change.

Perguntas frequentes

Perguntas frequentes sobre Topaz Image Upscale

Topaz Image Upscale is the API form of the Topaz Labs upscaling engine that powers Photo AI and Gigapixel desktop. Send any image URL, pick a preset for your source type, set an upscale factor such as 2x or 4x, optionally tune denoise and sharpen, and the model returns a higher-resolution version with optional face recovery applied.

Grab a key from the API keys page and send it as Authorization: Bearer <key> to https://api.unifically.com/v1/tasks. The first Topaz Image Upscale API request needs one publicly accessible image in image_url; the preset, upscale factor and tuning are optional.

Send model topaz-labs/image-upscale with image_url, a preset (standard-v2 by default, or low-resolution-v2, cgi, high-fidelity-v2, text-refine), an upscale_factor such as 2x or 4, and tuning like denoise and sharpen inside extra_settings. The finished task carries the upscaled image as a downloadable URL.

Billing is per image, by megapixel tier: $0.035 up to 24 MP, $0.07 for 24 to 48 MP, $0.105 for 48 to 72 MP, and $0.14 for 72 to 96 MP. Above 96 MP the rate is $0.035/24 megapixels. The pricing page shows the live table.

The upscale_factor input is an output-dimension multiplier. It accepts a number such as 2, 2.5, or 4, or a string with an x suffix such as "2x" or "4x". The source image is probed automatically to work out the output dimensions (a 500x500 input becomes 1000x1000 at 2x). The computed output can be at most 1024 megapixels.

There are five. standard-v2 is the default and suits most photos and graphics. low-resolution-v2 is for small, heavily compressed, or degraded inputs. cgi is for illustrations, digital art, and renders. high-fidelity-v2 is for sources that are already high resolution. text-refine is for typography, logos, UI elements, and geometric shapes.

Both are floats between 0 and 1, passed inside the extra_settings object. If you leave them out, Topaz configures them automatically. Higher denoise removes more grain at the cost of fine texture; lower preserves more grain. Higher sharpen recovers more edge detail but can produce halos on already-sharp sources. For compressed JPEGs, try denoise 0.3 with sharpen 0.5.

Face enhancement is off by default. Set face_enhancement to true and Topaz applies an extra pass that recovers detail in human faces (eyes, hair, skin texture). When it is on, set face_enhancement_strength and face_enhancement_creativity inside extra_settings, each from 0 to 1, where a creativity of 0 is realistic and 1 is creative. It is tuned for portraits and headshots. Leave it off on landscapes, product shots, or non-human subjects, where it can amplify random textures into face-like artifacts.

The computed output can be at most 1024 megapixels, and a request that would exceed this is rejected before it runs. Large factors add up fast. A 1024-pixel-wide source becomes 16384 pixels wide at 16x. Pick a smaller upscale factor when an input combined with the chosen factor would overshoot the cap or what your delivery pipeline and downstream tools accept.

4x with denoise around 0.3 and sharpen around 0.5 in the extra settings is a strong starting point. It lifts small supplier JPEGs to storefront-ready sizes without the over-sharpened halo that a pure 8x pass tends to produce on already-compressed sources.