Pricing

  • Average: 0.01

Parameters

  • upscaler

    • Type: string
    • Required: false
    • Description: Upscaler to use, by selecting this you won't generate any image but you will upscale the image you provide
    • Options: GFPGAN, RealESRGAN_x4plus, RealESRGAN_x2plus, RealESRGAN_x4plus_anime_6B, NMKD_Siax, 4x_AnimeSharp
    • Default: RealESRGAN_x2plus
  • image

    • Type: string
    • Required: true
    • Description: Image URL for the model to use when doing the upscaling

Response

  • cost

    • Type: number
    • Description: Cost of the request in USD
  • result

    • Type: string
    • Description: Object containing the upscaled image URL
  • status

    • Type: string
    • Description: Status of the request
  • done

    • Type: boolean
    • Description: Whether the request is done or not

Examples

Upscale models example
import axios from "axios";
(async () => {
  let response = await axios({
    method: "post",
    url: 'https://api.turing.sh/image/upscale',
    headers: {
      "Content-Type": "application/json",
      Authorization: "Bearer YOUR_API_KEY",
      "x-captcha-token": "Captcha key"
    },
    data: {
"upscaler": "RealESRGAN_x2plus",
"image": "string"
},
  })
})();