Use the powerful and accurate topaz image enhancer to enhance your images.
pip install requestsimport requests
response = requests.post(
"https://api.runflow.io/v1/run/upscale/image",
headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
json={
"model": "Standard V2",
"image_url": "https://public.runflow.io/images/models/photalabs/phota/example-output-0.webp",
"autoprompt": true,
"output_format": "png",
"upscale_factor": 4,
"face_enhancement": true,
"subject_detection": "Foreground",
"face_enhancement_strength": 0.8,
"face_enhancement_creativity": 0.1
},
)
data = response.json()
print(data["image"]["url"])| Parameter | Type | Description |
|---|---|---|
| prompt | string | Text prompt to guide generative upscaling (max 1024 chars). Applies to Redefine model only. |
| face_enhancement_creativity | number | Creativity level for face enhancement. 0.0 means no creativity, 1.0 means maximum creativity. Ignored if face enhancement is disabled. |
| face_enhancement | boolean | Whether to apply face enhancement to the image. Applies to standard enhance and Recovery V2 models. |
| model | string | Model to use for image enhancement. |
| crop_to_fill | boolean | |
| upscale_factor | number | Factor to upscale the image by (e.g. 2.0 doubles width and height) |
| face_enhancement_strength | number | Strength of the face enhancement. 0.0 means no enhancement, 1.0 means maximum enhancement. Ignored if face enhancement is disabled. |
| sharpen | number | Sharpening level (0.0-1.0). Applies to Standard V2, Low Resolution V2, CGI, High Fidelity V2, Text Refine, and Redefine models. |
| detail | number | Detail recovery level (0.0-1.0). Applies to Recovery V2 model only. |
| denoise | number | Denoising level (0.0-1.0). Applies to Standard V2, Low Resolution V2, CGI, High Fidelity V2, Text Refine, and Redefine models. |
| output_format | string | Output format of the upscaled image. |
| subject_detection | string | Subject detection mode for the image enhancement. Applies to standard enhance and Recovery V2 models. |
| strength | number | Enhancement strength (0.01-1.0). Applies to Text Refine model only. |
| texture | integer | Texture detail level for generative upscaling (1-5). Applies to Redefine model only. |
| image_url | image | Url of the image to be upscaled |
| autoprompt | boolean | Enable automatic prompt generation for generative upscaling. Applies to Redefine model only. |
| creativity | integer | Creativity level for generative upscaling (1-6). Higher values produce more creative/hallucinated details. Applies to Redefine model only. |
| fix_compression | number | Compression artifact removal level (0.0-1.0). Applies to Standard V2, Low Resolution V2, High Fidelity V2, and Text Refine models. |
| Field | Type | Description |
|---|---|---|
| image | string | The upscaled image. |
FLUX.2 [klein] 9B — Edit
black-forest-labs/flux-2-klein-9b/edit
Image-to-image editing with FLUX.2 [klein] 9B from Black Forest Labs. Precise mo...
Reve Edit
reve/edit
Reve's edit model lets you upload an existing image and then transform it via a ...
Wan 2.7 Pro Edit
alibaba/wan/v2.7/pro/edit
Edit and transform images using text instructions with the WAN 2.7 Pro model for...
Nano Banana 2 — Edit
google/nano-banana-2/edit
Nano Banana 2 is Google's new state-of-the-art image generation and editing mode...
Get API access in minutes. No GPU setup, no infrastructure to manage.