REST API v1

Gemini Watermark Remover Developer API

Integrate mathematical Reverse Alpha watermark removal directly into your scripts, backend pipelines, and automation workflows. Clean PNG and JPEG exports from Google Gemini over standard HTTPS.

1. Plan Quotas & Rate Limits

API access is an exclusive benefit for paid plans. Free accounts do not include API calls. Failed or invalid requests do not deduct from your quota.

PlanPriceIncluded API QuotaReset Cycle
Free Account$00 calls (No API access)—
Day Pass (24 Hours)$2.99 once200 API callsValid for 24h pass window
Pro Monthly$9 / month3,000 API calls / month1st of every UTC month
Pro Annual$84 / year ($7/mo)10,000 API calls / month1st of every UTC month

2. Authentication

Generate or rotate your secret API key from your Account Dashboard. All keys begin with the prefix gwr_live_. Pass your key in the Authorization header (or X-API-Key header):

Authorization: Bearer gwr_live_your_secret_key_here
POSThttps://api.remove-geminiwatermark.com/v1/api/remove-watermark

Removes the visible Google Gemini corner watermark from a PNG or JPEG image (up to 15 MB, up to 8192×8192 px) while keeping all pixels outside the watermark region untouched.

Supported Request Formats

  • Multipart Form Data (multipart/form-data): Upload the image file in the file (or image) field. Optional fields: format (png | jpeg), response (binary | json).
  • Raw Binary (image/png or image/jpeg): Send raw image bytes directly as the request body. Use query parameters ?format=png|jpeg and ?response=binary|json.
  • JSON Base64 (application/json): Send { "image_base64": "...", "format": "png", "response": "json" }.

cURL Example (Save cleaned image directly to disk)

curl -X POST https://api.remove-geminiwatermark.com/v1/api/remove-watermark \
  -H "Authorization: Bearer gwr_live_your_secret_key" \
  -F "[email protected]" \
  --output gemini-cleaned.png

Python Example (requests)

import requests

API_KEY = "gwr_live_your_secret_key"
url = "https://api.remove-geminiwatermark.com/v1/api/remove-watermark"

with open("gemini-sample.png", "rb") as f:
    response = requests.post(
        url,
        headers={"Authorization": f"Bearer {API_KEY}"},
        files={"file": f},
    )

if response.status_code == 200:
    with open("gemini-cleaned.png", "wb") as out:
        out.write(response.content)
    print("Remaining quota:", response.headers.get("X-Quota-Remaining"))
else:
    print("Error:", response.status_code, response.json())

Node.js / TypeScript Example (JSON Base64 mode)

import fs from 'node:fs/promises';

const apiKey = process.env.GWR_API_KEY;
const imageBuffer = await fs.readFile('./gemini-sample.jpg');

const res = await fetch('https://api.remove-geminiwatermark.com/v1/api/remove-watermark?response=json', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${apiKey}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    image_base64: imageBuffer.toString('base64'),
    format: 'png',
  }),
});

const data = await res.json();
if (!res.ok) throw new Error(data.error);

await fs.writeFile('./gemini-cleaned.png', Buffer.from(data.image_base64, 'base64'));
console.log(`Restored ${data.pixels_restored} pixels. Remaining quota: ${data.quota.remaining}`);

Response Headers (Binary Mode)

HeaderDescription
X-Quota-LimitTotal API calls included in your current plan cycle (200, 3000, or 10000).
X-Quota-UsedAPI calls consumed in the current cycle after this request.
X-Quota-RemainingRemaining API calls in the current cycle.
X-Quota-ResetUnix timestamp (seconds) when your quota resets or expires.
X-Pixels-RestoredNumber of watermark pixels mathematically restored.
GEThttps://api.remove-geminiwatermark.com/v1/api/quota

Returns your active plan tier, total quota, used calls, remaining calls, and reset timestamp without consuming any quota.

curl https://api.remove-geminiwatermark.com/v1/api/quota \
  -H "Authorization: Bearer gwr_live_your_secret_key"

# Response (200 OK):
{
  "plan": "pro_annual",
  "active": true,
  "limit": 10000,
  "used": 42,
  "remaining": 9958,
  "reset_at": 1764547200
}

3. Status & Error Codes

HTTP StatusMeaning
200 OKWatermark removed successfully.
400 Bad RequestMissing file/image_base64 payload or malformed request body.
401 UnauthorizedMissing, invalid, or rotated API key.
403 ForbiddenAccount is on the Free tier or Day Pass / Pro subscription has expired.
413 Payload Too LargeImage exceeds the 15 MB file size limit.
422 Unprocessable EntityUnsupported image format (only PNG and JPEG are supported by the REST API) or dimensions out of range (64px–8192px).
429 Too Many RequestsPlan API quota reached for the current cycle. Upgrade your plan to continue.
API images are processed transiently in Cloudflare Worker memory and are never stored on disk.