REST API
POST /v1/pdf/compressAny language or framework: upload → operation → status → download. Signed webhooks instead of polling.
Quick start47 operations via REST API and MCP: conversion, compression, OCR with Russian support, a PDF editor, personal data redaction. Servers in Moscow, pay per request in rubles.
300 ₽ on your balance when you sign up — about 1,200 requests. No subscription, no card required.
One account and one balance for everything: API keys work for both REST and MCP.
POST /v1/pdf/compressAny language or framework: upload → operation → status → download. Signed webhooks instead of polling.
Quick startmcp.smartpdf.ru/mcp47 operations for Claude Code, Cursor, VS Code, Codex, and other agents. The key goes in the request header.
Connect an agentMCP Client · HTTPPDFs in no-code workflows: the MCP Client node or an HTTP request to the REST API.
Guides/plugin install smartpdf@smartpdfMCP and a skill for files on your computer — one command in Claude Code.
InstallThe MCP server gives your agent 47 SmartPDF operations — it picks the right one itself. Files go in as public links, and the result comes back as a download link. Payment comes from the same balance as the API.
Ask your agent:
The agent first uploads a file from your computer via the REST API — how to pass a file.
export SMARTPDF_API_KEY=sk_live_… # key from your dashboard
claude mcp add --transport http smartpdf https://mcp.smartpdf.ru/mcp \
--scope user --header 'Authorization: Bearer ${SMARTPDF_API_KEY}'The same tools as on smartpdf.ru — for your code. Each operation is a single POST request with JSON parameters.
/word-to-pdfJPG to PDF/jpg-to-pdfPhoto to PDF/photo-to-pdfExcel to PDF/xlsx-to-pdfPowerPoint to PDF/pptx-to-pdfDjVu to PDF/djvu-to-pdfFB2 to PDF/fb2-to-pdfEPUB to PDF/epub-to-pdfHTML to PDF/html-to-pdf/to-wordPDF to JPG/to-jpgPDF to PNG/to-pngPDF to Excel/to-excelPDF to PowerPoint/to-pptxPDF to Markdown/to-markdownPDF to text/to-txt/compress-imageHEIC to JPG/heic-to-jpgImage to text/image-to-textPNG to JPG/png-to-jpgJPG to PNG/jpg-to-pngWEBP to JPG/webp-to-jpgResize image/resize-imageCrop image/crop-imageRotate image/rotate-imageWord to JPG/word-to-jpg/editCompress PDF/compressGrayscale PDF/grayscalePDF to PDF/A/to-pdfaRepair PDF/repairMerge PDF/mergeSplit PDF/splitOCR PDF/ocrFlatten PDF/flattenUpload a file, start the operation, wait for the done status, and download the result. Every example has been tested by running it against the API.
#!/usr/bin/env bash
# SmartPDF API — Compress PDF: upload → operation → wait → download.
# Requires curl and jq.
# Get an API key in your dashboard: https://smartpdf.ru/en/dashboard/api-keys
set -euo pipefail
API="https://api.smartpdf.ru/v1"
AUTH="X-API-Key: $SMARTPDF_API_KEY"
# 1. Upload the file
FILE_ID=$(curl -sS --fail-with-body -H "$AUTH" -F "file=@document.pdf" "$API/upload" | jq -r .file_id)
# 2. Start the operation
BODY=$(jq -n --arg file_id "$FILE_ID" '{file_id: $file_id, level: "medium"}')
TASK_ID=$(curl -sS --fail-with-body -H "$AUTH" -H "Content-Type: application/json" \
-d "$BODY" "$API/pdf/compress" | jq -r .task_id)
# 3. Wait for the result
while :; do
TASK=$(curl -sS --fail-with-body -H "$AUTH" "$API/tasks/$TASK_ID")
STATUS=$(echo "$TASK" | jq -r .status)
[ "$STATUS" = done ] && break
[ "$STATUS" = failed ] && { echo "Processing error: $(echo "$TASK" | jq -r .error)" >&2; exit 1; }
sleep 2
done
# 4. Download the result
RESULT=$(curl -sS --fail-with-body -H "$AUTH" "$API/tasks/$TASK_ID/download")
curl -sS --fail-with-body -o "$(echo "$RESULT" | jq -r .filename)" "$(echo "$RESULT" | jq -r .download_url)"
echo "Done: $(echo "$RESULT" | jq -r .filename)"Servers and backups are in Moscow. Personal data is processed under Federal Law 152-FZ.
Card or SBP, with a self-employed seller’s receipt. No subscription: pay for requests, and your balance never expires.
Uploaded files are deleted after an hour, results — when your plan’s storage period ends.
A completion notification signed with HMAC-SHA256 — no need to poll the status.
Scans become PDFs with a text layer: Russian, English, German, French.
A spending limit for each key: per day, week, month, or all time. Regenerate a key without changing its settings.
One ruble balance for REST and MCP. Charged before queuing; a processing error refunds the payment.
| Most operations | every 10 MB or part thereof |
|---|---|
| Text recognition (OCR) | 10 MB or 10 pages |
| PDF to Word, Excel, PowerPoint, JPG | 10 MB or 50 pages (JPG 300 dpi: 25) |
| Merge | by the total size of the files |
No. Each request is paid from your account’s API balance — top it up when you need to. When you sign up, 300 ₽ is credited to your balance.
A request is every 10 MB or part thereof of the input file: a file up to 10 MB is one request, 25 MB is three. For OCR and conversion to Office formats and JPG, pages are counted too — whichever is greater applies. The amount charged is shown in the dashboard and in the API response.
MCP tools take a public link to the file (up to 100 MB) and return a link to the result. The agent uploads a file from your computer via the REST API: POST /v1/upload.
Uploaded files — one hour. Results — according to your account’s plan: one hour on Free, 7 days on Pro, 30 days on Business. Servers are in Moscow.
No: results via the API and MCP have no watermark.
Up to 10 requests per second per key and 30 operation requests per minute from one IP. File size depends on your account’s plan: 50 MB, 200 MB on Pro, 500 MB on Business. OCR — up to 100 pages at a time.
For now — by card or SBP, with a self-employed seller’s receipt. Need a large volume or special terms? Leave a request below.
No, the API works with any plan. On Business, 500 regular requests a month are already included and are used before your balance.
Need a large volume, different limits, or help with integration? Tell us about your task — a manager will contact you and help you find the right terms.
smartpdf@yandex.ru