AI Picture Upscaler

Upscales and enhances images by AI

Details

Endpoints

1. Upscaler v1

This endpoint is used to upscale images using version 1 of the upscaling algorithm.

  • URL: https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v1/

  • Method: POST

  • Request Body:

{
  "scale": 2,
  "image_url": "https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg"
}
  • Response: The response will contain the upscaled image data.

Example cURL request:

2. Upscaler v2

This endpoint is used to upscale images using version 2 of the upscaling algorithm.

  • URL: https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v2/

  • Method: POST

  • Request Body:

{
  "scale": 2,
  "image_url": "https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg"
}
  • Response: The response will contain the upscaled image data.

Result

Code Examples

Version 1

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v1/' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'scale=2&image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fd0cf3f2b22461f5fcb2a1.png'

Version 2

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v2/' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'scale=2&image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fd0cf3f2b22461f5fcb2a1.png'

Last updated