Upscale API

The following code snippet showcases the usage of the Upscale API.

This API allows users to upscale images using a simple HTTP request. By specifying the desired upscale factor and providing the URL of the image, you can retrieve an upscaled version of the image.

Upscale an image

This code sample utilizes cURL via the command line interface; however, you can easily generate corresponding code for a wide range of programming languages and popular frameworks with your specific parameters.

curl -X 'POST' \
  'https://api.picsart.io/tools/1.0/upscale' \
  -H 'accept: application/json' \
  -H 'x-picsart-api-key: <API KEY HERE>' \
  -H 'Content-Type: multipart/form-data' \
  -F 'upscale_factor=x2' \
  -F 'image_url=https://cdn140.picsart.com/91814443083656646379.png'

To upscale an image using the Upscale API, make a POST request to https://api.picsart.io/tools/1.0/upscale with the following parameters:

  • accept: Set the value to application/json to indicate the desired response format.
  • x-picsart-api-key: Replace with your actual API Key obtained from Picsart.
  • Content-Type: Set the value to multipart/form-data to indicate the request format.
  • upscale_factor: Specify the desired upscale factor, such as x2 to double the dimensions.
  • image_url: Provide the URL of the image you want to upscale.

To learn all the details, options, parameters on how to use the service at its full capacity, visit Upscale API documentation.

Expand your knowledge: