# SmartPDF API documentation

Source: https://smartpdf.ru/en/developers/docs

The SmartPDF API offers 47 PDF and image operations over HTTP: conversion to and from PDF (Word, Excel, PowerPoint, JPG, PNG, Markdown, DjVu, FB2, EPUB), compression, merging and splitting, text recognition (OCR), a PDF editor, finding and removing personal data, page tools, signatures, watermarks, passwords and image tools. The same tools as on [smartpdf.ru](https://smartpdf.ru/en), for your code and AI agents.

## How to connect

- **REST API** — base URL `https://api.smartpdf.ru/v1`, the key goes in the `X-API-Key` header. Start with the [quick start](https://smartpdf.ru/en/developers/docs/quickstart).
- **MCP server** — `https://mcp.smartpdf.ru/mcp` for Claude Code, Claude Desktop, Cursor, VS Code, Codex CLI, Gemini CLI and other agents: [MCP server](https://smartpdf.ru/en/developers/docs/mcp).
- **No code** — automations in [n8n](https://smartpdf.ru/en/developers/docs/n8n) and [Make](https://smartpdf.ru/en/developers/docs/make).

The API and MCP use the same keys and share one balance.

## Request flow

All operations are asynchronous and take four requests:

1. `POST /v1/upload` — upload a file and get a `file_id`.
2. `POST /v1/pdf/<operation>` — start an operation and get a `task_id`.
3. `GET /v1/tasks/{task_id}` — wait for the `done` status or receive a [webhook](https://smartpdf.ru/en/developers/docs/webhooks).
4. `GET /v1/tasks/{task_id}/download` — get a link to the result and download it.

Details: [How it works](https://smartpdf.ru/en/developers/docs/how-it-works).

## Pricing

Each request is paid from the account’s API balance in rubles: currently 0.25 ₽ per file up to 10 MB (up-to-date price: `GET /v1/pricing/api`); for heavy operations, pages count too. There’s no subscription, and the balance never expires. Once you sign up and confirm your email, 300 ₽ is credited to your balance. Details: [Billing](https://smartpdf.ru/en/developers/docs/billing).

## Data

Servers and backups are located in Moscow. Uploaded files are deleted after an hour; results are kept for the storage period of the account’s plan. Results obtained via the API and MCP have no watermark.
