Skip to main content
POST
Image Invisible Picture Watermark

Request

  • URL: https://www.ailabapi.com/api/image/editing/image-invisible-image-watermark
  • Method: POST
  • Content-Type: multipart/form-data

Image requirements

  • Image format: JPEG JPG PNG BMP
  • Image size: No more than 3 MB.
  • Image resolution: Larger than 5x5px, smaller than 4096x4096px.

Headers

Body

Fixed Fields

function_type === encode_pic|encode_pic_plus|encode_pic_bold

function_type === decode_pic

function_type === decode_pic_plus|decode_pic_bold

output_file_type === jpg

Response

Response Field Handling Flow
  1. Handle Public Response Fields Parse and validate the Public Response Fields, checking the status code or response message to ensure the request is successful and error-free.
  2. Handle Business Response Fields If the Public Response Fields are valid and error-free, proceed with processing the business logic in the Business Response Fields.

Public Response Fields

Viewing Public Response Fields and Error Codes

Business Response Fields

All result URLs are temporarily available and will expire after 24 hours.

Response Example

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
function_type
string

Specifies the calling function.

origin_image
file

Original image.

Watermark images.

output_file_type
string

Output format.

watermark_image
file

The image to be resolved, i.e. the composite image with the image watermark.

quality_factor
string

The quality size of the output image, the higher the quality the larger the image.

Response

200 - application/json

Success

The response is of type object.