POST
/
api
/
images
/
enhance
/
from-url
/
Enhance an image from URL
curl --request POST \
  --url https://backend.tensorpix.ai/api/images/enhance/from-url/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "output_format": "<string>",
  "enhancement_type": "<string>",
  "face_enhance": true,
  "watermark": true,
  "url": "<string>"
}'
{
  "enhanced_url": "<string>",
  "enhanced_img_id": "<string>"
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Body

output_format
string
required

Output image format. Possible values are: png, jpeg, webp.

Maximum length: 10
enhancement_type
string
required

Type of image enhancement. Possible values are: underwaterCC, denoise, sr2x, sr4x, faceEnhance.

Maximum length: 50
face_enhance
boolean
required

Flag which enables or disables the Face Enhancer model.

watermark
boolean
required

Flag which denotes if the watermark will be added on the image. If enabled, the processing wont't deduct any Credits. Your account can process a limited number of watermarked images per day. See pricing for more details

url
string<uri>
required

URL of the to be enhanced image. The URL must be accessible. Example: https://dummyimage.com/600x400/000/fff

Required string length: 5 - 1000

Response

enhanced_url
string<uri>
required

Enhanced Image URL. Be aware the URL can expire. List enhanced images to get new URLs. Example: https://yoursite/imagename.jpg

enhanced_img_id
string
required

Enhanced image ID