Photon API

Public docs, plans, and endpoint reference.

Public ยท No admin required

Base URL

https://photon.lafu.fi

Plans and features

TierPlan labelRate limitMonthly included usageMax upload / requestBest for
Free Free 10/min 1 GB 5 MB Tryout and side projects
Pro Pro 50/min 10 GB 15 MB Production personal apps
Business Business 100/min 50 GB 50 MB Teams and higher throughput
Enterprise Enterprise 200/min Unlimited Unlimited High-scale usage

Endpoints

MethodPathAuthNotes
GET/healthNoneService health check.
GET/readyNoneReadiness for storage and Redis dependencies.
POST/optimizeBearer API keyUpload image and receive optimized output URLs.
GET/status/:idBearer API keyCheck async job status when queue mode is used.
GET/quotaBearer API keyCurrent API key usage/quota.
GET/api/quotaBearer API keyAlias for /quota.
POST/demo/api/optimizeNonePublic demo endpoint (server-managed defaults/rate limits).

Optimize Example

curl -sS -X POST "https://photon.lafu.fi/optimize"   -H "Authorization: Bearer YOUR_API_KEY"   -F "file=@./photo.jpg"   -F "format=auto"   -F "quality=80"

Supported fields include format, quality, width, height, webp_effort, avif_effort, and jpeg_chroma.