Documentation
Guides and API reference for uploads, image transforms and video.
npm install @cd2/fileboy-react API https://api.fileboy.io
Documentation menu
Auto-generated captions
Caption videos by speech to text: a caption track made from what is said, with the transcript as text. It's off until you turn it on (recordings up to 15 minutes are transcribed free), and OpenAI does the work.
402 ai_addon_required and automatic runs are skipped; anything already made stays. Cost in AI credits: auto captions: 0.6 credits a minute of audio (36 credits an hour of video); filler word removal: 0.6 credits a minute of audio scanned (18 credits for a 30 minute video). See the AI add-on.What it does
When a video has auto captions on, Fileboy:
- sends its sound to OpenAI once the video is processed, and hears the language spoken (or uses the one you chose);
- stores the words as an ordinary caption track, marked auto-generated, in cues of up to two lines that are timed to the speech. The player shows it like any other track, labelled English (auto-generated);
- keeps the plain text and the timed segments (with word timings), for search, a transcript on your page, or quoting a moment;
- sends a
video.transcribedwebhook.
Turn it on
For every new video: open the app's Settings and use the Auto-generated captions card, or set autoCaptions (and optionally autoCaptionsLanguage) in the app settings. For one video: its Captions & AI tab, or the video's own setting, which wins over the app's either way (on for this video, off for this video, or follow the app).
// this video only: on even while the app's setting is off, in French (the app's own private key)
await fileboy.updateVideoTranscription(video.id, { autoCaptions: true, language: "fr" })
// back to following the app
await fileboy.updateVideoTranscription(video.id, { autoCaptions: null, language: null })# caption every new video, detecting the language
curl -X PATCH https://api.fileboy.io/app/settings \
-H "Authorization: token YOUR_SIGNED_TOKEN" \
-H "Content-Type: application/json" \
-d '{"autoCaptions": true, "autoCaptionsLanguage": null}'
# or turn it on for one video only
curl -X PATCH https://api.fileboy.io/videos/VIDEO_ID/transcription \
-H "Authorization: token YOUR_SIGNED_TOKEN" \
-H "Content-Type: application/json" \
-d '{"autoCaptions": true, "language": "fr"}'Videos uploaded before you turned it on aren't sent. Make their captions with the Generate captions button on the Captions & AI tab, or POST /videos/:id/transcribe. Turning the video's own setting on needs the app's private key, like the app settings: it agrees to send that video's sound.
<fileboy-recorder> with their session) gets its captions and transcript like a Loom does: without the AI add-on, without using AI credits, and without turning auto captions on. It still counts in the transcription usage and the AI limits. To keep recordings from being sent, turn auto captions off for the app (an off saved for the app wins), or for the one recording. Its filler word scans (Remove ums on its Recording tab, or POST /videos/:id/fillers/detect) are free the same way. A video marked as a recording by an API key alone, with nobody named, is treated like any upload. So is a recording over 15 minutes: its captions and Remove ums need the AI add-on. Every other video's AI still needs the add-on.Where the sound goes
Fileboy uses OpenAI as the processor for auto-generated captions. While they are on for a video:
- its soundtrack (not the picture) is sent to OpenAI's transcription API as compressed mono audio, in pieces, after it is processed, again when its source is replaced, and when you ask;
- nothing is sent for videos with it off or for videos with no sound.
Read it
From your server, with the private key (or a scoped key with videos:read). The dashboard shows the same on the video's Captions & AI tab.
// the captions, the plain text and the timed segments (private key, or videos:read)
const t = await fileboy.getVideoTranscription(video.id)
t.status // "done"
t.text // "Hello and welcome to the demo."
t.segments[0].words?.[0] // { word: "Hello", start: 0.48, end: 0.86 }
t.trackId // the caption track players show
// make them now, for a video uploaded before you turned it on
await fileboy.transcribeVideo(video.id, { language: "en" })t = fileboy.fetch_video_transcription(video.id)
t.status # => "done"
t.text # => "Hello and welcome to the demo."
t.track_id # the caption track players show
fileboy.transcribe_video(video.id, language: "en")t = client.get_video_transcription(video.id)
t.status # "done"
t.text # "Hello and welcome to the demo."
t.track_id # the caption track players show
client.transcribe_video(video.id, language="en")$t = $fileboy->getVideoTranscription($video->id);
echo $t->status; // done
echo $t->text; // Hello and welcome to the demo.
echo $t->trackId; // the caption track players show
$fileboy->transcribeVideo($video->id, 'en');curl https://api.fileboy.io/videos/VIDEO_ID/transcription \
-H "Authorization: token YOUR_SIGNED_TOKEN"
# make them now
curl -X POST https://api.fileboy.io/videos/VIDEO_ID/transcribe \
-H "Authorization: token YOUR_SIGNED_TOKEN" \
-H "Content-Type: application/json" \
-d '{"language": "en"}'1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28{ "data": { "videoId": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10", "status": "done", "message": null, "reason": "upload", "settings": { "autoCaptions": null, "language": null, "enabled": true, "effectiveLanguage": null }, "language": "en", "text": "Hello and welcome to the demo.", "segments": [ { "start": 0.48, "end": 2.9, "text": "Hello and welcome to the demo.", "words": [ { "word": "Hello", "start": 0.48, "end": 0.86 }, { "word": "and", "start": 0.9, "end": 1.02 } ] } ], "trackId": "5e0c7a12-3d4b-4f6a-9e21-8c7b6a5d4e3f", "trackEdited": false, "model": "whisper-1", "audioSeconds": 61.2, "queuedAt": "2026-11-17T19:00:00Z", "transcribedAt": "2026-11-17T19:00:40Z" } }
status is none (never transcribed), pending, processing, done, failed or skipped (no sound, too long, or turned off before it ran); message says why. A video with no speech is done with no track. Times are seconds of the video as it plays now.
Players and pages get the plain text from the video's public data, /videos/:id/data, which follows the video's read access, while the caption track exists. It is the same words the track already gives anyone who can watch the video. The timed segments, the settings and the usage are only in the management API.
1 2 3 4 5 6 7 8 9 10 11"transcripts": [ { "id": "5e0c7a12-3d4b-4f6a-9e21-8c7b6a5d4e3f", "language": "en", "autoGenerated": true } ], "transcript": { "status": "done", "language": "en", "text": "Hello and welcome to the demo.", "trackId": "5e0c7a12-3d4b-4f6a-9e21-8c7b6a5d4e3f", "autoGenerated": true, "edited": false }
Edit, delete or run it again
The track is yours: fix a misheard word in the caption editor (or PUT /videos/:id/transcripts/:transcriptId), and the transcript text follows your edit. Running it again never overwrites an edited track: it makes a new auto-generated track beside yours, and you keep whichever you want. A track you haven't edited just gets the new words.
Delete the track like any other. The text then leaves /videos/:id/data, and running it again makes a new track.
The track can be translated into other languages too, and the app can translate new auto-generated captions automatically. Making the captions again marks their translations out of date.
OpenAI can also write the video's title, summary and chapters from the track, by hand or as soon as the captions are made. Making the captions again marks that out of date too.
Trims, cuts and replacements
A trim, cut or trim reset doesn't send anything again: what was said hasn't changed, only when. The caption track moves with the video like every track, and the transcript's segments and word timings move by the same edit, so they still agree. Words in a removed section are removed. A blur changes nothing.
Removing filler words and silences is the one edit that can send sound to OpenAI: only when you press Detect, and only for filler words, its speech goes to OpenAI (whisper-1) once more, because captions leave fillers out. Those seconds count in the transcription usage below. When auto captions are turned off for the video or the app, it sends nothing and looks for pauses only. The cut it makes then moves the captions like any cut.
Replacing a video's source file is new sound, so it is transcribed again when auto captions are on for it (with your edited track kept, as above). If the new sound has no speech, or can't be transcribed (no sound, too long), the old auto-generated track is removed, as its words are of the old sound; a track you edited stays as an ordinary track. A clip or a stitched video is a new video: its caption tracks are copied from the source (a stitch joins them) as ordinary tracks, with no transcript. As it already has captions, it isn't transcribed again on its own; POST /videos/:id/transcribe or Generate captions does it.
The webhook
video.transcribed is sent when a video's captions are made, or it was heard to have no speech (noSpeech, no track). Video filters apply to it and it can be replayed, like the other video events. The text isn't in it: read it from dataUrl or the API. A failure sends no webhook, email or alert; its message is on the video.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22{ "type": "video.transcribed", "resource": { "id": "9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10", "name": "demo.mp4", "status": "ready", "transcription": { "status": "done", "reason": "upload", "language": "en", "trackId": "5e0c7a12-3d4b-4f6a-9e21-8c7b6a5d4e3f", "trackUrl": "https://api.fileboy.io/videos/9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10/transcripts/5e0c7a12-3d4b-4f6a-9e21-8c7b6a5d4e3f", "trackCreated": true, "segments": 12, "words": 140, "noSpeech": false, "audioSeconds": 61.2, "model": "whisper-1", "dataUrl": "https://api.fileboy.io/videos/9b1c4d1e-5c1e-4b8e-9d57-3f0a4f1a7c10/data" } } }
Limits and failures
- Each app starts up to 20 transcriptions an hour, and can ask for 60 an hour with
POST /videos/:id/transcribe. The rest wait their turn. - These limits are per app and count every start on all of Fileboy's servers together, retries included. They reset at the top of each UTC hour, and come from your plan, which can also set a monthly cap (none do today). Jobs over a limit stay
pendinguntil the next hour or month; documents and questions answer429 rate_limited. See each feature's use this hour and month in the app's Usage page (AI usage and limits) or withGET /usage/ai. - Videos longer than three hours are
skipped, and so are videos with no sound. - If OpenAI is busy or has an error, it is tried again after 1, 5 and 30 minutes, then marked
failed. The pieces of sound already heard are kept, so a retry only sends the ones still missing. A request OpenAI refuses fails straight away. Run it again to retry. - A video being trimmed, cut or blurred waits until that is done, so the words match what it plays. Turning auto captions off while a video is being transcribed stops it: no more of its sound is sent, and nothing is stored.
- The language must be one the speech model knows (the first part of the code:
ptofpt-BR). With none set, each part of a long video is heard in its own language. - Fileboy counts each app's transcriptions and the seconds of audio sent:
GET /usage/transcription, and the last 30 days on the settings card.