Docs · beta
Lumograph docs
Previews and processing for the files you keep: one API and one MCP server, every job bounded. What's here is built and tested today.
Getting access
Lumograph is in private beta. Join the waitlist; when your place opens your organisation gets the API's address and the storage buckets it covers. Every call carries an OAuth 2 bearer token for a person, an agent acting for one, or a service your organisation lets in.
link), or with the caller's own access to the bucket. A rendition made for someone else is shown only to people who can read its source now.Making renditions
POST /v1/render makes a rendition, or finds the one already made: {bucket, key, link?, kind, width?, height?, fit?, gravity?, format?, quality?, page?, time_ms?}, or {bucket, key, preset}.
| Kind | From | Makes |
|---|---|---|
thumbnail, resize | JPEG, PNG, WebP, GIF (first frame); a PDF's first page; a video's frame at any time | WebP, PNG, JPEG or auto; contain, cover or fill; a watermark and a caption |
page | Any page as an image | |
text | PDF, Word (DOCX), text files | UTF-8 text, for search |
video | MP4 and QuickTime, Matroska and WebM, AVI | H.264 and AAC in MP4, or VP9 and Opus in WebM, scaled to fit |
clip | The same videos | A looping animated WebP or GIF, up to 10 s |
storyboard | The same videos | Up to 100 key frames tiled into one image, with when each starts |
pdf | Markdown, text, HTML | An A4 PDF, typeset without fetching anything |
fit is contain, cover or fill. With cover, gravity says what to keep: center, a side (north…), a corner (northwest…) or smart, the most detailed part of the image. Images are never enlarged past their source; video keeps even sides. A PDF's text arrives with pages separated by form feeds. A video's frame is taken at time_ms, a second in by default.
The answer's link is a signed link to the rendition, good for ten minutes; ask with inline: true and small renditions come back as bytes. POST /v1/rendition finds one already made and never makes one; POST /v1/object gives a file as the view shows it.
Automatic format and quality
format is webp, png, jpeg or auto for stills. With auto, Lumograph encodes the image as lossless WebP, PNG and, when nothing is see-through, JPEG, and keeps the smallest. quality: "auto" (the default with auto) is the lowest JPEG quality whose result keeps the image's structure, measured by SSIM. The rendition records the content type and quality chosen. Not yet: AVIF, or choosing by the viewer's Accept header.
Watermarks and captions
overlay {key, bucket?, gravity, width, opacity, margin} lays a watermark or logo over a thumbnail, resize or page: read from storage as the caller, like the source, with width as a percentage of the rendition's (20 by default, in the bottom-right corner). A changed logo makes a new rendition.
caption {text, gravity, size, color, background, bold, opacity, margin} sets one line of text over a still, in Helvetica or Helvetica Bold, made smaller when it wouldn't fit, with an optional box behind it. Beta: one line, Latin scripts only (text outside Windows-1252 is refused); no blur or tint effects yet.
Video
From MP4, QuickTime, Matroska, WebM or AVI: a still at time_ms (thumbnail or resize); a video transcode to H.264 MP4 or VP9 WebM, scaled to fit; a clip, a looping animated WebP or GIF from time_ms for duration_ms (up to 10 s) at fps (1 to 30), up to 1280 a side; and a storyboard, up to 100 key frames evenly through the video tiled into one JPEG or WebP, with each tile's start time and place for a player's scrubbing preview.
Video runs through a separate ffmpeg process inside the same job. A transcode must finish within the job's 30 seconds, so a long video can be refused for time. Not yet: adaptive streaming (HLS).
Presets and batches
A preset names a set of render settings for the organisation (thumb-card): GET /v1/orgs/<org>/presets, PUT|DELETE /v1/orgs/<org>/presets/<name> (an admin's). render, rendition and batch take preset in place of the settings, and make the same rendition as the settings spelled out, cached either way.
POST /v1/batch {bucket, prefix, …spec or preset, limit?, after?} lists the objects under a prefix that the caller can read, up to 100 a batch, and renders each in the background, two at a time: made, cached (free), refused, failed, or skipped once the organisation's job limit is reached. GET /v1/orgs/<org>/batches/<id> follows it; when the answer has next, pass it as after for the following batch.
Caching by content
Renditions are kept by the source's content hash and the spec asked for, overlay and caption included. Asking for the same rendition of the same content again, from anyone who can read it, is answered from the record and counts nothing against your limits. A changed file is new content and is made afresh.
Bounds and refusals
Every job runs in its own process, inside fixed bounds:
Video runs through ffmpeg limited to the formats above and to local files, so a crafted “video” can't make it read other files or URLs. HTML is typeset by Lumograph's own typesetter, not a browser: scripts, styles, images and frames are dropped, and nothing is fetched.
A refusal says why: past a bound (the number is in the message), a kind Lumograph doesn't read yet, a damaged file, or a job that ran out of time or memory. A refusal is remembered for that content and spec, so asking again is refused at once. GET /v1/orgs/<org>/jobs lists every job made, refused or failed, with its spec.
Limits
Each organisation has jobs per hour and per day (500 and 5,000 by default). A rendition already made counts nothing. Past a limit the answer is 429 with when to try again. GET /v1/orgs/<org>/usage shows jobs against the limits, by kind, with job times. Admins can lower the limits; raising them needs an owner's nod.
Agents and MCP
Lumograph has an MCP server at /mcp. Each tool calls the API as the caller, so storage access decides what they can read, their role decides the rest, and the API enforces limits and nods. Renditions an agent makes are recorded as made by the person, through that agent.
| Tool | What it does | Level |
|---|---|---|
view_object | Show a person a file: its thumbnail, type, size, pages and renditions so far | free |
get_rendition | A rendition already made, never making one | free |
list_presets | The organisation's named render settings | free |
list_batches, get_batch | Batches, and each object in one: made, cached, refused, failed or skipped | free |
list_jobs, get_usage | Every job made, refused or failed; jobs against the limits | free |
get_org | The organisation's limits, members, clients and buckets | free |
render | Make a rendition: one job against the hourly and daily limits | limits |
render_batch | Render every object under a prefix, up to 100 a batch, in the background | limits |
set_preset, remove_preset | Name a set of render settings, or remove one | limits |
set_limits | Lower the organisation's limits | limits |
remove_member | Take someone's access away | limits |
set_limits | Raise the organisation's limits | nod |
set_member | Add a member, or change a role | nod |
set_client | Let a service act for the organisation | nod |
When an action needs a nod, the API refuses with a challenge naming the exact action until a person's approval for it arrives. The approver is a person on their own device; an agent never approves for itself.
Views. view_object {bucket, key} shows a person the file previewed, with its renditions and a form to make any kind, its result shown inline. view_lumograph {} opens the organisation's renditions, jobs, batches, usage and presets. Every button is a tool call as the signed-in person, and the screen needs no network: images arrive inline.