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.
| Plan | Price | Included API Quota | Reset Cycle |
|---|---|---|---|
| Free Account | $0 | 0 calls (No API access) | — |
| Day Pass (24 Hours) | $2.99 once | 200 API calls | Valid for 24h pass window |
| Pro Monthly | $9 / month | 3,000 API calls / month | 1st of every UTC month |
| Pro Annual | $84 / year ($7/mo) | 10,000 API calls / month | 1st 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_herehttps://api.remove-geminiwatermark.com/v1/api/remove-watermarkRemoves 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 thefile(orimage) field. Optional fields:format(png|jpeg),response(binary|json). - Raw Binary (
image/pngorimage/jpeg): Send raw image bytes directly as the request body. Use query parameters?format=png|jpegand?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.pngPython 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)
| Header | Description |
|---|---|
| X-Quota-Limit | Total API calls included in your current plan cycle (200, 3000, or 10000). |
| X-Quota-Used | API calls consumed in the current cycle after this request. |
| X-Quota-Remaining | Remaining API calls in the current cycle. |
| X-Quota-Reset | Unix timestamp (seconds) when your quota resets or expires. |
| X-Pixels-Restored | Number of watermark pixels mathematically restored. |
https://api.remove-geminiwatermark.com/v1/api/quotaReturns 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 Status | Meaning |
|---|---|
| 200 OK | Watermark removed successfully. |
| 400 Bad Request | Missing file/image_base64 payload or malformed request body. |
| 401 Unauthorized | Missing, invalid, or rotated API key. |
| 403 Forbidden | Account is on the Free tier or Day Pass / Pro subscription has expired. |
| 413 Payload Too Large | Image exceeds the 15 MB file size limit. |
| 422 Unprocessable Entity | Unsupported image format (only PNG and JPEG are supported by the REST API) or dimensions out of range (64px–8192px). |
| 429 Too Many Requests | Plan API quota reached for the current cycle. Upgrade your plan to continue. |