API Watermark

Thêm watermark văn bản, hình ảnh, mẫu, QR/mã vạch và âm thanh vào hình ảnh, PDF, video, tài liệu, âm thanh, mô hình 3D và sách điện tử. Xử lý hàng loạt, mẫu, phát hiện và xóa.

Lấy API Key Mua tín dụng
99.9 % Thời gian hoạt động
Phản hồi
15 req/s
0.1 Tín dụng / yêu cầu

Add Text Watermark


POST https://api.yeb.to/v1/watermark/add-text
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file File to watermark (image, PDF, video, doc, audio, 3D, eBook). Alt: file_url or file_base64
text string Watermark text (max 500 chars)
font_family string tùy chọn Font name (default: Arial)
font_size integer tùy chọn Font size 8–500 (default: 48)
color string tùy chọn Hex color (default: #ffffff)
opacity number tùy chọn Opacity 0–1 (default: 0.5)
position string tùy chọn top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, bottom-right, custom (default: bottom-right)
rotation number tùy chọn Degrees −360 to 360 (default: 0)
shadow boolean tùy chọn Drop shadow (default: false)
outline boolean tùy chọn Text outline (default: false)
async boolean tùy chọn Queue for async processing
return_base64 boolean tùy chọn Include base64 in response

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/add-text \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/photo.jpg",
  "text": "© 2026 My Company",
  "opacity": 0.5,
  "position": "bottom-right",
  "font_size": 36,
  "color": "#ffffff"
}'

Ví dụ phản hồi

{
  "job_id": 1234,
  "status": "completed",
  "url": "https://storage.yeb.to/watermark/output/abc123.jpg",
  "file_size": 245678,
  "credits_used": 0.10,
  "response_code": 200
}
{"error":"text is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Add Text Watermark

watermark/add-text 0.1000 credits

Parameters

API Key
body · string · required
File
body · string · required
Text
body · string · required
Font Family
body · string
Font Size
body · string
Color
body · string
Opacity
body · string
Position
body · string
Rotation
body · string
Shadow
body · string
Outline
body · string
Async
body · string
Return Base64
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Add Image Watermark


POST https://api.yeb.to/v1/watermark/add-image
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file File to watermark (image, PDF, video, doc, audio, 3D, eBook). Alt: file_url or file_base64
watermark_image file Logo/image file (multipart). Alt: watermark_image_url or watermark_image_base64
opacity number tùy chọn Opacity 0–1 (default: 0.5)
position string tùy chọn top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, bottom-right, custom (default: bottom-right)
scale number tùy chọn Size multiplier 0.01–5 (default: 0.2)
rotation number tùy chọn Degrees −360 to 360 (default: 0)
async boolean tùy chọn Queue for async processing
return_base64 boolean tùy chọn Include base64 in response

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/add-image \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/photo.jpg",
  "watermark_image_url": "https://example.com/logo.png",
  "opacity": 0.7,
  "position": "bottom-right",
  "scale": 0.2
}'

Ví dụ phản hồi

{
  "job_id": 1235,
  "status": "completed",
  "url": "https://storage.yeb.to/watermark/output/def456.jpg",
  "file_size": 312456,
  "credits_used": 0.10,
  "response_code": 200
}
{"error":"watermark image is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Add Image Watermark

watermark/add-image 0.1000 credits

Parameters

API Key
body · string · required
File
body · string · required
Watermark Image
body · string · required
Opacity
body · string
Position
body · string
Scale
body · string
Rotation
body · string
Async
body · string
Return Base64
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Add Pattern Watermark


POST https://api.yeb.to/v1/watermark/add-pattern
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file File to watermark (image, PDF, video, doc, audio, 3D, eBook). Alt: file_url or file_base64
text string Pattern text (max 200 chars)
font_size integer tùy chọn Font size 8–200 (default: 32)
color string tùy chọn Hex color (default: #808080)
opacity number tùy chọn Opacity 0–1 (default: 0.15)
rotation number tùy chọn Degrees −360 to 360 (default: −30)
spacing_x integer tùy chọn Horizontal spacing 50–2000 (default: 300)
spacing_y integer tùy chọn Vertical spacing 50–2000 (default: 200)
async boolean tùy chọn Queue for async processing
return_base64 boolean tùy chọn Include base64 in response

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/add-pattern \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/photo.jpg",
  "text": "CONFIDENTIAL",
  "opacity": 0.15,
  "rotation": -30
}'

Ví dụ phản hồi

{
  "job_id": 1236,
  "status": "completed",
  "url": "https://storage.yeb.to/watermark/output/ghi789.jpg",
  "file_size": 289012,
  "credits_used": 0.15,
  "response_code": 200
}
{"error":"text is required for pattern watermark","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Add Pattern Watermark

watermark/add-pattern 0.1500 credits

Parameters

API Key
body · string · required
File
body · string · required
Text
body · string · required
Font Size
body · string
Color
body · string
Opacity
body · string
Rotation
body · string
Spacing X
body · string
Spacing Y
body · string
Async
body · string
Return Base64
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Add Code Watermark


POST https://api.yeb.to/v1/watermark/add-code
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file File to watermark (image, PDF, video, doc, audio, 3D, eBook). Alt: file_url or file_base64
payload string Data to encode (max 2000 chars)
code_format string Code type: qr, code128, code39, ean13, ean8, datamatrix
encryption_key string tùy chọn AES-256 encryption key for payload
code_color string tùy chọn Code hex color (default: #000000)
code_bg_color string tùy chọn Background hex color (default: #FFFFFF)
opacity number tùy chọn Opacity 0–1 (default: 0.8)
position string tùy chọn top-left, top-center, top-right, center-left, center, center-right, bottom-left, bottom-center, bottom-right, custom (default: bottom-right)
scale number tùy chọn Size multiplier 0.01–5 (default: 0.15)
async boolean tùy chọn Queue for async processing
return_base64 boolean tùy chọn Include base64 in response

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/add-code \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/photo.jpg",
  "payload": "OWNER-2026-ID-12345",
  "code_format": "qr",
  "position": "bottom-right"
}'

Ví dụ phản hồi

{
  "job_id": 1237,
  "status": "completed",
  "url": "https://storage.yeb.to/watermark/output/jkl012.jpg",
  "file_size": 267890,
  "credits_used": 0.15,
  "response_code": 200
}
{"error":"payload is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Add Code Watermark

watermark/add-code 0.1500 credits

Parameters

API Key
body · string · required
File
body · string · required
Payload
body · string · required
Code Format
body · string · required
Encryption Key
body · string
Code Color
body · string
Background
body · string
Opacity
body · string
Position
body · string
Scale
body · string
Async
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Add Audio Watermark


POST https://api.yeb.to/v1/watermark/add-audio
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file Video or audio file. Alt: file_url, file_base64
audio_file file tùy chọn Watermark audio file. Alt: audio_url
audio_type string Type: voice_tag, tone, intro_outro, ultrasonic
volume number tùy chọn Volume 0–1 (default: 0.3)
position string tùy chọn Where to place: start, end, repeat, random
interval_seconds integer tùy chọn Repeat interval 5–3600 sec (default: 30)
frequency integer tùy chọn Hz for ultrasonic 100–22000 (default: 19000)
async boolean tùy chọn Queue for async processing

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/add-audio \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/video.mp4",
  "audio_type": "ultrasonic",
  "frequency": 19000,
  "position": "repeat",
  "interval_seconds": 30
}'

Ví dụ phản hồi

{
  "job_id": 1238,
  "status": "queued",
  "message": "Audio watermark processing queued",
  "credits_used": 0.30,
  "response_code": 200
}
{"error":"audio_type is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Add Audio Watermark

watermark/add-audio 0.3000 credits

Parameters

API Key
body · string · required
File
body · string · required
Audio File
body · string
Audio Type
body · string · required
Volume
body · string
Position
body · string
Interval
body · string
Frequency
body · string
Async
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Preview Watermark


POST https://api.yeb.to/v1/watermark/preview
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file Image file only. Alt: file_url, file_base64
watermark_type string tùy chọn Type: text, image, pattern, code (default: text)
text string tùy chọn Watermark text (for text/pattern type)
opacity number tùy chọn Opacity 0–1
position string tùy chọn Watermark position

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/preview \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/photo.jpg",
  "watermark_type": "text",
  "text": "PREVIEW",
  "opacity": 0.5
}'

Ví dụ phản hồi

{
  "preview_url": "https://storage.yeb.to/watermark/preview/xyz.jpg",
  "response_code": 200
}
{"error":"file is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Preview

watermark/preview 0.0000 credits

Parameters

API Key
body · string · required
File
body · string · required
Watermark Type
body · string
Text
body · string
Opacity
body · string
Position
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Batch Process


POST https://api.yeb.to/v1/watermark/batch
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
files array Array of files to watermark (max 100). Upload via multipart/form-data with multiple file fields
watermark_type string Type: text, image, pattern, code
text string tùy chọn Watermark text
opacity number tùy chọn Opacity 0–1
position string tùy chọn Watermark position

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/batch \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "watermark_type": "text",
  "text": "BATCH WATERMARK",
  "opacity": 0.5,
  "position": "center"
}'

Ví dụ phản hồi

{
  "batch_id": 42,
  "total_items": 5,
  "status": "processing",
  "credits_used": 0.40,
  "response_code": 200
}
{"error":"files field is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Batch Process

watermark/batch 0.0800 credits

Parameters

API Key
body · string · required
Files
body · string · required
Watermark Type
body · string · required
Text
body · string
Opacity
body · string
Position
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Batch Status


POST https://api.yeb.to/v1/watermark/batch-status
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
batch_id integer Batch ID to check

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/batch-status \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "batch_id": 42
}'

Ví dụ phản hồi

{
  "batch_id": 42,
  "status": "completed",
  "total_items": 5,
  "completed_items": 5,
  "failed_items": 0,
  "credits_used": 0.40,
  "items": [
    {
      "job_id": 101,
      "status": "completed",
      "url": "..."
    }
  ],
  "response_code": 200
}
{"error":"batch_id is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Batch Status

watermark/batch-status 0.0000 credits

Parameters

API Key
body · string · required
Batch ID
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Job Status


POST https://api.yeb.to/v1/watermark/status
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
job_id integer Job ID to check

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/status \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "job_id": 1234
}'

Ví dụ phản hồi

{
  "job_id": 1234,
  "status": "completed",
  "progress_percent": 100,
  "url": "https://storage.yeb.to/watermark/output/abc123.jpg",
  "file_size": 245678,
  "output_format": "jpg",
  "credits_used": 0.10,
  "response_code": 200
}
{"error":"job not found","code":404}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Job Status

watermark/status 0.0000 credits

Parameters

API Key
body · string · required
Job ID
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Download Result


POST https://api.yeb.to/v1/watermark/download
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
job_id integer Completed job ID
return_base64 boolean tùy chọn Include base64-encoded file in response

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/download \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "job_id": 1234
}'

Ví dụ phản hồi

{
  "url": "https://storage.yeb.to/watermark/output/abc123.jpg",
  "filename": "photo_watermarked.jpg",
  "file_size": 245678,
  "response_code": 200
}
{"error":"job is not completed yet","code":400}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Download

watermark/download 0.0000 credits

Parameters

API Key
body · string · required
Job ID
body · string · required
Return Base64
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

List Templates


POST https://api.yeb.to/v1/watermark/templates
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
category string tùy chọn Filter by category name

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/templates \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY"
}'

Ví dụ phản hồi

{
  "templates": [
    {
      "id": 1,
      "name": "Company Logo",
      "slug": "company-logo",
      "category": "custom",
      "watermark_type": "image",
      "config": {
        "opacity": 0.5,
        "position": "bottom-right"
      }
    }
  ],
  "response_code": 200
}
{"error":"unauthorized","code":401}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

List Templates

watermark/templates 0.0000 credits

Parameters

API Key
body · string · required
Category
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Save Template


POST https://api.yeb.to/v1/watermark/template-save
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
name string Template name (max 100)
watermark_type string Type: text, image, pattern, audio, invisible, code
config object Watermark configuration object
template_id integer tùy chọn Update existing template (omit to create new)
category string tùy chọn Category name (default: custom)

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/template-save \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "name": "My Text Template",
  "watermark_type": "text",
  "config": {
    "text": "\u00a9 My Company",
    "opacity": 0.5,
    "position": "bottom-right",
    "font_size": 36
  }
}'

Ví dụ phản hồi

{
  "template_id": 15,
  "message": "Template saved successfully",
  "response_code": 200
}
{"error":"name is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Save Template

watermark/template-save 0.0000 credits

Parameters

API Key
body · string · required
Name
body · string · required
Watermark Type
body · string · required
Config
body · string · required
Template ID
body · string
Category
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Delete Template


POST https://api.yeb.to/v1/watermark/template-delete
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
template_id integer Template ID to delete

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/template-delete \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "template_id": 15
}'

Ví dụ phản hồi

{
  "message": "Template deleted successfully",
  "response_code": 200
}
{"error":"template not found","code":404}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Delete Template

watermark/template-delete 0.0000 credits

Parameters

API Key
body · string · required
Template ID
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Detect Watermark


POST https://api.yeb.to/v1/watermark/detect
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file File to analyze (multipart upload). Alt: file_url or file_base64

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/detect \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/watermarked-photo.jpg"
}'

Ví dụ phản hồi

{
  "has_watermark": true,
  "detections": [
    {
      "type": "text",
      "confidence": 0.92,
      "region": {
        "x": 50,
        "y": 450,
        "width": 200,
        "height": 30
      }
    }
  ],
  "response_code": 200
}
{"error":"file is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Detect Watermark

watermark/detect 0.5000 credits

Parameters

API Key
body · string · required
File
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Verify Watermark


POST https://api.yeb.to/v1/watermark/verify
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file File to verify (multipart upload). Alt: file_url or file_base64
tracking_id string Metadata watermark tracking ID to verify

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/verify \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/photo.jpg",
  "tracking_id": "TRK-2026-001"
}'

Ví dụ phản hồi

{
  "verified": true,
  "tracking_id": "TRK-2026-001",
  "details": {
    "embedded_at": "2026-02-20T10:30:00Z",
    "type": "metadata"
  },
  "response_code": 200
}
{"error":"tracking_id is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Verify Watermark

watermark/verify 0.3000 credits

Parameters

API Key
body · string · required
File
body · string · required
Tracking ID
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Remove Watermark


POST https://api.yeb.to/v1/watermark/remove
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file File to process (multipart upload). Alt: file_url or file_base64
x integer tùy chọn X coordinate of region to remove
y integer tùy chọn Y coordinate of region to remove
width integer tùy chọn Width of region (default: 100)
height integer tùy chọn Height of region (default: 50)

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/remove \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "file_url": "https://example.com/watermarked-photo.jpg"
}'

Ví dụ phản hồi

{
  "job_id": 1240,
  "status": "completed",
  "url": "https://storage.yeb.to/watermark/output/cleaned.jpg",
  "file_size": 234567,
  "credits_used": 1.00,
  "response_code": 200
}
{"error":"file is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Remove Watermark

watermark/remove 1.0000 credits

Parameters

API Key
body · string · required
File
body · string · required
X
body · string
Y
body · string
Width
body · string
Height
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Decode Code Payload


POST https://api.yeb.to/v1/watermark/decode-code
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
scanned_text string Encrypted text from scanned QR/barcode
encryption_key string Decryption key used during watermarking

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/decode-code \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "scanned_text": "base64iv:encrypteddata...",
  "encryption_key": "my-secret-key"
}'

Ví dụ phản hồi

{
  "payload": "OWNER-2026-ID-12345",
  "response_code": 200
}
{"error":"decryption failed - invalid key","code":400}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Decode Code

watermark/decode-code 0.0500 credits

Parameters

API Key
body · string · required
Scanned Text
body · string · required
Encryption Key
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Read Code from Image


POST https://api.yeb.to/v1/watermark/read-code
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
file file Image with QR/code watermark (multipart upload)
encryption_key string tùy chọn Decryption key to decode encrypted payload

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/read-code \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY"
}'

Ví dụ phản hồi

{
  "scanned_text": "OWNER-2026-ID-12345",
  "encrypted": false,
  "response_code": 200
}
{"error":"No QR code found in this image","code":400}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Read Code from Image

watermark/read-code 0.0500 credits

Parameters

API Key
body · string · required
File
body · string · required
Encryption Key
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

List Brand Kits


POST https://api.yeb.to/v1/watermark/brand-kit-list
Tham sốLoạiBắt buộcMô tả
api_key string Your API key

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/brand-kit-list \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY"
}'

Ví dụ phản hồi

{
  "brand_kits": [
    {
      "id": 1,
      "name": "Acme Corp",
      "logos": [],
      "fonts": ["Arial", "Helvetica"],
      "colors": ["#e11d48", "#ffffff"],
      "is_default": true
    }
  ],
  "response_code": 200
}
{"error":"unauthorized","code":401}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

List Brand Kits

watermark/brand-kit-list 0.0000 credits

Parameters

API Key
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Save Brand Kit


POST https://api.yeb.to/v1/watermark/brand-kit-save
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
name string Brand kit name (max 100)
logos array tùy chọn Array of logo definitions
fonts array tùy chọn Array of font names
colors array tùy chọn Array of hex color values
default_config object tùy chọn Default watermark config
is_default boolean tùy chọn Set as default brand kit
brand_kit_id integer tùy chọn Update existing (omit to create new)

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/brand-kit-save \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "name": "Acme Corp",
  "fonts": ["Arial", "Helvetica"],
  "colors": ["#e11d48", "#ffffff", "#1c1917"],
  "is_default": true
}'

Ví dụ phản hồi

{
  "brand_kit_id": 5,
  "message": "Brand kit saved successfully",
  "response_code": 200
}
{"error":"name is required","code":422}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Save Brand Kit

watermark/brand-kit-save 0.0000 credits

Parameters

API Key
body · string · required
Name
body · string · required
Logos
body · string
Fonts
body · string
Colors
body · string
Default Config
body · string
Is Default
body · string
Brand Kit ID
body · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Delete Brand Kit


POST https://api.yeb.to/v1/watermark/brand-kit-delete
Tham sốLoạiBắt buộcMô tả
api_key string Your API key
brand_kit_id integer Brand kit ID to delete

Ví dụ

curl -X POST https://api.yeb.to/v1/watermark/brand-kit-delete \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "brand_kit_id": 5
}'

Ví dụ phản hồi

{
  "message": "Brand kit deleted successfully",
  "response_code": 200
}
{"error":"brand kit not found","code":404}

Mã phản hồi

Mô tả
200 SuccessYêu cầu xử lý thành công.
400 Bad RequestXác thực đầu vào thất bại.
401 UnauthorizedAPI Key thiếu hoặc sai.
403 ForbiddenKey không hoạt động hoặc không được phép.
429 Rate LimitQuá nhiều yêu cầu.
500 Server ErrorLỗi không mong đợi.

Delete Brand Kit

watermark/brand-kit-delete 0.0000 credits

Parameters

API Key
body · string · required
Brand Kit ID
body · string · required

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

API Watermark — Practical Guide

A hands-on guide to the Watermark API: add text, image, pattern, QR/barcode, and audio watermarks to any file type. Batch processing, reusable templates, AI-powered detection & removal, and brand kit management.

#What the Watermark API does

The Watermark API provides 21 endpoints for adding, managing, detecting, and removing watermarks across 7 file types: images, PDFs, videos, audio, documents, 3D models, and eBooks.

#Endpoints at a glance

Endpoint What it does Credits
add-text Add a text watermark (font, size, color, opacity, rotation, shadow, outline) 0.1
add-image Overlay an image/logo watermark with scaling and positioning 0.1
add-pattern Tile repeating text across the entire file 0.15
add-code Embed a QR code or barcode (Code128, EAN-13, DataMatrix, etc.) 0.15
add-audio Add audio watermarks: voice tags, tones, intros/outros, ultrasonic 0.3
preview Preview watermark placement without processing (free) 0
batch Watermark up to 50 files in one request 0.08
batch-status Check batch processing progress 0
status Check individual job status 0
download Download the watermarked result 0
templates List saved watermark templates 0
template-save Save a reusable watermark configuration 0
template-delete Delete a saved template 0
detect AI-powered watermark detection in images 0.5
verify Verify a specific tracking ID in a file 0.3
remove AI-powered watermark removal from images 1
decode-code Decrypt an encrypted barcode/QR payload 0.05
read-code Scan and read a QR/barcode from an image 0.05
brand-kit-list List brand kits (logos, fonts, colors) 0
brand-kit-save Save or update a brand kit 0
brand-kit-delete Delete a brand kit 0

#Supported file formats

CategoryFormatsWatermark Types
ImagesJPEG, PNG, GIF, BMP, WebP, TIFFText, Image, Pattern, Code
PDFPDFText, Image, Pattern, Code
VideoMP4, AVI, MOV, MKV, WebMText, Image, Pattern, Code
AudioMP3, WAV, FLAC, OGG, AACAudio (voice tag, tone, intro/outro, ultrasonic)
DocumentsDOCX, XLSX, PPTXText, Image
3D ModelsOBJ, STL, GLTF, FBXText, Image
eBooksEPUB, MOBIText, Image

#Quick start

Add a text watermark to an image in one API call:

POST
curl -X POST https://api.yeb.to/v1/watermark/add-text \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_KEY",
    "file_url": "https://example.com/photo.jpg",
    "text": "© 2026 My Company",
    "opacity": 0.5,
    "position": "bottom-right",
    "font_size": 36,
    "color": "#ffffff"
  }'

The response includes the watermarked file URL immediately for small files, or a job_id for async processing of larger files:

{
  "job_id": 1234,
  "status": "completed",
  "url": "https://storage.yeb.to/watermark/output/abc123.jpg",
  "file_size": 245678,
  "credits_used": 0.10,
  "response_code": 200
}

#Watermark types explained

Text watermark

The add-text endpoint overlays customizable text. Control the font family, size (8–500px), color, opacity (0–1), position (9 presets + custom x/y), rotation (-360° to 360°), and optional shadow or outline effects.

Image watermark

The add-image endpoint overlays a logo or image. Upload via watermark_image, watermark_image_url, or watermark_image_base64. Control opacity, position, scale, and rotation.

Pattern watermark

The add-pattern endpoint tiles repeating text across the entire file — commonly used for “DRAFT” or “CONFIDENTIAL” overlays. Adjust font size, color, opacity, rotation, and horizontal/vertical spacing.

Code watermark (QR/barcode)

The add-code endpoint embeds a machine-readable code. Supported formats: QR, Code128, Code39, EAN-13, EAN-8, and DataMatrix. Optionally encrypt the payload with an encryption_key for tamper-proof verification.

Audio watermark

The add-audio endpoint embeds audio marks into audio/video files. Four types: voice_tag (spoken watermark), tone (beep/chime), intro_outro (clip at start/end), and ultrasonic (inaudible high-frequency mark for tracking).

#Batch processing

Watermark up to 50 files in a single API call using the batch endpoint. All files receive the same watermark configuration. The request returns a batch_id that you can poll with batch-status to track progress.

  • Each file is processed independently and asynchronously
  • Credits are charged per file (same rate as individual endpoints)
  • Failed files don’t block the rest of the batch
  • Results are available for download as each file completes

#Reusable templates

Save your watermark configuration as a template to reuse across requests. Templates store the watermark type, position, opacity, font settings, and all other parameters.

  1. Savetemplate-save creates or updates a template with a name and config object
  2. Listtemplates returns all your saved templates, optionally filtered by category
  3. Use — pass a template_id to any watermark endpoint to apply saved settings
  4. Deletetemplate-delete removes a template by ID

#Code watermarks & verification

Code watermarks enable machine-readable tracking. The workflow:

  1. add-code — embed a QR/barcode with an optional encrypted payload
  2. read-code — scan the code from an image to extract the raw payload
  3. decode-code — decrypt the payload using your encryption key

This is useful for tracking document provenance, verifying authenticity, or embedding license keys in media files.

#Detection & removal

Three AI-powered endpoints for working with existing watermarks:

  • detect (0.50 credits) — analyzes an image to find watermark regions, returning bounding boxes and confidence scores
  • verify (0.30 credits) — checks if a specific tracking ID or steganographic mark is present in a file
  • remove (1.00 credits) — attempts AI-powered watermark removal from images (works best on semi-transparent text overlays)

#Brand kits

Brand kits store your organization’s logos, fonts, colors, and default watermark configuration. Once saved, they can be referenced across all watermark endpoints for consistent branding.

  • brand-kit-save — create or update a kit with name, logos, fonts, colors, and default config
  • brand-kit-list — retrieve all your brand kits
  • brand-kit-delete — remove a kit by ID

#Authentication

All requests require an api_key parameter in the JSON body. Get your key from the dashboard. The key identifies your account and is used for credit billing and rate limiting.

#Error handling

Standard HTTP status codes are used. Common errors:

CodeMeaning
400Bad request — missing or invalid parameters
401Unauthorized — invalid or missing API key
402Insufficient credits
413File too large (max 50 MB for images, 500 MB for video)
422Validation error — check the error field for details
429Rate limit exceeded — max 15 req/s
500Server error — retry or contact support

Câu hỏi thường gặp

Hình ảnh (JPEG, PNG, GIF, BMP, WebP, TIFF), PDF, video (MP4, AVI, MOV, MKV, WebM), âm thanh (MP3, WAV, FLAC, OGG, AAC), tài liệu (DOCX, XLSX, PPTX), mô hình 3D (OBJ, STL, GLTF, FBX) và sách điện tử (EPUB, MOBI).

Năm loại: văn bản (tùy chỉnh phông chữ, kích thước, màu, độ mờ, xoay, bóng, viền), hình ảnh chồng (logo với tỷ lệ và vị trí), mẫu lát gạch (văn bản lặp lại trên toàn bộ tệp), QR/mã vạch (mã máy đọc được với mã hóa tùy chọn) và âm thanh (thẻ giọng nói, âm thanh, intro/outro, dấu siêu âm).

Có. Endpoint xử lý hàng loạt chấp nhận tối đa 50 tệp mỗi yêu cầu. Mỗi tệp được xử lý bất đồng bộ và bạn có thể kiểm tra tiến trình bằng batch-status.

Có. Endpoint detect sử dụng AI để tìm watermark hiện có trong hình ảnh. Endpoint remove thử xóa watermark bằng AI. Endpoint verify kiểm tra xem ID theo dõi cụ thể có được nhúng trong tệp hay không.

Endpoint add-code nhúng mã QR, Code128, Code39, EAN-13, EAN-8 hoặc DataMatrix vào tệp của bạn. Bạn có thể tùy chọn mã hóa payload. Sử dụng decode-code để giải mã hoặc read-code để quét mã từ hình ảnh.

Mẫu lưu cấu hình watermark của bạn (loại, vị trí, độ mờ, phông chữ, v.v.) để bạn có thể sử dụng lại. Tạo mẫu qua template-save và liệt kê chúng với endpoint templates.

Có. Mọi yêu cầu, kể cả những yêu cầu có lỗi, đều tiêu tốn tín dụng. Tín dụng của bạn được gắn với số lượng yêu cầu, bất kể thành công hay thất bại. Nếu lỗi rõ ràng do sự cố nền tảng từ phía chúng tôi, chúng tôi sẽ khôi phục tín dụng bị ảnh hưởng (không hoàn tiền mặt).

Liên hệ chúng tôi tại [email protected]. Chúng tôi coi trọng phản hồi—nếu báo cáo lỗi hoặc yêu cầu tính năng của bạn có ý nghĩa, chúng tôi có thể sửa hoặc cải thiện API nhanh chóng và tặng bạn 50 tín dụng miễn phí để cảm ơn.

Tùy thuộc vào API và đôi khi cả endpoint. Một số endpoint sử dụng dữ liệu từ nguồn bên ngoài, có thể có giới hạn nghiêm ngặt hơn. Chúng tôi cũng áp dụng giới hạn để ngăn chặn lạm dụng và duy trì sự ổn định của nền tảng. Kiểm tra tài liệu để biết giới hạn cụ thể cho mỗi endpoint.

Chúng tôi hoạt động theo hệ thống tín dụng. Tín dụng là các đơn vị trả trước, không hoàn lại mà bạn chi cho các cuộc gọi API và công cụ. Tín dụng được tiêu thụ theo FIFO (cũ nhất trước) và có hiệu lực 12 tháng kể từ ngày mua. Bảng điều khiển hiển thị ngày mua và ngày hết hạn của mỗi giao dịch.

Có. Tất cả tín dụng đã mua (bao gồm số dư lẻ) có hiệu lực 12 tháng kể từ ngày mua. Tín dụng chưa sử dụng tự động hết hạn và bị xóa vĩnh viễn khi kết thúc thời hạn hiệu lực. Tín dụng đã hết hạn không thể khôi phục hoặc chuyển đổi thành tiền mặt hay giá trị khác. Quy tắc chuyển tiếp: tín dụng mua trước ngày 22 tháng 9 năm 2025 được coi là mua vào ngày 22 tháng 9 năm 2025 và hết hạn vào ngày 22 tháng 9 năm 2026 (trừ khi ngày hết hạn sớm hơn được ghi khi mua).

Có—trong thời hạn hiệu lực. Tín dụng chưa sử dụng vẫn khả dụng và được chuyển từ tháng sang tháng cho đến khi hết hạn 12 tháng sau khi mua.

Tín dụng là không hoàn lại. Chỉ mua những gì bạn cần—bạn luôn có thể nạp thêm sau. Nếu lỗi nền tảng gây ra tính phí thất bại, chúng tôi có thể khôi phục tín dụng bị ảnh hưởng sau khi điều tra. Không hoàn tiền mặt.

Giá được tính bằng tín dụng, không phải đô la. Mỗi endpoint có chi phí riêng—xem huy hiệu "Tín dụng / yêu cầu" ở trên. Bạn luôn biết chính xác mình đang chi bao nhiêu.
← Quay lại API