Quickstart
Upload your first image and serve it through FastPic in under five minutes.
1. Create an API key
Open app.fastpic.pro/keys, sign in (or sign up — free plan, no credit card), and create a new key. The key is shown to you once — store it as FP_KEY in your environment.
app.fastpic.pro/keys →2. Upload your first image
Send a multipart/form-data POST to api.fastpic.pro/v1/images. The response gives you back a publicId and a direct URL.
upload.ts
const body = new FormData()body.append('file', file)const { publicId } = await fetch('https://api.fastpic.pro/v1/images', { method: 'POST', headers: { Authorization: `Bearer ${process.env.FP_KEY}` }, body}).then(r => r.json())3. Transform it on the fly
Append width / height / format / quality / fit query parameters to media.fastpic.pro/{publicId} to resize, convert, or optimize.
thumb.ts
const src = `https://media.fastpic.pro/${publicId}?w=800&fmt=webp&q=85`// → use in <img src={src} />4. List or delete images
GET api.fastpic.pro/v1/images returns a paginated list. DELETE api.fastpic.pro/v1/images/{publicId} soft-deletes.