Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
The AI add-on
Fileboy's AI features need the AI add-on: £9 a month per app, with 375 AI credits included each billing period, then 2.5p a credit. Paid plans only (Starter, Pro, Max, or an organisation's apps). A Free app can buy AI credits as a one-off top-up instead.
What it covers
Every feature that sends your files or captions to OpenAI:
- Auto-generated captions and translated captions
- Titles, summaries and chapters, and filler word removal
- Video documents and Q&A
- AI image data (text, alt text, tags and moderation) and AI image edits (background removal and upscaling)
Without it, those features don't run for the app: a request to start one answers 402 ai_addon_required, and the settings that run them by themselves (auto captions, auto summary, AI image data on upload) are skipped, not failed. Anything already made stays: captions, translations, summaries, chapters, documents, image data and edited files are all still there and readable, and your settings are kept for when you add it.
1 2 3HTTP/1.1 402 Payment Required { "error": "ai_addon_required", "message": "AI features need the AI add-on. Add it on the app's Plan & billing page in the Fileboy dashboard" }
In the dashboard, each of those features shows a banner instead of its buttons and settings while the app doesn't have the add-on, saying what it does and that it needs the add-on. The app's Owner and Admins get a link to Plan & billing to add it; everyone else is asked to get one of them to. On the Free plan the banner says to choose a paid plan or buy AI credits. What the feature already made stays on show.
What it costs
£9 a month per app, with 375 AI credits included each billing period: about 10 hours of auto captions, 46 background removals or 15,000 images described a month. Each credit beyond those costs 2.5p, billed with your next invoice.
- Add or remove it on the app's Plan & billing page. It goes on the same subscription and invoice as the plan, prorated. On an organisation's billing it is added there, and each app that has it includes its own credits.
- A subscription billed in US dollars or euros pays $12 or €11 a month, and 3.3¢ or 3 cents a credit beyond the included ones. A subscription bills in one currency, so the add-on is billed in the plan's.
- The included credits reset at the start of each billing period. Unused credits don't carry over.
- The overage is reported to Stripe hourly, in whole credits, so a part of a credit waits until it makes a whole one. Removing the add-on bills the overage so far.
- The plan's AI limits (an hourly limit for each feature, and a monthly cap for AI image edits) still apply on top, as a safety cap.
AI credits for Free apps
The add-on is for paid plans. A Free app can buy 400 AI credits for £10 ($13 or €12) instead, about 11 hours of auto captions: a one-off payment through Stripe Checkout, with no subscription. The app's Owner buys them on its Plan & billing page.
- The credits run the app's AI features until they're used up, at the rates below, and don't expire. Buy more at any time; they add up.
- A job's credits are counted once it has run, and jobs already running when the credits run out finish, so the balance can end below 0 by up to one job for each one running then. New AI work is then refused with
402 ai_addon_requireduntil you buy more. AI image edits count their credits first, so one only starts when the balance covers all of it. - If a top-up's payment is refunded, the refunded share of its credits is taken back; if it's disputed, all of them are.
- Free's hourly AI limits still apply, and AI image edits need a paid plan.
- While the app has the add-on (or Fileboy granted it), its AI uses the add-on's credits and the top-up credits are kept for later. Credits are counted by the hour, so in the hour the add-on starts, AI the top-up already paid for counts toward the add-on's included credits too.
Credits per feature
A credit stands for US$0.01 of what OpenAI charges us, so each feature costs what it really uses: minutes of audio, or tokens of text and images sent and written. Credits are counted as each call is made, retries included, and kept to four decimal places, so short jobs don't each round up.
| Feature | Credits | Typically |
|---|---|---|
| Auto captions | 0.6 credits a minute of audio | 36 credits an hour of video |
| Translated captions | 10 credits per million tokens sent, 50 per million written | about 0.4 credits a language for a 30 minute video |
| Titles, summaries and chapters | 10 credits per million tokens sent, 50 per million written | about 0.2 credits for a 30 minute video |
| Filler word removal | 0.6 credits a minute of audio scanned | 18 credits for a 30 minute video |
| Video documents | 10 credits per million tokens sent, 50 per million written | about 0.2 credits a document from a 30 minute video |
| Video questions | 10 credits per million tokens sent, 50 per million written | about 0.07 credits a question |
| AI image data (alt text, tags, text in images) | 10 credits per million tokens sent, 50 per million written | about 0.03 credits an image |
| AI moderation | free | 0 credits |
| AI background removal | 2 credits, plus 1, 6 or 22 a megapixel of output at low, medium or high quality | 8 credits for a 1024×1024 image at medium quality |
| AI upscaling | 2 credits, plus 1, 6 or 22 a megapixel of output at low, medium or high quality | 26 credits for a 2048×2048 image at medium quality |
The typical figures are estimates for the sizes named; what a job really costs depends on how much speech or text it has. AI image edits count their credits before they run, and give them back if they fail.
Seeing your credits
The app's Plan & billing page shows the credits used this period and the overage so far; its Settings show them beside each feature's limits. In the API, GET /usage/ai has them under addon:
1curl 'https://api.fileboy.io/usage/ai' -H 'Authorization: token 0000000....'
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19{ "data": { "hour": "2026-11-24T14:00:00Z", "month": "2026-11-01T00:00:00Z", "features": [ ... ], "addon": { "entitled": true, "active": true, "granted": false, "source": "app", "periodStart": "2026-11-10T09:12:00Z", "periodEnd": "2026-12-10T09:12:00Z", "includedCredits": 375, "usedCredits": 412.35, "overageCredits": 37.35, "topupCredits": 0 } } }
entitled: the app's AI features run.activeis a subscription paying for the add-on (source"app"or"org");grantedis Fileboy turning it on for you, with nothing billed. A Free app with top-up credits left is entitled too.periodStartandperiodEnd: the billing period the included credits are for (the calendar month, UTC, without an active add-on).overageCredits: what was used beyondincludedCreditsthis period.topupCredits: what is left of the app's top-ups.