Skip to main content
POST
Image Invisible Text Watermark

Request

  • URL: https://www.ailabapi.com/api/image/editing/image-invisible-text-watermarking
  • 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_text|encode_text_plus|encode_text_bold

function_type === decode_text

function_type === decode_text_plus|decode_text_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.

text
string

The text of the watermark to be added.

output_file_type
string

Output format.

watermark_image
file

The image to be resolved, i.e., a composite image with a text 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.