curl --request POST \
--url https://api.goenhance.ai/api/v1/images/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "image-upscaler-pro",
"image_url": "https://your-cdn.com/photo.jpg",
"enhance_type": "upscale"
}
'import requests
url = "https://api.goenhance.ai/api/v1/images/generations"
payload = {
"model": "image-upscaler-pro",
"image_url": "https://your-cdn.com/photo.jpg",
"enhance_type": "upscale"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'image-upscaler-pro',
image_url: 'https://your-cdn.com/photo.jpg',
enhance_type: 'upscale'
})
};
fetch('https://api.goenhance.ai/api/v1/images/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goenhance.ai/api/v1/images/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'image-upscaler-pro',
'image_url' => 'https://your-cdn.com/photo.jpg',
'enhance_type' => 'upscale'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.goenhance.ai/api/v1/images/generations"
payload := strings.NewReader("{\n \"model\": \"image-upscaler-pro\",\n \"image_url\": \"https://your-cdn.com/photo.jpg\",\n \"enhance_type\": \"upscale\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.goenhance.ai/api/v1/images/generations")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"image-upscaler-pro\",\n \"image_url\": \"https://your-cdn.com/photo.jpg\",\n \"enhance_type\": \"upscale\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/images/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"image-upscaler-pro\",\n \"image_url\": \"https://your-cdn.com/photo.jpg\",\n \"enhance_type\": \"upscale\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5",
"cost": 4
}
}Image Upscaler Pro
Enhance a photo with one of four modes. upscale makes the image 4× wider and 4× taller; denoise, sharpen and face keep the original size. The result is always a PNG.
enhance_type | What it does | Output | tokens / image | USD |
|---|---|---|---|---|
upscale (default) | Enlarges the image and generates fine detail | 4× width and height | 4 | $0.08 |
face | Restores blurry or low-quality faces | Same size | 3 | $0.06 |
denoise | Removes noise and grain, keeps texture | Same size | 2 | $0.04 |
sharpen | Recovers clarity in soft or slightly blurry photos | Same size | 2 | $0.04 |
Pricing: a flat price per image for each enhance_type, regardless of image size (USD at $0.02/token).
Limits — requests outside these are rejected before any tokens are deducted:
| limit | |
|---|---|
image_url | https:// only, publicly reachable, up to 32 MB |
| Resolution | upscale: up to 1 megapixel (for example 1000×1000, output up to 4000×4000); other modes: up to 4 megapixels |
| Format | Single-frame JPEG, PNG, WebP, TIFF or BMP; animated images are not supported |
Notes:
faceis meant for photos with a clearly visible face.- Processing usually takes 10–20 seconds per image. Submit several images in parallel rather than one after another.
Returns an img_uuid; poll GET /api/v1/jobs/detail (or use custom_callback_url) to get the result.
curl --request POST \
--url https://api.goenhance.ai/api/v1/images/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "image-upscaler-pro",
"image_url": "https://your-cdn.com/photo.jpg",
"enhance_type": "upscale"
}
'import requests
url = "https://api.goenhance.ai/api/v1/images/generations"
payload = {
"model": "image-upscaler-pro",
"image_url": "https://your-cdn.com/photo.jpg",
"enhance_type": "upscale"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'image-upscaler-pro',
image_url: 'https://your-cdn.com/photo.jpg',
enhance_type: 'upscale'
})
};
fetch('https://api.goenhance.ai/api/v1/images/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goenhance.ai/api/v1/images/generations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'image-upscaler-pro',
'image_url' => 'https://your-cdn.com/photo.jpg',
'enhance_type' => 'upscale'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.goenhance.ai/api/v1/images/generations"
payload := strings.NewReader("{\n \"model\": \"image-upscaler-pro\",\n \"image_url\": \"https://your-cdn.com/photo.jpg\",\n \"enhance_type\": \"upscale\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.goenhance.ai/api/v1/images/generations")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"image-upscaler-pro\",\n \"image_url\": \"https://your-cdn.com/photo.jpg\",\n \"enhance_type\": \"upscale\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/images/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"image-upscaler-pro\",\n \"image_url\": \"https://your-cdn.com/photo.jpg\",\n \"enhance_type\": \"upscale\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5",
"cost": 4
}
}Headers
Body
Model name. Must be image-upscaler-pro.
image-upscaler-pro URL of the image to enhance. Must be an https:// link that is publicly reachable, at most 32 MB; at most 1 megapixel for upscale and 4 megapixels for the other modes.
1Enhancement mode. upscale (default) enlarges 4×; denoise, sharpen and face keep the original size.
upscale, denoise, sharpen, face Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.
"https://your-server.com/goenhance/callback"
