Skip to main content
POST
/
v1
/
ai
/
image-upscaler-precision
Upscale with precision an image with Magnific
curl --request POST \
  --url https://api.freepik.com/v1/ai/image-upscaler-precision \
  --header 'Content-Type: application/json' \
  --header 'x-freepik-api-key: <api-key>' \
  --data '{
  "image": "aSDinaTvuI8gbWludGxpZnk=",
  "webhook_url": "<string>",
  "sharpen": 50,
  "smart_grain": 7,
  "ultra_detail": 30
}'
{
"data": {
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}
}

Authorizations

x-freepik-api-key
string
header
required

Your Freepik API key. Required for authentication. Learn how to obtain an API key

Body

application/json
image
string<byte>
required

Base64 image to upscale

webhook_url
string<uri>

Webhook URL

sharpen
integer
default:50

Sharpen the image

Required range: 0 <= x <= 100
smart_grain
integer
default:7

Smart grain

Required range: 0 <= x <= 100
ultra_detail
integer
default:30

Ultra detail

Required range: 0 <= x <= 100

Response

OK

data
object
required
Example:
{
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}