Skip to content

API reference

Schemas

The 70 objects the HTTP API takes and returns, from its OpenAPI document.

The types named in the tables of the operations. Each links here by its name.

AbilityList#

NameTypeRequiredDescription
dataarray of string-Every ability a key may be granted

ArchiveCreateOptions#

NameTypeRequiredDescription
formatstring-Zip, tar.gz, tar or gz. Default zip. max length 8
levelinteger-Compression level, 1 to 9. 0 uses the format's default. min 0; max 9
namestring-The archive's name, without an extension. Default archive. max length 64

ArchiveExtractOptions#

A value of type object.

AudioCapabilities#

NameTypeRequiredDescription
formatsarray of AudioFormat-Every output format, with whether this server can write it
loudness_targetnumber (double)-The integrated loudness normalisation aims at, in LUFS
max_secondsnumber (double)-The longest recording this server converts, in seconds
readablearray of string-The media types this server accepts, including video, since extracting a soundtrack is the same conversion
sample_ratesarray of integer-The sample rates a conversion may ask for. 0 keeps the source's
writablearray of string-The formats this server can write, by name

AudioConvertOptions#

NameTypeRequiredDescription
bitrateinteger-Bit rate in kbit/s for MP3, Opus and AAC. 0 uses the format's default. Ignored by FLAC and WAV, which are lossless. min 0; max 320
channelsinteger-1 for mono, 2 for stereo. 0 keeps the source's. min 0; max 2
normaliseboolean-Normalise the loudness to -16 LUFS, the figure streaming platforms use
sample_rateinteger-Resample, in hertz. 0 keeps the source's rate. min 0; max 192000
tostring-Mp3, wav, flac, opus or aac. GET /api/v1/tools/audio-convert/formats lists what this server can write. max length 8
two_passboolean-Measure the whole recording before correcting it. Costs a second decode and is the only way to hit the target reliably

AudioFormat#

NameTypeRequiredDescription
extensionstring-The canonical extension, with the dot
labelstring-What to call it in an interface
lossyboolean-Whether a bit rate applies. FLAC and WAV are lossless and refuse one
mimestring-The media type a file of this format has
namestring-The identifier to send as options.to
writeboolean-Whether this server can produce it

CapabilitiesView#

NameTypeRequiredDescription
enginesarray of EngineView-Every external program, and whether this server has it
limitsLimitsView-The numbers this server enforces
toolsarray of string-Every tool that can be submitted

ClipOptions#

NameTypeRequiredDescription
clip_secondsinteger-Clip length in seconds for split mode, 1 to 60. Default 60. min 0; max 60
cropCrop-The area to keep, in pixels. Leave it out to keep the whole frame
duration_secondsnumber (double)-How much to keep, in seconds. 0 means to the end. min 0
frame_accurateboolean-Cut exactly, by re-encoding. Slower; off by default, which cuts at the nearest keyframe
modestring-Trim keeps one range, split cuts the whole video into clips. Default trim. max length 16
start_secondsnumber (double)-Where the cut starts, in seconds. Default 0. min 0

ConversionList#

NameTypeRequiredDescription
dataarray of ConversionView-The caller's conversions, newest first

ConversionView#

NameTypeRequiredDescription
bytes_ininteger (int64)-Size of the input in bytes
bytes_outinteger (int64)-Size of the result in bytes, 0 until it finishes
created_atstring (date-time)-When it was submitted
error_messagestring-What to tell the user, empty unless it failed
error_typestring-A code from the error taxonomy, empty unless it failed
expires_atstring (date-time)-When the result stops being downloadable
finished_atstring (date-time) or null-When it ended, or null
idstring-The conversion id, used to poll it, stream it or cancel it
notestring-What the conversion did, in its own words. Empty when the file says it all
phasestring-What it is doing now, empty once it has ended
progressinteger-Percentage from 0 to 100
started_atstring (date-time) or null-When a worker picked it up, or null
statusstring-One of pending, running, finished, error, cancelled
toolstring-Which conversion produced it

Crop#

NameTypeRequiredDescription
heightinteger-
widthinteger-
xinteger-
yinteger-

DownloadOptions#

NameTypeRequiredDescription
clip_secondsintegernoClip length in seconds, 1 to 60. Default 60. min 0; max 60
clipsbooleannoSplit the result into consecutive clips, delivered individually and as a zip
compressbooleannoCompress afterwards and keep whichever file is smaller
kindstringnoVideo keeps the picture, audio gives MP3. Default video. max length 8
qualitystringnoBest or smallest. Default best. max length 16
urlstringyesA YouTube, Instagram, X or TikTok URL. min length 1; max length 2048

EngineView#

NameTypeRequiredDescription
namestring-The engine, as the configuration names it
presentboolean-Whether it was resolved at startup
versionstring-The version it reported, empty when absent

ErrorCatalog#

NameTypeRequiredDescription
dataarray of ErrorCatalogEntry-Every error code a conversion can end with

ErrorCatalogEntry#

NameTypeRequiredDescription
messagestring-What to tell the user
retryboolean-Whether submitting the same input again could succeed
typestring-The stable code, as it appears on a conversion

ImageCompressOptions#

NameTypeRequiredDescription
effortinteger-1 to 10, meaning depends on the format. 0 uses the highest the encoder supports. min 0; max 10
modestring-Lossless or lossy. Empty picks by format: lossless for PNG and GIF, lossy for JPEG and WebP. max length 16
qualityinteger-1 to 100, for a lossy compression. 0 uses the format's default. min 0; max 100

ImageConvertOptions#

NameTypeRequiredDescription
crop_heightinteger-Crop height. 0 means no crop. min 0; max 20000
crop_leftinteger-Crop origin from the left, in source pixels. min 0; max 20000
crop_topinteger-Crop origin from the top, in source pixels. min 0; max 20000
crop_widthinteger-Crop width. 0 means no crop. min 0; max 20000
effortinteger-0 to 10, meaning depends on the format. 0 uses the default. min 0; max 10
flipstring-Horizontal or vertical. Empty means no flip. max length 16
heightinteger-Target height in pixels. 0 leaves that axis open. min 0; max 20000
keep_animationboolean-Keep every frame of an animated GIF or WebP. Off by default; only applies when the output format is animated too
keep_metadataboolean-Keep EXIF, XMP and IPTC. Off by default: a photograph's EXIF often carries GPS coordinates and a device serial number
losslessboolean-Lossless encoding for WebP, AVIF and JPEG XL. Ignored by formats with no lossless mode
qualityinteger-1 to 100 for JPEG, WebP, AVIF and JPEG XL. 0 uses the format's default. min 0; max 100
resizestring-Fit, fill or exact. Empty leaves the size alone. max length 8
rotateinteger-Quarter turns clockwise: 0, 90, 180 or 270. min 0; max 270
tostring-Output format. GET /api/v1/tools/image-convert/formats lists the ones this server can write. max length 16
upscaleboolean-Allow making the image larger. Off by default: upscaling produces a bigger file that looks worse
widthinteger-Target width in pixels. 0 leaves that axis open. min 0; max 20000

ImageFormat#

NameTypeRequiredDescription
animatedboolean-Whether the format can hold more than one frame
extensionstring-The canonical extension, with the dot
labelstring-What to call it in an interface
mimestring-The media type a file of this format has
namestring-The identifier to send as options.to
readboolean-Whether this server can read it
writeboolean-Whether this server can produce it

ImagesToPDFOptions#

NameTypeRequiredDescription
fitstring-Contain fits inside the margins, fill covers the page, exact makes the page the image's own size. Default contain. max length 16
marginnumber (double)-Points of space around the image, 0 to 144. Default 0. min 0; max 144
orientationstring-Auto turns each page to match its image. Also portrait or landscape. Default auto. max length 16
page_sizestring-A4, a3, a5, letter or legal. Default a4. max length 16
qualityinteger-Quality for images that have to be converted, 1 to 100. Default 90. A JPEG input is never re-encoded. min 0; max 100

Issue#

NameTypeRequiredDescription
codestring-
keystring-
messagestring-
onstring-
paramsmap of object-
pathstring-

LimitsView#

NameTypeRequiredDescription
max_clip_secondsinteger-The longest clip a split produces
max_clipsinteger-The most clips one conversion delivers
max_download_bytesinteger (int64)-The largest download allowed, 0 for no cap
max_output_secondsinteger-The longest output a cut produces, 0 for no cap

LinkStarted#

NameTypeRequiredDescription
device_codestring-Secret to poll with. Never show it to the person
expires_ininteger-Seconds until the link can no longer be approved
intervalinteger-Seconds to wait between polls
user_codestring-The short code to show the person, formatted XXXX-XXXX
verification_urlstring-Where the person approves. It already contains the user code

LinkToken#

NameTypeRequiredDescription
abilitiesarray of string-What the key may do. Only when approved
expires_atstring (date-time) or null-When the key stops working. Only when approved
idstring-The key id, used to revoke it. Only when approved
statusstring-Pending, approved, denied or expired. A link that never existed reads as expired
tokenstring-The secret key, shown once. Only when approved
typestring-The authorization scheme, always Bearer. Only when approved

MediaCapabilities#

NameTypeRequiredDescription
flipsarray of string-Horizontal or vertical
formatsarray of ImageFormat-Every image format, with whether this server can read it, write it, or both
readablearray of string-The media types this server accepts as input
resize_modesarray of string-Fit, fill or exact
rotationsarray of integer-The quarter turns a client may ask for
writablearray of string-The formats this server can write, by name

MediaFormat#

NameTypeRequiredDescription
acodecstring-Its audio codec, or none
bitrate_kbpsnumber (double)-Its total bitrate in kilobits per second
bytesinteger (int64)-Its size, 0 when the platform does not say
extstring-Its container extension
idstring-The platform's own format id
resolutionstring-Its frame size, empty for an audio-only stream
vcodecstring-Its video codec, or none

MediaView#

NameTypeRequiredDescription
duration_secondsnumber (double)-How long it is
estimated_bytesinteger (int64)-The expected size at best quality. The cap is checked against this for quality=best
formatsarray of MediaFormat-Every stream the platform offers
max_bytesinteger (int64)-The largest download this server allows
platformstring-Youtube, instagram, x or tiktok
smallest_bytesinteger (int64)-The expected size at quality=smallest, 0 when the platform declares none
thumbnailstring-A link to the platform's own thumbnail
titlestring-The video's title, as the platform gives it
too_largeboolean-Whether even the smallest stream is past the cap
uploaderstring-Who posted it

NameList#

NameTypeRequiredDescription
dataarray of string-The accepted values, in the order to show them

PDFCompareOptions#

A value of type object.

PDFCompressOptions#

NameTypeRequiredDescription
levelstring-Light keeps every page's appearance, balanced is the default, strong is for email. max length 16

PDFCropOptions#

NameTypeRequiredDescription
bottomnumber (double)-Points to trim from the bottom edge. min 0; max 1000
leftnumber (double)-Points to trim from the left edge. min 0; max 1000
pagesstring-Pages to crop, as 1-3,5. Empty crops every page. max length 512
rightnumber (double)-Points to trim from the right edge. min 0; max 1000
topnumber (double)-Points to trim from the top edge. min 0; max 1000

PDFFormsOptions#

NameTypeRequiredDescription
actionstring-List reports the fields as JSON; fill sets the values given; flatten turns the form into plain page content. Default list. max length 16
flattenboolean-Flatten the form after filling it, so the values can no longer be edited
valuesarray of PDFFormValue-The fields to fill, for the fill action. at most 1000 items

PDFFormValue#

NameTypeRequiredDescription
namestringyesThe field's full name, as the list action reports it. min length 1; max length 512
valuestringnoThe value. A checkbox takes true or false; a radio group or a choice takes one of its options. max length 10000

PDFMergeOptions#

A value of type object.

PDFOCROptions#

NameTypeRequiredDescription
deskewboolean-Straighten pages that were scanned at a slight angle
languagesarray of string-Languages in the scan: eng, por. Several may be combined. Default eng. at most 4 items

PDFOfficeOptions#

A value of type object.

PDFPageNumberOptions#

NameTypeRequiredDescription
formatstring-The label, with {n} for the number and {total} for the count. Default {n}. max length 200
pagesstring-Pages to number, as 2-z. Empty numbers every page. max length 512
positionstring-Top-left to bottom-right. Default bottom-center. max length 16
sizenumber (double)-Font size in points, 4 to 144. Default 10. min 0; max 144
start_atinteger-The number on the first numbered page. Default 1. min 0; max 100000

PDFPagesOptions#

NameTypeRequiredDescription
pagesstringyesPages, as 1-3,5,8-z. z is the last page. min length 1; max length 512

PDFProtectOptions#

NameTypeRequiredDescription
allow_extractbooleannoAllow text to be copied out. Screen-reader access is always allowed
modifystringnoAll, annotate, form, assembly or none. Default all. max length 16
owner_passwordstringyesThe password that lifts the restrictions. Required, and must differ from the opening password. min length 1; max length 256
printstringnoFull, low or none. Default full. max length 8
user_passwordstringnoThe password needed to open the document. Leave empty to restrict permissions only. max length 256

PDFRepairOptions#

A value of type object.

PDFRotateOptions#

NameTypeRequiredDescription
absoluteboolean-Set the rotation rather than add to the page's current one
degreesinteger-90, 180 or 270, clockwise. Default 90. min 0; max 360
pagesstring-Pages to rotate, as 1-3,5. Empty rotates every page. max length 512

PDFSignOptions#

NameTypeRequiredDescription
contactstringnoHow to reach the signer. Optional. max length 200
locationstringnoWhere you are signing. Optional. max length 200
passwordstringyesThe password of the .p12 certificate bundle. The key is used for this one signature and is not kept. min length 1; max length 256
reasonstringnoWhy you are signing. Shown beside the signature. Optional. max length 200

PDFSplitOptions#

NameTypeRequiredDescription
everyinteger-Pages per file, for the every mode. Default 1. min 0; max 10000
modestring-Every splits into groups of n pages; ranges uses the ranges given. Default every. max length 16
rangesarray of string-One range per output file, for the ranges mode. at most 500 items

PDFToImageOptions#

NameTypeRequiredDescription
dpiinteger-Resolution, 36 to 600. Default 150. min 0; max 600
formatstring-Png or jpeg. Default png. max length 8
pagesstring-Pages to render, as 1-3,5. Empty renders every page. max length 512
qualityinteger-JPEG quality, 1 to 100. Default 85. min 0; max 100

PDFToPDFAOptions#

NameTypeRequiredDescription
partinteger-PDF/A conformance: 1 for 1b, 2 for 2b, 3 for 3b. Default 2. min 0; max 3

PDFToTextOptions#

NameTypeRequiredDescription
formatstring-Text or markdown. Default text. max length 16
layoutboolean-Keep the page's column spacing, for the text format
page_rulesboolean-Write a rule between pages, for the markdown format
pagesstring-One continuous range such as 1-20. Empty reads the whole document. max length 512

PDFUnlockOptions#

NameTypeRequiredDescription
passwordstringyesThe password that opens the document. It is tried once; there is no recovery of a password you do not have. min length 1; max length 256

PDFWatermarkOptions#

NameTypeRequiredDescription
boldbooleannoUse the bold face
graynumber (double)no0 black to 1 white. Default 0. min 0; max 1
opacitynumber (double)no0 invisible to 1 opaque. Default 0.18. min 0; max 1
pagesstringnoPages to stamp, as 1-3,5. Empty stamps every page. max length 512
positionstringnoTop-left to bottom-right, or center. Default center. max length 16
rotatenumber (double)noAngle in degrees anticlockwise. 45 is the usual diagonal. min -360; max 360
sizenumber (double)noFont size in points, 4 to 144. 0 picks a size from the page width. min 0; max 144
textstringyesThe text to stamp. Unaccented Latin letters, digits and punctuation. min length 1; max length 200

PixelSVGOptions#

NameTypeRequiredDescription
alphastring-Opacity keeps partial transparency, drop removes it. Default opacity. max length 16
max_colorsinteger-Palette cap, 1 to 256. 0 uses the default, -1 means no reduction. min -1; max 256
modestring-Square, rect or contour. Default rect. max length 16
scaleinteger-Multiplies the rendered size. 0 and 1 both mean actual size. min 0; max 64
simplifynumber (double)-Contour simplification in pixels, contour mode only. 0 keeps it pixel-exact. min 0; max 16
toleranceinteger-Merge colours closer than this (0 to 255). 0 disables merging. min 0; max 255

PlatformList#

NameTypeRequiredDescription
dataarray of PlatformView-Every platform a URL may belong to

PlatformView#

NameTypeRequiredDescription
hostsarray of string-The domains a URL may be on
labelstring-What to call it in an interface
namestring-The stable id, as a conversion reports it

Problem#

NameTypeRequiredDescription
detailstring-
errorsmap of array of string-
instancestring-
issuesarray of Issue-
request_idstring-
statusinteger-
titlestring-
typestring-

ResultFile#

NameTypeRequiredDescription
expires_atstring (date-time)-When the file is deleted and the link stops working
mimestring-Its media type
namestring-The file name to save it as
size_bytesinteger (int64)-Its size
urlstring-A signed link, valid until expires_at and no longer

ResultList#

NameTypeRequiredDescription
dataarray of ResultFile-The files this conversion produced

SpriteBuildOptions#

NameTypeRequiredDescription
asepriteboolean-Add Aseprite's per-frame duration and frameTags to the JSON formats
extrudeinteger-Repeat each frame's edge pixels into the padding, which is the fix for the dark halo transparent padding leaves. min 0; max 8
frame_msinteger-Per-frame duration in milliseconds for the Aseprite extensions. 0 means 100. min 0; max 60000
layoutstring-Grid or compact. Default grid, which Godot 4 and Unity import with no metadata file. max length 8
margininteger-Transparent gutter at the sheet's edges. min 0; max 256
max_sizeinteger-Cap the sheet's width and height. 0 means 4096, which every GPU handles as one texture. min 0; max 8192
metadataarray of string-Metadata formats to write, at most four. at most 4 items
paddinginteger-Transparent gutter between two frames, which stops a neighbour's colour bleeding in. min 0; max 256
potboolean-Round the sheet up to a power of two on both axes

SpriteCapabilities#

NameTypeRequiredDescription
formatsarray of SpriteFormat-Every metadata format, in the order the interface offers them
layoutsarray of string-How sprite-build arranges them
max_formatsinteger-How many metadata formats one conversion may ask for
max_framesinteger-The most frames one conversion produces
max_sizeinteger-The largest sheet dimension, in pixels
modesarray of string-How sprite-split finds frames

SpriteFormat#

NameTypeRequiredDescription
extensionstring-The file's extension, with the dot
importsstring-One sentence saying what reads this format
mimestring-The media type the result is served as
namestring-The value to send in options.metadata
trimboolean-Whether the format can describe a trimmed frame. CSS cannot

SpriteSplitOptions#

NameTypeRequiredDescription
asepriteboolean-Add Aseprite's per-frame duration and frameTags to the JSON formats
backgroundstring-Hex colour auto mode treats as empty, e.g. #ff00ff. Empty means transparency. max length 9
background_toleranceinteger-How far a pixel may be from the background colour and still count as background. min 0; max 255
cell_hinteger-Cell height in pixels. min 0; max 8192
cell_winteger-Cell width in pixels. Give this and cell_h, or cols and rows. min 0; max 8192
colsinteger-Column count, as an alternative to the cell size. min 0; max 2048
frame_msinteger-Per-frame duration in milliseconds for the Aseprite extensions. 0 means 100. min 0; max 60000
margininteger-Gutter between the sheet's edge and the first cell. min 0; max 256
metadataarray of string-Metadata formats to write, at most four. GET /api/v1/tools/sprite-split/formats lists them. at most 4 items
min_frameinteger-Drop a detected frame smaller than this many pixels, as noise. Auto mode only. min 0; max 1000000
modestring-Grid or auto. Default grid. max length 8
prefixstring-Frame name prefix; the nth frame is prefix plus a zero-padded index. Default frame. max length 64
rowsinteger-Row count. min 0; max 2048
spacinginteger-Gutter between two neighbouring cells. min 0; max 256
trimboolean-Shrink each frame to its opaque box, recording the offset so an importer can re-inflate it. Refused with the css metadata format, which has nowhere to put the offset

Token#

NameTypeRequiredDescription
abilitiesarray of string-
expires_atstring (date-time) or null-
idstring-
last_used_atstring (date-time) or null-
namestring-
resourcestring-
revoked_atstring (date-time) or null-
user_idstring-

TokenIssued#

NameTypeRequiredDescription
abilitiesarray of string-What this key may do
expires_atstring (date-time) or null-When the key stops working, or null when it never expires
idstring-The key id, used to revoke it
tokenstring-The secret key. It is shown once; store it now
typestring-The authorization scheme to use, always "Bearer"

TokenList#

NameTypeRequiredDescription
dataarray of Token-The caller's keys, newest first, revoked ones included

ToolList#

NameTypeRequiredDescription
dataarray of string-Every tool that can be submitted, by name

TypeList#

NameTypeRequiredDescription
dataarray of string-Every MIME type an upload may have

UploadList#

NameTypeRequiredDescription
dataarray of UploadView-Your uploads that no conversion has claimed yet, newest first

UploadView#

NameTypeRequiredDescription
created_atstring (date-time)-When it was accepted
expires_atstring (date-time)-When an unused upload is deleted
idstring-Use this as file_id when submitting a conversion
mimestring-The type detected from the bytes, not from the name
namestring-The sanitised file name
size_bytesinteger (int64)-What was actually stored

UsageView#

NameTypeRequiredDescription
budget_secondsinteger (int64)-Today's budget in seconds of processing time. 0 when unlimited
remaining_secondsinteger (int64)-What is left today, in seconds. 0 when unlimited or spent: read unlimited to tell them apart
resets_atstring (date-time)-When the next day's budget starts (midnight UTC)
spent_secondsinteger (int64)-Processing time spent today, in seconds
stored_bytesinteger (int64)-Bytes of yours that are stored and have not expired: uploads and results
stored_limit_bytesinteger (int64)-The most bytes an account may store at once. 0 when there is no cap
unlimitedboolean-True when no daily budget applies to this account

User#

NameTypeRequiredDescription
created_atstring (date-time)-
emailstring-
email_verified_atstring (date-time) or null-
idinteger (int64)-
namestring-
updated_atstring (date-time)-

VideoCapabilities#

NameTypeRequiredDescription
codecsarray of string-The video codecs this server can encode. An ffmpeg built without GPL support has no H.264 or H.265
containersarray of VideoContainer-Every output container, with the codecs it carries
dithersarray of string-The dithering modes video-to-gif accepts
gpl_buildboolean-Whether the video engine is built with GPL support, which H.264 and H.265 require
max_gif_secondsnumber (double)-The longest range video-to-gif will convert, in seconds
max_secondsnumber (double)-The longest video this server converts, in seconds

VideoContainer#

NameTypeRequiredDescription
audio_codecsarray of string-The audio codecs this container carries here, plus copy and mute
extensionstring-The canonical extension, with the dot
labelstring-What to call it in an interface
namestring-The identifier to send as options.container
video_codecsarray of string-The video codecs this container carries here

VideoConvertOptions#

NameTypeRequiredDescription
audiostring-Aac, opus, mp3, flac, vorbis, copy or mute. Empty uses the container's default. max length 8
audio_bitrateinteger-Audio bit rate in kbit/s. 0 uses the codec's default. min 0; max 512
containerstring-Mp4, webm, mkv or mov. max length 8
crfinteger-Quality on the codec's own scale; the scales are not comparable between codecs. 0 uses the codec's default. min 0; max 63
frame_ratenumber (double)-Cap the frame rate. 0 leaves it alone. min 0; max 240
heightinteger-Scale to this height, keeping the shape. Only downwards. 0 leaves the resolution alone. min 0; max 4320
videostring-H264, h265, vp9 or av1. Empty uses the container's default. GET /api/v1/tools/video-convert/capabilities lists what this server has. max length 8

VideoToGIFOptions#

NameTypeRequiredDescription
ditherstring-Dithering mode. Empty uses sierra2_4a. max length 20
duration_secondsnumber (double)-How long, in seconds. 0 takes the rest of the video, up to the 15 second limit. min 0
fpsinteger-Frames per second. 0 uses 12, which divides 100 evenly and so plays evenly. min 0; max 50
start_secondsnumber (double)-Where to start, in seconds. min 0
widthinteger-Width in pixels. 0 uses 480: a GIF has no interframe compression, so doubling the width quadruples the file. min 0; max 1920