Converter Studio
v1.0.0Convert 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.
| Parameter | Type | Description |
|---|---|---|
from | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
fileName * | string | The file name with its extension |
sizeBytes | integer | The 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.
| Parameter | Type | Description |
|---|---|---|
to * | string | Target format id, e.g. "pdf", "mp4", "jpg" |
contentBase64 | string | The file itself, base64 (up to 8 MB) |
fileName | string | The file name, needed with contentBase64 |
maxCredits | integer | Go ahead without asking up to this price (default 20; 0 only prices it) |
options | object | Optional settings (quality, resolution, bitrate…) where the conversion has them |
uploadId | string | An upload slot id whose file was uploaded |
url | string | A 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The conversion id |
waitSeconds | integer |
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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The conversion id |
get_account Get the account
The user's converter.studio plan, credits left and file size limit.