1. Set up Tempo Wallet
curl -fsSL https://tempo.xyz/install | bash tempo wallet login
2. Tell your agent to set up Tempo
# Paste this into your agent Read https://tempo.xyz/SKILL.md and set up tempo
3. Your agent calls Fylor — MPP handles payment
tempo request -X POST \ -F "file=@doc.pdf" \ -F "quality=ebook" \ https://api.fylor.io/pdf/compress 402 → pays $0.05 → 200 OK # ~1.2s
How it works
Request a resource
Your agent sends a standard HTTP request. No API keys, no special headers — just a normal POST with your file.
POST /pdf/compress Content-Type: multipart/form-data
Receive a Challenge
Fylor returns 402 with a WWW-Authenticate Challenge specifying the price and accepted payment methods.
402 Payment Required WWW-Authenticate: amount=0.05 currency=USD
Pay and receive
Your agent pays, resends with a Credential in the Authorization header, and gets the processed file plus a Receipt.
Authorization: <credential> 200 OK Payment-Receipt: <receipt>
Operations
Twelve operations across four file types. Flat per-request pricing or metered per-megabyte — no subscriptions.
Compress
$0.01Reduce PDF file size with configurable quality presets
Convert
$0.018Convert 30+ file types to PDF with full formatting control
Merge
$0.01Combine multiple PDFs with page selection and bookmarks
Split
$0.01Extract pages or split into multiple PDFs
Compress
$0.012Optimize file size with lossless and lossy modes
Convert
$0.012Convert between 10+ formats — PNG, WebP, AVIF, HEIC, and more
Resize
$0.012Scale, crop, and rotate with smart positioning
Watermark
$0.012Add text or logo watermarks with tiling and rotation
Convert
$0.0003/MBTranscode between 17+ formats with full codec, bitrate, and quality control via FFmpeg
Compress
$0.0003/MBReduce video file size with quality presets and automatic codec selection
Convert
$0.0003/MBTranscode between audio formats with codec, bitrate, and sample rate control
Compress
$0.0003/MBReduce audio file size with quality presets and automatic codec selection
Simple by design
Standard HTTP. Your agent sends a request, gets a 402 Challenge with the price, pays via MPP, and resends with a Credential. The processed file and a Payment Receipt come back.
No API keys. No webhooks. No SDK required. The protocol handles everything in the HTTP layer.
1# 1. Request the resource 2POST /pdf/compress 3Content-Type: multipart/form-data 4 5# 2. Server returns a Challenge 6HTTP/1.1 402 Payment Required 7WWW-Authenticate: <challenge> 8# amount=0.05, currency=USD, methods=[tempo, stripe] 9 10# 3. Agent pays, resends with Credential 11POST /pdf/compress 12Authorization: <credential> 13 14# 4. Result + Receipt 15HTTP/1.1 200 OK 16Content-Type: application/pdf 17Payment-Receipt: <receipt>
Why Fylor
Built for AI agents
Native MPP (x402) payment flow. Your agent negotiates price and pays programmatically — no dashboards, no manual steps, no human in the loop.
Per-operation pricing
Pay only for what you process. No monthly subscriptions, no minimums, no tiers. Operations start at $0.005 per request.
Every file type
PDF, images, and video in one API. Compress, convert, merge, split, resize, watermark — nine operations and growing.
Fast and reliable
Dedicated workers per file type. Sharp for images, Ghostscript for PDFs, FFmpeg for video. Built for throughput.