Skip to main content

Documentation Index

Fetch the complete documentation index at: https://apixo.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Image Watermark Remover removes visible text or logo watermarks from one input image and returns a cleaned image URL. Use this page when you are ready to call the API after trying the model in the APIXO playground.
CapabilityValue
Model IDimage-watermark-remover
Modeimage-to-image
Input imagesExactly 1 public image URL
Output formatsjpg, jpeg, png, webp
Default output formatjpg
Result deliveryAsync polling or webhook callback
This model is fixed to a single-image image-to-image workflow. It does not accept prompts, masks, seeds, resolution controls, or multiple reference images.

Endpoint and authentication

Base URL:
https://api.apixo.ai/api/v1
MethodEndpointPurpose
POST/generateTask/image-watermark-removerSubmit a watermark removal task
GET/statusTask/image-watermark-remover?taskId={taskId}Poll task status and retrieve results
All requests require your APIXO API key:
Authorization: Bearer YOUR_API_KEY
Submit requests also require:
Content-Type: application/json

Copy-paste async quickstart

This minimal request submits one image cleanup task and returns a taskId.
curl -X POST "https://api.apixo.ai/api/v1/generateTask/image-watermark-remover" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "image_urls": [
        "https://example.com/photo-with-watermark.jpg"
      ],
      "output_format": "jpg"
    }
  }'
Successful response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678"
  }
}
Save the taskId; you need it to poll for the final result.

Poll for result

curl -X GET "https://api.apixo.ai/api/v1/statusTask/image-watermark-remover?taskId=task_12345678" \
  -H "Authorization: Bearer YOUR_API_KEY"
Processing response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "processing",
    "createTime": 1767965610929
  }
}
Success response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "success",
    "resultJson": "{\"resultUrls\":[\"https://file.apixo.ai/watermark-free-image.jpg\"]}",
    "createTime": 1767965610929,
    "completeTime": 1767965652317,
    "costTime": 41388
  }
}
Failed response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "failed",
    "failCode": "UPSTREAM_ERROR",
    "failMsg": "Upstream error",
    "createTime": 1767965610929,
    "completeTime": 1767965620132
  }
}
Parse resultJson after state becomes success:
const payload = JSON.parse(data.resultJson);
const imageUrls = payload.resultUrls;

Request body

Default JPG output

{
  "request_type": "async",
  "input": {
    "image_urls": [
      "https://example.com/photo-with-watermark.jpg"
    ],
    "output_format": "jpg"
  }
}

PNG output

{
  "request_type": "async",
  "input": {
    "image_urls": [
      "https://example.com/marketing-banner.png"
    ],
    "output_format": "png"
  }
}

Explicit mode

mode is optional because this endpoint has only one workflow. If you include it, it must be image-to-image.
{
  "request_type": "async",
  "input": {
    "mode": "image-to-image",
    "image_urls": [
      "https://example.com/photo-with-watermark.webp"
    ],
    "output_format": "webp"
  }
}

Parameters

request_type
string
default:"async"
required
Result delivery mode. Use async for polling with statusTask, or callback for webhook delivery.
callback_url
string
Required when request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.
input
object
required
Image Watermark Remover input parameters.

Response format

Submit task response

POST /generateTask/image-watermark-remover returns a task ID when the task is accepted:
code
integer
API status code. 200 means the task was accepted.
message
string
Human-readable status message.
data.taskId
string
Unique task identifier used with the status endpoint.

Status response fields

taskId
string
Unique task identifier.
state
string
Current task state: pending, processing, success, or failed.
resultJson
string
JSON string containing the cleaned image URLs. Present when state is success.
failCode
string
Machine-readable failure code. Present when state is failed.
failMsg
string
Human-readable failure message. Present when state is failed.
createTime
integer
Task creation timestamp in Unix milliseconds.
completeTime
integer
Task completion timestamp in Unix milliseconds. Present after completion when available.
costTime
integer
Processing duration in milliseconds when available.

resultJson payload

resultJson is a JSON-encoded string. After parsing it, the payload has this shape:
{
  "resultUrls": [
    "https://file.apixo.ai/watermark-free-image.jpg"
  ]
}

Webhook callback mode

Use callback mode when your backend should receive the final result automatically instead of polling.
curl -X POST "https://api.apixo.ai/api/v1/generateTask/image-watermark-remover" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "callback",
    "callback_url": "https://your-server.com/webhooks/apixo",
    "input": {
      "image_urls": [
        "https://example.com/photo-with-watermark.jpg"
      ],
      "output_format": "png"
    }
  }'
The final callback payload uses the same task response shape as status polling:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "success",
    "resultJson": "{\"resultUrls\":[\"https://file.apixo.ai/watermark-free-image.png\"]}",
    "createTime": 1767965610929,
    "completeTime": 1767965652317,
    "costTime": 41388
  }
}
See Webhooks for delivery requirements and retry behavior.

Billing

Image Watermark Remover is billed per submitted image task. Because image_urls must contain exactly one image, each accepted task counts as one image for billing.
UnitAPIXO priceWhat changes price
PER_IMAGE$0.015 / imageFixed unit price; output_format does not create a separate pricing tier
For the current public price, see Pricing.

Latency and polling

This endpoint is asynchronous. Actual latency can vary by image complexity, upstream queue load, and result storage time.
StageRecommendation
First poll10s-20s after task creation
Poll interval5s-10s
High concurrencyPrefer callback mode to reduce polling traffic

Errors and troubleshooting

HTTP errors

CodeMeaningWhat to do
400Invalid request body, unsupported mode, invalid output format, or wrong image_urls shapeFix the request before retrying
401Missing or invalid API keyCheck the Authorization header
402Insufficient balance or quotaAdd balance or switch account/key
403Key or route cannot access the modelCheck permissions and route strategy
429Rate limit or concurrency limit reachedRetry with exponential backoff
500Server errorRetry with backoff
502Upstream service errorRetry with backoff
504Upstream timeoutRetry or use callback mode for long-running jobs

Validation errors

ErrorCauseFix
The required parameter {{input}} is missing.Missing top-level input objectSend an input object
The required parameter {{image_urls}} is missing.Missing input.image_urlsSend image_urls with exactly one URL
The parameter {{image_urls}} must be Array type.image_urls is not an arrayUse a JSON array
The parameter {{image_urls}} must contain exactly 1 image.image_urls is empty or contains multiple itemsSend exactly one image URL
The parameter {{image_urls}} Array elements must be String type.The image URL item is not a stringUse a string URL
The parameter {{image_urls}} cannot contain empty string.The image URL is blank after trimmingUse a non-empty public image URL
Invalid mode type. Supported: image-to-imagemode is not image-to-imageOmit mode or set it to image-to-image
The parameter {{output_format}} must be String type.output_format is not a stringUse a string value
The parameter {{output_format}} must be either 'jpg', 'png' or 'webp'.Unsupported output formatUse jpg, jpeg, png, or webp

Task failure codes

Fail codeMeaningWhat to do
INVALID_PARAMETERA parameter is unsupported or malformedCheck mode, image_urls, and output_format
INSUFFICIENT_BALANCEThe account does not have enough balance for the taskAdd balance before retrying
UPSTREAM_ERRORUpstream-side failureRetry with backoff
TIMEOUTGeneration did not finish in timeRetry or use callback mode
See Error Codes for the full error reference.