Converter Studio

v1.0.0
studio.converter/converter-studio Checked 4 days ago Published 17 days ago

Convert video, audio, images, PDFs and documents in 67 formats; results come back as links.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_formats List formats

Lists the file formats Converter Studio converts and what each converts to. Give "from" (a format id such as "heic" or "mp4") to see the targets of one format. Needs no account.

ParameterTypeDescription
fromstringOnly this source format

create_upload Create an upload

For a local file bigger than 8 MB: returns a one-time upload URL and a curl command. Run the command in a shell (files over 95 MB need parts, see partBytes), then call convert with the returned uploadId. The slot expires after an hour.

ParameterTypeDescription
fileName *stringThe file name with its extension
sizeBytesintegerThe file size, if known

convert Convert a file

Converts a file to another format (or to its own format, smaller) and returns a download link (valid 6 hours). The file comes from "url" (a direct link or a Google Drive, Dropbox or OneDrive share link), "uploadId" (from create_upload) or "contentBase64" with "fileName" (files up to 8 MB). Uses credits from the user's converter.studio account; goes ahead on its own up to maxCredits. Waits up to 100 seconds; if not done, call get_conversion.

ParameterTypeDescription
to *stringTarget format id, e.g. "pdf", "mp4", "jpg"
contentBase64stringThe file itself, base64 (up to 8 MB)
fileNamestringThe file name, needed with contentBase64
maxCreditsintegerGo ahead without asking up to this price (default 20; 0 only prices it)
optionsobjectOptional settings (quality, resolution, bitrate…) where the conversion has them
uploadIdstringAn upload slot id whose file was uploaded
urlstringA link to the file

get_conversion Get a conversion

The status of a conversion by id, with its download link once done. Waits up to waitSeconds (at most 100) for it to finish.

ParameterTypeDescription
id *stringThe conversion id
waitSecondsinteger

confirm_conversion Confirm a conversion

Starts a conversion that waits for a go-ahead because it costs more than its maxCredits. Spends the shown credits: ask the user first. Waits up to 100 seconds for the result.

ParameterTypeDescription
id *stringThe conversion id

get_account Get the account

The user's converter.studio plan, credits left and file size limit.