falImageAvailable now

topaz/upscale/image/precision

topaz/upscale/image/precision is an image tool from fal that runs in the background and returns images. Pay as you go, with one API key.

Run time p50 · last 24 hours
22.3s
Success rate · last 24 hours
98.2%

Pricing

$0.104 per started 24 megapixels of output. Output is the input size × the upscale factor squared.

Limits

Runs
In the background
Returns
image
Longest queue wait
1 hour
Run deadline
30 minutes
Longest run, end to end
4 hours
Largest inline input
1 MB
Largest input file
500 MB
Largest output
5 GB
Outputs per run
16

Input

FieldKindDefaultDescription
image_url requiredURL or file—

Url of the image to be upscaled

modelone of
Standard V2, High Fidelity V3, High Fidelity V2, Low Resolution V2, CGI, Text Refine, Faces
Standard V2

Precision upscaling model. Standard V2 fits most photos; High Fidelity V3/V2 preserve detail in professional shots; Low Resolution V2 recovers compressed sources; CGI targets art and rendered graphics; Text Refine keeps text and shapes crisp; Faces restores facial detail with Face Recovery 3.

upscale_factornumber
1 to 4
2

Factor to upscale the image by (e.g. 2.0 doubles width and height)

crop_to_filltrue or falsefalse
output_formatone of
jpeg, png
jpeg

Output format of the upscaled image.

subject_detectionone of
All, Foreground, Background
All

Subject detection mode for the image enhancement.

face_enhancementtrue or falsetrue

Whether to apply face enhancement to the image.

face_enhancement_creativitynumber
0 to 1
0

Creativity level for face enhancement. 0.0 means no creativity, 1.0 means maximum creativity. Ignored if face enhancement is disabled.

face_enhancement_strengthnumber
0 to 1
0.8

Strength of the face enhancement. 0.0 means no enhancement, 1.0 means maximum enhancement. Ignored if face enhancement is disabled.

sharpennumber
0 to 1
—

Sharpening level (0.0-1.0). Default varies by model.

denoisenumber
0 to 1
—

Denoising level (0.0-1.0). Default varies by model.

fix_compressionnumber
0 to 1
—

Compression artifact removal level (0.0-1.0). Not supported by the CGI model.

strengthnumber
0.01 to 1
—

Enhancement strength (0.01-1.0). Applies to Text Refine model only.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "topaz/upscale/image/precision",
    "input": {
      "image_url": "https://storage.googleapis.com/falserverless/model_tests/codeformer/codeformer_poor_1.jpeg"
    }
  }'