Skip to content

Photo Enhance API

API Endpoint

API Endpoint:

  • https://api-us.idphotoapp.com (US region)
  • https://api-eu.idphotoapp.com (EU region)
  • (Other regions' deployment are available per request)

Photo Enhance

JSON
POST /v2/photoEnhance

Description: Enhances the quality of a given image.

Request:

JSON
{
  "apiKey": "string", // Your API Key
  "apiSecret": "string", // Your API Secret
  "imageBase64": "string", // Image data in Base64 format (with or without the "data:image/jpeg;base64," prefix)
  "scaleFactor": "integer", // [OPTIONAL] Integer scaling factor, defaults to 1 if not provided
  "enableFaceEnhance": "boolean", // [OPTIONAL] Enables face enhancement, defaults to false if not provided
  "outputFormat": "string" // [OPTIONAL] Output image format, available values: JPEG/PNG, default is JPEG
}

Response:

JSON
{
  "output": "string" // Enhanced image data in Base64 format
}