Image Invisible Text Watermark
Image Invisible Text Watermarking
Image Invisible Text Watermark API
Image Invisible Text Watermark API encodes or decodes hidden text watermarks for image ownership and content protection.
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:
JPEGJPGPNGBMP - Image size: No more than 3 MB.
- Image resolution: Larger than 5x5px, smaller than 4096x4096px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
Fixed Fields
| Field | Required | Type | Scope | Description |
|---|---|---|---|---|
function_type | YES | string | encode_text, encode_text_plus, encode_text_bold, decode_text, decode_text_plus, decode_text_bold | Specifies the calling function. encode_text`: Add text watermark using the old version model.` encode_text_plus: Add text watermark using the new version model 1. encode_text_bold`: Add text watermark using the new version model 2.` decode_text: Use the old model to decode the text watermark in the image. decode_text_plus`: Use the new version of Model 1 to decode text watermarks in images.` decode_text_bold: Use the new version Model 2 to decode the image watermark in the image. |
function_type === encode_text|encode_text_plus|encode_text_bold
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
origin_image | YES | file | Original image. | ||
text | YES | string | The text of the watermark to be added. | ||
output_file_type | NO | string | png, jpg, bmp | png | Output format. |
function_type === decode_text
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
watermark_image | YES | file | The image to be resolved, i.e., a composite image with a text watermark. | ||
origin_image | YES | file | Original image. |
function_type === decode_text_plus|decode_text_bold
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
watermark_image | YES | file | The image to be resolved, i.e., a composite image with a text watermark. |
output_file_type === jpg
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
quality_factor | NO | integer | [1, 100] | 100 | The quality size of the output image, the higher the quality the larger the image. |
Response
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| Field | Type | Description |
|---|---|---|
data | object | The content of the result data returned. |
+watermark_image_url | string | The URL address after adding the watermark. |
+text_image_url | string | Watermark URL address after decoding. |
Response Example
Authorizations
API Key for authentication
Body
multipart/form-data
Specifies the calling function.
Original image.
The text of the watermark to be added.
Output format.
The image to be resolved, i.e., a composite image with a text watermark.
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.

