Skip to content

Limits and retries

PlanRequestsJobs at onceFile sizeOutputs kept up to
Free20 per 10 s2100 MB24 hours
API Starter100 per 10 s51 GB24 hours
API Growth250 per 10 s202 GB7 days
API Scale500 per 10 s505 GB7 days

Test keys have limits of their own: see test mode. GET /v1/account answers with the limits of the key you send. Prices and credits per plan are on the pricing page.

Each key may send its plan’s number of requests in any 10-second window, so short bursts are fine. Every answer to a keyed request says the policy:

On the Free plan
RateLimit-Policy: "default";q=20;w=10

q is the requests allowed and w the window in seconds. A request over it is answered 429 with rate_limited, Retry-After (seconds to wait) and RateLimit: “default”;r=0;t=10. Wait that long, then send it again. Jobs running at once have their own limit, also answered 429 with Retry-After: wait for a job to end before starting the next.

Networks fail. To retry a POST without doing it twice, send an Idempotency-Key header, any string of up to 255 printable characters (a UUID is ideal), new for each new request:

  • The same request with the same key within 24 hours gets the first answer again, with Idempotent-Replayed: true, instead of making a second job.
  • The same key with a different request is refused with 409 idempotency_conflict.
  • If the first request is still running, a repeat gets 409 with Retry-After: 1: repeat it in a moment.
  • Only successful answers are kept. After an error, the key is free to use again, so a corrected request can reuse it.

For POST /v1/convert, a repeat waits for the same job and answers with its file: a client that timed out gets its result without a second conversion. The job example sends a key when it makes the job.

Retry 5xx answers and network errors after a short wait, doubling it each time; with an Idempotency-Key that’s always safe. Don’t retry 4xx answers other than 409 and 429 unchanged: they won’t succeed until the request does.

Every conversion has a credit weight per file, page or minute, listed in GET /v1/pricing and GET /v1/operations. POST /v1/estimate tells you what a job would cost before you send the file, with the same rules a job uses. Credits are held when a job starts and charged only when it completes: failed and canceled jobs cost nothing. A conversion priced per page or minute holds one page or minute when its job starts, then counts the file once it arrives, before converting: a started minute counts as a whole one, OCR counts only pages without text, and every job costs at least one. Its job’s estimate then shows the units counted and what they cost. A file longer than the plan takes in one job ends the job with too_long, and one whose pages or minutes need more credits than are left ends with insufficient_credits, both at no cost. Give POST /v1/estimate the file’s pages or seconds to see the cost and the limit (max_units) first. A job that joins several files costs what one file of the conversion costs. Each job’s answer says what it used (credits, and FormatJet-Credits on the request that made it), and GET /v1/usage adds them up by day.

Each plan’s credits come per month, and the ones left when a month ends expire. When a month’s credits run out, jobs use credit packs, which Pro and the API plans can buy on the dashboard’s Billing page. After that, an API plan's jobs continue as overage, at the plan's overage price on the pricing page, billed with the next invoice, up to a monthly cap. Past the cap, or without overage, new jobs are refused with 402 insufficient_credits until the next month starts; jobs already running finish. The account’s owners get an email when 80% of a month’s credits are used and another when none are left, and when overage starts and reaches its cap.