# Reimply API Convert, compress, ingest, optimize, merge, split and OCR files over HTTP. Also: prompt-injection test generation, PII pseudonymisation and Inspect checks. 1 file or tool call = 1 conversion (video and audio jobs count as 3). No credit maths. Files are deleted 60 minutes after a job finishes (inputs as soon as the job ends). Tool request payloads are not stored. Ingest and optimize run in memory and are not written to disk during processing. Conversions: 1 file = 1 conversion. Sync tools (prompt-injection, PII, inspect) cost 1 conversion each. Video and audio jobs count as 3. File size and processing time do not add conversions. Failed jobs cost nothing. Free: 250 conversions a month, 25 MB, no card. Plans: Starter £12/mo for 3,000 conversions, 100 MB, 3 concurrent jobs; Growth £39/mo for 15,000 conversions, 250 MB, 10 concurrent jobs; Scale £99/mo for 50,000 conversions, 500 MB, 25 concurrent jobs. Authenticated responses include Reimply-Quota-Limit (monthly allowance), Reimply-Quota-Remaining (conversions left in this period) and Reimply-Quota-Reset (Unix time of the next monthly reset). Live keys start with rmk_ and use your monthly conversions. Test keys start with rmt_, never use conversions, return livemode: false, accept files up to 2 MB, and are limited to 20 requests a minute and 100 an hour. Image, PDF and ingest results in test mode are watermarked or labelled. See https://reimply.com/api/docs#test and https://reimply.com/llms.txt. Base URL: https://reimply.com/v1 Docs: https://reimply.com/api/docs OpenAPI: https://reimply.com/v1/openapi.json HTTP API: https://reimply.com/v1 (@reimply/sdk is in the repository and is not on npm yet; no PyPI SDK; use curl or fetch) MCP server: npm install @reimply/mcp-server ## Authentication Send your key as `Authorization: Bearer rmk_...` or `X-API-Key`. Live keys start with `rmk_` and use your monthly conversions. Test keys start with `rmt_`. They never use conversions, every reply includes `livemode: false` and a `Reimply-Livemode: false` header, files are capped at 2 MB, and they are limited to 20 requests a minute and 100 an hour. Image, PDF and ingest results are watermarked or labelled so test mode is not a free converter. Create keys at https://app.reimply.com/account/api. Authenticated replies also send `Reimply-Quota-Limit`, `Reimply-Quota-Remaining` and `Reimply-Quota-Reset`. ## Idempotency Send `Idempotency-Key` on POST requests. For 24 hours the same key and body return the first reply (`idempotent-replayed: true`) and are not charged again. ## Sync and async Jobs run synchronously (HTTP 200) when the input is known to be 4 MB or less. They return 202 with a Location header when you set `async: true`, set `webhook_url`, or send a file over 4 MB. Poll `GET /v1/jobs/{id}` or wait for the webhook. ## Endpoints ### POST /v1/convert Convert a file. Images, audio, video, PDF pages, data files and Markdown/DOCX. GET /v1/conversions lists every pair. ### POST /v1/compress Compress an image, PDF, video or audio file. Set options.target_size to get an image or PDF at or under an exact size (for example "200kb"). If the size cannot be reached, the smallest result is returned and listed in target_missed. ### POST /v1/merge Merge PDFs (and images) into one PDF. Inputs are joined in order. Images become pages. ### POST /v1/split Split a PDF. One PDF per page, or per range. ### POST /v1/organize Reorder, remove and rotate PDF pages. options.pages is the new order (1-based); pages left out are removed. ### POST /v1/images-to-pdf Turn images into a PDF. One page per image. ### POST /v1/pdf-to-images Render PDF pages as images. One image per page. ### POST /v1/ocr Extract text from an image or scanned PDF. Returns a .txt file, or with options.output "pdf" a searchable PDF: the original pages with an invisible text layer you can search, select and copy. PDFs: up to 30 pages. ### POST /v1/ingest Turn a digital PDF, Word document or data file into Markdown, tables and chunks. Starter, Growth and Scale. Accepts a digital PDF, DOCX, CSV, TSV or JSON file. The job object includes an ingest field with markdown, tables (when they can be found), chunks of about 512 tokens (options.chunk_size, 64 to 4096) and per-page metadata for PDFs. Token counts are approximate (about 4 characters per token). Files are processed in memory, not written to disk. Scanned or image-only PDFs (no extractable text, or under about 20 characters per page on average) return 422 ocr_required_unsupported and are not charged. Costs 1 conversion. Free plans get 403 plan_upgrade_required. ### POST /v1/optimize Shrink an image or PDF to an exact byte cap. Set options.max_bytes (bytes, or a size like "100kb"). For images, options.format may be jpg, webp or png. If the file already fits, it is returned as is. If the cap cannot be reached, the job returns 422 target_unreachable with bytes_achieved and max_bytes, and nothing is charged. Costs 1 conversion. ### POST /v1/protect Add a password to a PDF. options.password is required. Already protected PDFs must be unlocked first. Costs 1 conversion. ### POST /v1/unlock Remove a known PDF password. options.password must open the file. Wrong passwords return 422. Unknown passwords are not cracked. Owner and permission restrictions are cleared when unlock succeeds. Costs 1 conversion. ### POST /v1/prompt-injection/generate Generate prompt-injection test variants. Same engine as the on-site Prompt Injection Test Generator. Returns text and file carriers (carriers as base64) with PIT taxonomy codes. Request text is not stored. Costs 1 conversion. Failed calls are free. ### POST /v1/pii/pseudonymise Pseudonymise PII in text. Same engine as the on-site PII Pseudonymiser. Returns redacted text, hits and a reversible map. The map is returned to you and never stored. Costs 1 conversion. Set restore: true with text and map to restore for free. ### POST /v1/inspect Run Inspect checks on text or a file. Same checks as /inspect on the site (hidden characters, EXIF parse, PDF security, tracking, carriers, and more). Send text, a multipart file under 4 MB, a URL, or an upload_id from POST /v1/uploads. Optional check scopes to one module slug. Request payloads are not stored. Image metadata stripping and share-card export need a browser and are not available here. Costs 1 conversion. ### POST /v1/uploads Get a presigned upload URL. For files over 4 MB (up to your plan and per-type limits). PUT the bytes to url with the given headers within 15 minutes, then use {"upload_id": id} as a job input. ### GET /v1/jobs List recent jobs. undefined ### GET /v1/jobs/{id} Get a job. undefined ### GET /v1/jobs/{id}/outputs/{index} Download a result. undefined ### GET /v1/account Conversions, plan and limits. undefined ### GET /v1/conversions Every supported conversion pair. undefined ### POST /v1/webhooks/test Send a signed test event to a URL. undefined ## Job object Fields: id, object, operation, status, mode, livemode, created_at, finished_at, processing_seconds, input_bytes, conversions, credits, outputs, target_missed, ingest, expires_at, error, webhook. ## Errors Errors are JSON: `{"error": {"code": "...", "message": "...", "status": 402}}`. Failed jobs are not charged. ## See also - POST /v1/convert: Convert a file. Images, audio, video, PDF pages, data files and Markdown/DOCX. GET /v1/conversions lists every pair. - POST /v1/compress: Compress an image, PDF, video or audio file. Set options.target_size to get an image or PDF at or under an exact size (for example "200kb"). If the size cannot be reached, the smallest result is returned and listed in target_missed. - POST /v1/merge: Merge PDFs (and images) into one PDF. Inputs are joined in order. Images become pages. - POST /v1/split: Split a PDF. One PDF per page, or per range. - POST /v1/organize: Reorder, remove and rotate PDF pages. options.pages is the new order (1-based); pages left out are removed. - POST /v1/images-to-pdf: Turn images into a PDF. One page per image. - POST /v1/pdf-to-images: Render PDF pages as images. One image per page. - POST /v1/ocr: Extract text from an image or scanned PDF. Returns a .txt file, or with options.output "pdf" a searchable PDF: the original pages with an invisible text layer you can search, select and copy. PDFs: up to 30 pages. - POST /v1/ingest: Turn a digital PDF, Word document or data file into Markdown, tables and chunks. Starter, Growth and Scale. Accepts a digital PDF, DOCX, CSV, TSV or JSON file. The job object includes an ingest field with markdown, tables (when they can be found), chunks of about 512 tokens (options.chunk_size, 64 to 4096) and per-page metadata for PDFs. Token counts are approximate (about 4 characters per token). Files are processed in memory, not written to disk. Scanned or image-only PDFs (no extractable text, or under about 20 characters per page on average) return 422 ocr_required_unsupported and are not charged. Costs 1 conversion. Free plans get 403 plan_upgrade_required. - POST /v1/optimize: Shrink an image or PDF to an exact byte cap. Set options.max_bytes (bytes, or a size like "100kb"). For images, options.format may be jpg, webp or png. If the file already fits, it is returned as is. If the cap cannot be reached, the job returns 422 target_unreachable with bytes_achieved and max_bytes, and nothing is charged. Costs 1 conversion. - POST /v1/protect: Add a password to a PDF. options.password is required. Already protected PDFs must be unlocked first. Costs 1 conversion. - POST /v1/unlock: Remove a known PDF password. options.password must open the file. Wrong passwords return 422. Unknown passwords are not cracked. Owner and permission restrictions are cleared when unlock succeeds. Costs 1 conversion. - POST /v1/prompt-injection/generate: Generate prompt-injection test variants. Same engine as the on-site Prompt Injection Test Generator. Returns text and file carriers (carriers as base64) with PIT taxonomy codes. Request text is not stored. Costs 1 conversion. Failed calls are free. - POST /v1/pii/pseudonymise: Pseudonymise PII in text. Same engine as the on-site PII Pseudonymiser. Returns redacted text, hits and a reversible map. The map is returned to you and never stored. Costs 1 conversion. Set restore: true with text and map to restore for free. - POST /v1/inspect: Run Inspect checks on text or a file. Same checks as /inspect on the site (hidden characters, EXIF parse, PDF security, tracking, carriers, and more). Send text, a multipart file under 4 MB, a URL, or an upload_id from POST /v1/uploads. Optional check scopes to one module slug. Request payloads are not stored. Image metadata stripping and share-card export need a browser and are not available here. Costs 1 conversion. - POST /v1/uploads: Get a presigned upload URL. For files over 4 MB (up to your plan and per-type limits). PUT the bytes to url with the given headers within 15 minutes, then use {"upload_id": id} as a job input. - GET /v1/jobs: List recent jobs. - GET /v1/jobs/{id}: Get a job. - GET /v1/jobs/{id}/outputs/{index}: Download a result. - GET /v1/account: Conversions, plan and limits. - GET /v1/conversions: Every supported conversion pair. - POST /v1/webhooks/test: Send a signed test event to a URL.