Watermark API
Billing

Pricing and limits

View as Markdown

Prepaid credit, priced per request, per page or per minute of video. Failed requests are free.

You buy credit in advance at watermark.ws/developers; each finished request takes its price from it. Failed and aborted requests are free, and so is everything run with a test key: its results carry a "TEST KEY" stamp, and it runs images and documents, not video.

A new account starts with $1.00 of free credit, which covers images and documents. Video needs an account that has bought credit.

Endpoint Price
images/process $0.002 per request
images/create $0.002 per request
images/read $0.0005 per request
videos/process $0.03 per started minute of video (accounts that have bought credits only)
videos/read $0.001 per request (accounts that have bought credits only)
videos/screenshot $0.002 per request (accounts that have bought credits only)
documents/process $0.005 per page
documents/read $0.0005 per request
documents/snapshot $0.003 per request
documents/convert $0.002 per request

Limits

Key Requests a minute Running at once Long videos at once Largest source Requests a day Operations a request
Test key 10 2 no video 10 MB 100 20
Live key, free account 30 2 no video 25 MB no limit 20
Live key, paid account 120 10 2 2 GB no limit 20

An account with no credit left gets 402 insufficient_credits. Going over requests a minute gets 429 rate_limited with Retry-After. "Running at once" counts the account's requests that are queued or processing; one more gets 429 concurrency_limited until one of them finishes. "Long videos at once" counts the videos too long for the regular workers, which each run on a machine of their own; one more waits in the queue until one of them finishes, without an error. "Results kept up to" is the longest retention_days an output may ask for; results are kept 7 days unless it asks otherwise. "Operations a request" is the most operations one request, or one output, may list. A test key's requests a day are counted for the whole account, across all its test keys; one more gets 429 test_mode_daily_limit until the next day.

File limits

These hold for every key. A file past one fails with the code in brackets; a parameter past one is refused with 422.

  • Pictures: 1,000 megapixels a frame, read in or made by an operation (a rotate or a frame included), and 65,535 pixels a side, or 16,383 for a WebP and 65,500 for a JPEG written (file_too_large); 10,000 frames in an animation. An SVG is drawn at the size it declares, at most 32,767 pixels a side. A picture that needs more memory than the API has for one file fails with file_too_large too, and is not retryable.
  • Videos: 16,384 pixels a side, to process or to take a screenshot of (file_too_large). resize makes at most 8,192 pixels a side and border adds at most 4,096 to a side. A watermark picture on a video is at most 16,384 pixels a side, and its copies 250 megapixels together (file_too_large).
  • Word files: 4 GB unpacked; a tiled watermark at most 250 megapixels to draw: the page at 300 dots per inch and the watermark picture at that scale (file_too_large). A snapshot draws only what is inside the file: a picture it links to elsewhere is left out.
  • Tiled watermarks: 10,000 copies on a picture or a page, 500 on a video, every layer together (too_many_tiles).
  • Document snapshots: drawn at 300 dots per inch, always for a page up to A3 or 11 × 17 inches. A larger page may be drawn lower, at the most that fits the picture limits and the memory of the server drawing it, which is less for a request answered while it waits (wait) than for one from the queue.
  • Time: 2 minutes to read a file, and about 14 minutes for each step of processing; an hour for long videos (processing_timed_out).