all_areaFull-frame text removal
Scan the full video frame when captions, labels, or overlays can appear in different positions. No rectangle is supplied.
UnMarkAI Remove Text API
Automate caption, timestamp, label, and text-overlay cleanup for video libraries, customer uploads, and production pipelines.
REST API · Hosted MCP server · Async jobs · Usage-based billing
InputAPI resultjob.status: succeededOne durable job lifecycle
Keep uploads, processing, and result delivery independent. Each resource has a stable identifier that your backend can store and reconcile.
POST /v1/uploads or /v1/url-uploadsRequest a one-time signed upload for local bytes, or asynchronously import a directly downloadable public HTTPS video URL.
PUT signed URLSend the source file to object storage without proxying a multi-gigabyte video through your application server.
POST /v1/jobsChoose full-frame or selected-area cleanup and attach your own metadata for order, asset, or tenant reconciliation.
GET /v1/jobs/{id}Follow progress with the Jobs API or signed webhook events, then download the result from its temporary signed URL.
Native MCP endpoint
The same engine is also a hosted MCP server at https://api.unmarkai.net/mcp. One uma_live_* key with the same scopes unlocks nine tools for Claude Code, Cursor, Codex, opencode, and any MCP-capable agent — no SDK, no server to run. Agents can upload local files with curl or import a directly downloadable HTTPS video URL asynchronously.
create_uploadMint a one-time signed upload ticket for a local video file.
create_url_uploadImport a directly downloadable HTTPS video URL asynchronously.
get_uploadWait for a URL import to become uploaded, failed, or expired.
remove_textStart an idempotent cleanup job in all_area or sel_area mode.
get_jobRead progress; optionally wait server-side for a terminal status.
list_jobsPage through recent jobs filtered by status.
cancel_jobStop a validating or queued job before processing starts.
get_balanceCheck the API wallet, live rates, and tier multipliers.
estimate_costPreview billable seconds and USD cost before spending.
# Claude Code
claude mcp add --transport http unmarkai \
https://api.unmarkai.net/mcp \
--header "Authorization: Bearer $UNMARKAI_API_KEY"
# Cursor · ~/.cursor/mcp.json
{
"mcpServers": {
"unmarkai": {
"type": "http",
"url": "https://api.unmarkai.net/mcp",
"headers": { "Authorization": "Bearer $UNMARKAI_API_KEY" }
}
}
}Two cleanup modes
Use the same asynchronous job contract for broad discovery or precise, predictable regions. The mode is explicit in every request and response.
all_areaScan the full video frame when captions, labels, or overlays can appear in different positions. No rectangle is supplied.
sel_areaProvide source-video pixel coordinates when a timestamp, lower third, or caption band stays inside a known region.
Production controls
The API exposes the state and identifiers your workers need to retry safely, trace failures, and keep customer workflows moving.
A required Idempotency-Key protects job creation from duplicate charges when networks fail or workers retry.
Queue larger videos without holding an HTTP request open. Read authoritative status and smooth progress from the Job resource.
Verify one HTTPS webhook endpoint and receive state changes on your server while retaining polling as a recovery path.
Create scoped keys, revoke credentials, review wallet activity, and inspect live rates from the API Console.
Server-side quickstart
Create a key with jobs:write and jobs:read, fund the API wallet, and save the key as an environment variable. With Bash, cURL, and jq installed, this example creates a signed upload, transfers the video, starts an idempotent job, and checks its status once.
https://api.unmarkai.net/v1Bearer uma_live_*remove_textexport UNMARKAI_API_KEY='uma_live_your_key_here'
export IDEMPOTENCY_KEY="remove-$(date +%s)"
API_BASE='https://api.unmarkai.net/v1'
VIDEO='./source.mp4'
SIZE=$(wc -c < "$VIDEO" | tr -d ' ')
# 1. Create a one-time upload ticket.
curl --fail-with-body -sS -X POST "$API_BASE/uploads" \
-H "Authorization: Bearer $UNMARKAI_API_KEY" \
-H 'Content-Type: application/json' \
--data "{"filename":"source.mp4","content_type":"video/mp4","file_size_bytes":$SIZE}" \
-o ticket.json
# 2. Upload the bytes with every signed header unchanged.
jq -r '.headers | to_entries[] | "\(.key): \(.value)"' ticket.json > upload-headers.txt
curl --fail-with-body -sS -X PUT "$(jq -r '.url' ticket.json)" \
--header '@upload-headers.txt' --upload-file "$VIDEO"
# 3. Create an asynchronous, idempotent cleanup job.
UPLOAD_ID=$(jq -r '.upload_id' ticket.json)
curl --fail-with-body -sS -X POST "$API_BASE/jobs" \
-H "Authorization: Bearer $UNMARKAI_API_KEY" \
-H 'Content-Type: application/json' \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
--data "{"type":"remove_text","input":{"upload_id":"$UPLOAD_ID"},"mode":"all_area","rect":null}" \
-o job.json
# 4. Check status once. Poll this resource, or receive signed webhook events.
curl --fail-with-body -sS "$API_BASE/jobs/$(jq -r '.id' job.json)" \
-H "Authorization: Bearer $UNMARKAI_API_KEY" | jq .Clear operating boundaries
Videos can be up to 2 GiB and 60 minutes under the default public contract. Jobs reserve an estimate, settle against measured billable video seconds, and release unused funds after completion or failure.
GET /v1/balanceStore uma_live_* credentials in environment variables or a secret manager. Use scoped keys per environment, rotate them when access changes, and retain response request IDs for support and tracing.
Integration questions
Use the API only with video you own, license, produce for a client, or otherwise have permission to modify. Preserve required disclosures, attribution, and legal notices.
Yes. Point any MCP-capable agent at the hosted MCP server, https://api.unmarkai.net/mcp, with the same uma_live_* key and scopes. Nine tools cover local uploads, direct HTTPS URL imports, job creation, status, cancellation, balance, and cost estimates, and the open-source agent skills on GitHub teach both input flows. Local file transfer stays in your shell; URL imports run asynchronously.
Yes. The remove_text job cleans visible text that is already rendered into video frames, including hardcoded captions, timestamps, labels, and static overlays. Results depend on motion, background detail, text size, and how much of the scene is covered.
Use all_area when text can appear across the frame. Use sel_area with source-video pixel coordinates when the unwanted text remains in a predictable region and you want to preserve the rest of the frame.
Do not embed an uma_live_* key in browser JavaScript, mobile apps, URLs, logs, or public repositories. Call the API from a trusted server, worker, script, or automation environment and keep the key in a secret manager.
The API uses a separate USD wallet and charges by billable video seconds. The effective rate depends on cleanup mode and account tier. Query GET /v1/balance for the authoritative live rates before showing estimates to customers.
Build with UnMarkAI
Create a server-side key, fund the separate API wallet, and follow the quickstart from upload to clean result.