topazlabs / image-upscale
Professional-grade image upscaling, from Topaz Labs (Updated 1 month, 3 weeks ago)
- Public
- 62.6K runs
-
$0.05 per unit
Prediction
topazlabs/image-upscaleOfficial modelIDsxqdnd1d7xrma0cpdes9ef9fc8StatusSucceededSourceWebTotal durationCreatedInput
- enhance_model
- CGI
- output_format
- jpg
- upscale_factor
- 2x
- face_enhancement
- subject_detection
- None
- face_enhancement_strength
- 0.8
- face_enhancement_creativity
- 0
{ "image": "https://replicate.delivery/pbxt/Mtfss8QN14MF5lEERiMeVlxcneNfm8GEGd5A0IKbc2Ks4oi2/topaz.png", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "2x", "face_enhancement": false, "subject_detection": "None", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { image: "https://replicate.delivery/pbxt/Mtfss8QN14MF5lEERiMeVlxcneNfm8GEGd5A0IKbc2Ks4oi2/topaz.png", enhance_model: "CGI", output_format: "jpg", upscale_factor: "2x", face_enhancement: false, subject_detection: "None", face_enhancement_strength: 0.8, face_enhancement_creativity: 0 }; const output = await replicate.run("topazlabs/image-upscale", { input }); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "topazlabs/image-upscale", input={ "image": "https://replicate.delivery/pbxt/Mtfss8QN14MF5lEERiMeVlxcneNfm8GEGd5A0IKbc2Ks4oi2/topaz.png", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "2x", "face_enhancement": False, "subject_detection": "None", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/Mtfss8QN14MF5lEERiMeVlxcneNfm8GEGd5A0IKbc2Ks4oi2/topaz.png", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "2x", "face_enhancement": false, "subject_detection": "None", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0 } }' \ https://api.replicate.com/v1/models/topazlabs/image-upscale/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-04-25T06:47:35.875964Z", "created_at": "2025-04-25T06:46:01.279000Z", "data_removed": false, "error": null, "id": "sxqdnd1d7xrma0cpdes9ef9fc8", "input": { "image": "https://replicate.delivery/pbxt/Mtfss8QN14MF5lEERiMeVlxcneNfm8GEGd5A0IKbc2Ks4oi2/topaz.png", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "2x", "face_enhancement": false, "subject_detection": "None", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0 }, "logs": "Generating...\nProcessed in 93.8sec\nCredits used: 1\nDownloading 4833909 bytes\nDownloaded 4.61MB in 0.20sec\n/usr/local/lib/python3.12/site-packages/cog/server/scope.py:21: ExperimentalFeatureWarning: current_scope is an experimental internal function. It may change or be removed without warning.\n warnings.warn(", "metrics": { "image_count": 1, "predict_time": 94.579246378, "total_time": 94.596964 }, "output": "https://replicate.delivery/xezq/MzHCyd650VZ0Cx6ZID7YFU7WGg1J579C4ecwkhuvMH8DEHTKA/tmp9lnlmaoj.jpg", "started_at": "2025-04-25T06:46:01.296718Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-bzhe5wc4wpqphm72byrltotmtyqptnyex47gybqfjtauihu64ica", "get": "https://api.replicate.com/v1/predictions/sxqdnd1d7xrma0cpdes9ef9fc8", "cancel": "https://api.replicate.com/v1/predictions/sxqdnd1d7xrma0cpdes9ef9fc8/cancel" }, "version": "hidden" }
Generated inGenerating... Processed in 93.8sec Credits used: 1 Downloading 4833909 bytes Downloaded 4.61MB in 0.20sec /usr/local/lib/python3.12/site-packages/cog/server/scope.py:21: ExperimentalFeatureWarning: current_scope is an experimental internal function. It may change or be removed without warning. warnings.warn(
Prediction
topazlabs/image-upscaleOfficial modelID2b7abzyx1hrmc0cpdp6rz8mvjgStatusSucceededSourceWebTotal durationCreatedInput
- enhance_model
- Low Resolution V2
- output_format
- jpg
- upscale_factor
- 4x
- face_enhancement
- subject_detection
- Foreground
- face_enhancement_strength
- 0.8
- face_enhancement_creativity
- 0.5
{ "image": "https://replicate.delivery/pbxt/MtnpGxNIVJlHAMZmQNl5bLARbYpiLahniAYis3RsRN2KwhfJ/out-1.webp", "enhance_model": "Low Resolution V2", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": true, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.5 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { image: "https://replicate.delivery/pbxt/MtnpGxNIVJlHAMZmQNl5bLARbYpiLahniAYis3RsRN2KwhfJ/out-1.webp", enhance_model: "Low Resolution V2", output_format: "jpg", upscale_factor: "4x", face_enhancement: true, subject_detection: "Foreground", face_enhancement_strength: 0.8, face_enhancement_creativity: 0.5 }; const output = await replicate.run("topazlabs/image-upscale", { input }); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "topazlabs/image-upscale", input={ "image": "https://replicate.delivery/pbxt/MtnpGxNIVJlHAMZmQNl5bLARbYpiLahniAYis3RsRN2KwhfJ/out-1.webp", "enhance_model": "Low Resolution V2", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": True, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/MtnpGxNIVJlHAMZmQNl5bLARbYpiLahniAYis3RsRN2KwhfJ/out-1.webp", "enhance_model": "Low Resolution V2", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": true, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.5 } }' \ https://api.replicate.com/v1/models/topazlabs/image-upscale/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-04-25T15:25:48.719207Z", "created_at": "2025-04-25T15:25:35.884000Z", "data_removed": false, "error": null, "id": "2b7abzyx1hrmc0cpdp6rz8mvjg", "input": { "image": "https://replicate.delivery/pbxt/MtnpGxNIVJlHAMZmQNl5bLARbYpiLahniAYis3RsRN2KwhfJ/out-1.webp", "enhance_model": "Low Resolution V2", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": true, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.5 }, "logs": "Converted image from webp to jpeg\nGenerating...\nProcessed in 12.5sec\nCredits used: 1\nDownloading 2229037 bytes\nDownloaded 2.13MB in 0.17sec", "metrics": { "image_count": 1, "predict_time": 12.825293246, "total_time": 12.835207 }, "output": "https://replicate.delivery/xezq/vXJDANfas80BdCZbLh06VSfeTtWCxdCB3TjgsVyxl0h5brMpA/tmp1orc4ro2.jpg", "started_at": "2025-04-25T15:25:35.893913Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-ine5brkltod6pxikhpnsg7st6rc63o3b3qeocz3mxqdxklwztp2a", "get": "https://api.replicate.com/v1/predictions/2b7abzyx1hrmc0cpdp6rz8mvjg", "cancel": "https://api.replicate.com/v1/predictions/2b7abzyx1hrmc0cpdp6rz8mvjg/cancel" }, "version": "hidden" }
Generated inConverted image from webp to jpeg Generating... Processed in 12.5sec Credits used: 1 Downloading 2229037 bytes Downloaded 2.13MB in 0.17sec
Prediction
topazlabs/image-upscaleOfficial modelIDc4bkfjywb9rme0cpdpctcfscxrStatusSucceededSourceWebTotal durationCreatedInput
- enhance_model
- CGI
- output_format
- jpg
- upscale_factor
- 4x
- face_enhancement
- subject_detection
- Foreground
- face_enhancement_strength
- 0.8
- face_enhancement_creativity
- 0.3
{ "image": "https://replicate.delivery/pbxt/Mto1gRxfYByMDzlSH8TdQXWbUVd8e5QMCyBcsolttP3oUJwF/0_0.jpg", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": false, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.3 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { image: "https://replicate.delivery/pbxt/Mto1gRxfYByMDzlSH8TdQXWbUVd8e5QMCyBcsolttP3oUJwF/0_0.jpg", enhance_model: "CGI", output_format: "jpg", upscale_factor: "4x", face_enhancement: false, subject_detection: "Foreground", face_enhancement_strength: 0.8, face_enhancement_creativity: 0.3 }; const output = await replicate.run("topazlabs/image-upscale", { input }); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "topazlabs/image-upscale", input={ "image": "https://replicate.delivery/pbxt/Mto1gRxfYByMDzlSH8TdQXWbUVd8e5QMCyBcsolttP3oUJwF/0_0.jpg", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": False, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.3 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/Mto1gRxfYByMDzlSH8TdQXWbUVd8e5QMCyBcsolttP3oUJwF/0_0.jpg", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": false, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.3 } }' \ https://api.replicate.com/v1/models/topazlabs/image-upscale/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-04-25T15:38:55.364909Z", "created_at": "2025-04-25T15:38:42.138000Z", "data_removed": false, "error": null, "id": "c4bkfjywb9rme0cpdpctcfscxr", "input": { "image": "https://replicate.delivery/pbxt/Mto1gRxfYByMDzlSH8TdQXWbUVd8e5QMCyBcsolttP3oUJwF/0_0.jpg", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": false, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.3 }, "logs": "Generating...\nProcessed in 12.7sec\nCredits used: 1\nDownloading 5529122 bytes\nDownloaded 5.27MB in 0.25sec", "metrics": { "image_count": 1, "predict_time": 13.220456026, "total_time": 13.226909 }, "output": "https://replicate.delivery/xezq/XgpfHZYx07VnCyiwOGfh8KcFZD1Q5iIfeDbAUxv2iHOeRvykC/tmpcjqoazdg.jpg", "started_at": "2025-04-25T15:38:42.144453Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-m72b7smiddym3ftf2sxfys7nqfgi5jbrljk4lm5shvpppojqfezq", "get": "https://api.replicate.com/v1/predictions/c4bkfjywb9rme0cpdpctcfscxr", "cancel": "https://api.replicate.com/v1/predictions/c4bkfjywb9rme0cpdpctcfscxr/cancel" }, "version": "hidden" }
Generated inGenerating... Processed in 12.7sec Credits used: 1 Downloading 5529122 bytes Downloaded 5.27MB in 0.25sec
Prediction
topazlabs/image-upscaleOfficial modelIDqqgfgar6k5rmc0cpdpdtcjfkdrStatusSucceededSourceWebTotal durationCreatedInput
- enhance_model
- CGI
- output_format
- jpg
- upscale_factor
- 4x
- face_enhancement
- subject_detection
- Foreground
- face_enhancement_strength
- 0.8
- face_enhancement_creativity
- 0.3
{ "image": "https://replicate.delivery/pbxt/Mto2sT3qwNZBRT3YMsI1TxiE3LWx0lECZYvV1TsjRDIZNFHN/0_2.jpg", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": false, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.3 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { image: "https://replicate.delivery/pbxt/Mto2sT3qwNZBRT3YMsI1TxiE3LWx0lECZYvV1TsjRDIZNFHN/0_2.jpg", enhance_model: "CGI", output_format: "jpg", upscale_factor: "4x", face_enhancement: false, subject_detection: "Foreground", face_enhancement_strength: 0.8, face_enhancement_creativity: 0.3 }; const output = await replicate.run("topazlabs/image-upscale", { input }); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "topazlabs/image-upscale", input={ "image": "https://replicate.delivery/pbxt/Mto2sT3qwNZBRT3YMsI1TxiE3LWx0lECZYvV1TsjRDIZNFHN/0_2.jpg", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": False, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.3 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run topazlabs/image-upscale using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/Mto2sT3qwNZBRT3YMsI1TxiE3LWx0lECZYvV1TsjRDIZNFHN/0_2.jpg", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": false, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.3 } }' \ https://api.replicate.com/v1/models/topazlabs/image-upscale/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
Loading...
{ "completed_at": "2025-04-25T15:40:11.448789Z", "created_at": "2025-04-25T15:39:58.489000Z", "data_removed": false, "error": null, "id": "qqgfgar6k5rmc0cpdpdtcjfkdr", "input": { "image": "https://replicate.delivery/pbxt/Mto2sT3qwNZBRT3YMsI1TxiE3LWx0lECZYvV1TsjRDIZNFHN/0_2.jpg", "enhance_model": "CGI", "output_format": "jpg", "upscale_factor": "4x", "face_enhancement": false, "subject_detection": "Foreground", "face_enhancement_strength": 0.8, "face_enhancement_creativity": 0.3 }, "logs": "Generating...\nProcessed in 12.5sec\nCredits used: 1\nDownloading 5044505 bytes\nDownloaded 4.81MB in 0.27sec", "metrics": { "image_count": 1, "predict_time": 12.948381181, "total_time": 12.959789 }, "output": "https://replicate.delivery/xezq/7VVfjaxuIxQJXSPPjsKq2r8vKFew5YZMsevaNRJ1Jzt32rMpA/tmpg5dqe4si.jpg", "started_at": "2025-04-25T15:39:58.500408Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-n2xwuspo2titmlph3otc7zta2hcrhfq6hg75lhugvpoib4w7maka", "get": "https://api.replicate.com/v1/predictions/qqgfgar6k5rmc0cpdpdtcjfkdr", "cancel": "https://api.replicate.com/v1/predictions/qqgfgar6k5rmc0cpdpdtcjfkdr/cancel" }, "version": "hidden" }
Generated inGenerating... Processed in 12.5sec Credits used: 1 Downloading 5044505 bytes Downloaded 4.81MB in 0.27sec
Want to make some of these yourself?
Run this model