Image blind watermarking algorithm, add/resolve watermark, add content including image or logo. algorithm service body is divided into two:encode_pic, decode_pic.
https://www.ailabapi.com/api/image/editing/image-invisible-image-watermarkPOSTmultipart/form-dataJPEG JPG PNG BMP| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
| Field | Required | Type | Scope | Description |
|---|---|---|---|---|
function_type | YES | string | encode_pic, encode_pic_plus, encode_pic_bold, decode_pic, decode_pic_plus, decode_pic_bold | Specifies the calling function. encode_pic`: Add image watermark using the old model.` encode_pic_plus: Add image watermark with new version model 1. encode_pic_bold`: Add image watermark with new version model 2.` decode_pic: Use the old model to decode the image watermark in the image. decode_pic_plus`: Use the new version Model 1 to decode the image watermark in the image.` decode_pic_bold: Use the new version Model 2 to decode the image watermark in the image. |
function_type === encode_pic|encode_pic_plus|encode_pic_bold| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
origin_image | YES | file | Original image. | ||
logo | YES | file | Watermark images. | ||
output_file_type | NO | string | jpeg, png, jpg, bmp | png | Output format. |
function_type === decode_pic| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
watermark_image | YES | file | The image to be resolved, i.e. the composite image with the image watermark. | ||
origin_image | YES | file | Original image. |
function_type === decode_pic_plus|decode_pic_bold| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
watermark_image | YES | file | The image to be resolved, i.e. the composite image with the image 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. |
| Field | Type | Description |
|---|---|---|
data | object | The content of the result data returned. |
+watermark_image_url | string | The URL address after adding the watermark. |
+logo_url | string | Watermark URL address after decoding. |
API Key for authentication
Specifies the calling function.
Original image.
Watermark images.
Output format.
The image to be resolved, i.e. the composite image with the image watermark.
The quality size of the output image, the higher the quality the larger the image.
Success
The response is of type object.