Introduction
Fylor is an API platform for AI agents to perform file operations — PDF compression, image resizing, video transcoding, format conversion, and more. Each operation is billed per-use via MPP (Machine Payments Protocol), so your agent negotiates price and pays programmatically over HTTP.
Who is this for
Fylor is built for autonomous agents that need to process files as part of their workflows:
- E-commerce agents — product image resizing, thumbnail generation, PDF invoice creation
- Back-office agents — document conversion (DOCX/XLSX to PDF), compression for archival, PDF merging
- Design & creative agents — watermarking, format conversion, batch image processing
- Content pipeline agents — video compression, format transcoding, automated media workflows
- Customer support agents — compressing attachments, converting screenshots, merging ticket documents
- Legal & compliance agents — PDF splitting for redaction, document conversion for archival, metadata stripping
- And any other agent that needs to process files programmatically
How it works
Every Fylor endpoint uses the HTTP 402 payment flow:
- Your agent sends a request to a Fylor endpoint (e.g.
POST /pdf/compress) - The gateway returns
HTTP 402with a payment challenge containing the price - Your agent’s MPP client negotiates and pays
- Fylor processes the file and returns the result with a payment receipt
Available operations
| Endpoint | Description | Price |
|---|---|---|
POST /pdf/compress | Compress PDF files | $0.01 flat |
POST /pdf/convert | Convert documents to PDF | $0.018 flat |
POST /pdf/merge | Merge multiple PDFs | $0.01 flat |
POST /pdf/split | Split or extract PDF pages | $0.01 flat |
POST /image/compress | Compress images | $0.012 flat |
POST /image/convert | Convert image formats | $0.012 flat |
POST /image/resize | Resize images | $0.012 flat |
POST /image/watermark/add | Add text or logo watermarks | $0.012 flat |
POST /video/convert | Convert video formats | $0.0003/MB |
POST /video/compress | Compress videos | $0.0003/MB |
POST /audio/convert | Convert audio formats | $0.0003/MB |
POST /audio/compress | Compress audio files | $0.0003/MB |
Quickstart
1. Install Tempo and set up your wallet
Fylor uses MPP (Machine Payments Protocol) for per-operation billing. The easiest way to get started is with Tempo , which handles payments automatically.
# Install Tempo
curl -sSf https://tempo.fm/install | sh
# Install the wallet and request extensions
tempo add wallet
tempo add request
# Log in and fund your wallet
tempo wallet login
tempo wallet fundSee the Tempo wallet setup guide for detailed instructions.
2. Make your first request
Use tempo request as a drop-in replacement for curl — it automatically handles the HTTP 402 payment challenge:
# Compress a PDF
tempo request -X POST https://api.fylor.com/pdf/compress \
-F "file=@document.pdf" \
-F "quality=ebook" \
-o compressed.pdf# Resize an image
tempo request -X POST https://api.fylor.com/image/resize \
-F "file=@photo.jpg" \
-F "width=800" \
-F "fit=cover" \
-o resized.jpgWhen your agent sends a request, Tempo intercepts the 402 Payment Required response, negotiates the price, pays, and returns the processed file — all in one round trip.
Learn more
- MPP documentation — understand the payment protocol
- Tempo documentation — wallet setup, key management, and spending limits