Convert a file in one request
Converts a file in one request: reserve, upload, queue, wait and return the result, on the same pipeline, spend cap and billing as the jobs routes.
Send the file as a multipart file field (with to, and optionally from and options), as the raw body with to in the query, or send JSON with source_url. to and from take format ids or extensions; from is inferred from the file name, URL or Content-Type when left out.
When the job succeeds with one output of at most 25 MB, this is its first delivery, and Accept does not ask for JSON, the response is the file, named after yours in Content-Disposition, with the Convt-Job-Id header. A larger result, or a replay, answers 303 with the signed storage URL in Location: clients that follow it receive the stored file, whose headers come from storage, so read the job id from the 303 or its JSON body. With several outputs (a multi-page PDF to PNG) or Accept: application/json, it is JSON with signed URLs. When the job is still running after wait seconds, a request with Accept: application/json gets 202 and the job keeps running; a file request gets 409 still_running if it sent an Idempotency-Key (the job keeps running) or 504 timeout if not (the job is cancelled).
Without an Idempotency-Key, hanging up before the answer cancels the job; that is best effort, and a job that already succeeded is billed. With one, the job keeps running and a retry with the same key collects it.
/v1/convertAuthorizationBearer token · headerrequiredA cvt_live_ API key from the dashboard, sent as Authorization: Bearer cvt_live_…. Keep it on your server.
tostringTarget format id or extension. Required here or as a form field.
fromstringInput format id or extension. Inferred from the file name, source_url or Content-Type when left out.
filenamestringName of a raw-body upload, used to infer from and name the result.
optionsstringConversion settings as URL-encoded JSON, such as {"quality":80}.
waitintegerSeconds to wait for the result, 0 to 300. Default 120. When it runs out: 202 if you sent Accept: application/json (the job keeps running), 409 still_running for a file request with an Idempotency-Key (the job keeps running), or 504 timeout for a file request without one (the job is cancelled).
Idempotency-KeystringAny string of 1 to 255 visible ASCII characters, such as a UUID. Retrying with the same key and the same request returns the original job instead of reserving a new one, for 24 hours. The same key with a different request fails with 409 idempotency_key_reused.
application/jsonsource_urlstring<uri>requiredtostringfromstringoptionsOptionsConversion settings. Every field is optional, and an unknown field, a value of the wrong type or an out-of-range value fails with 400 invalid_options when you create the job.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
The converted file, when the job produced one output of at most 25 MB, this is its first delivery, and Accept does not ask for JSON. With several outputs or Accept: application/json, JSON with signed URLs.
jobJobOne conversion and its state.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
outputsoutputsShow propertiesHide properties
outputsexpires_inintegerSent only with Accept: application/json: the job is still running after wait seconds. It keeps running and is billed if it succeeds; poll Location.
jobJobOne conversion and its state.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
A result over 25 MB, or a replay of a finished request: Location is the signed storage URL of the only output (valid for expires_in seconds). Follow it; the body is the same JSON as with Accept: application/json.
jobJobOne conversion and its state.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
outputsoutputsShow propertiesHide properties
outputsexpires_inintegerinvalid_request, input_format_required, unsupported_format, invalid_options, invalid_source_url, invalid_idempotency_key or an empty file (file_too_large).
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
unauthorized: no Authorization: Bearer header.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
unauthorized (key invalid or revoked) or a billing limit.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
not_found: the job does not exist, belongs to another account, or has expired.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
request_timeout: the upload took longer than 2 minutes. Use POST /v1/jobs for slow or large uploads.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
cancelled (the job was cancelled first), still_running (a file request with an Idempotency-Key that isn't done after wait; retry with the key) or idempotency_key_reused.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobOne conversion and its state.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
file_too_large: over 25 MB. Use POST /v1/jobs or source_url.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
The conversion failed. code is the job's error_code, such as conversion_failed or source_fetch_failed. Not charged.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobOne conversion and its state.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
rate_limited: more than 120 requests in a minute for this key.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
internal. If the job already exists, the body has job_id and Convt-Job-Id and Location name it: check it before retrying, because it may still finish and be billed.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
storage_unavailable: storage did not answer. If the body names a job, read it with GET /v1/jobs/{id} first: a succeeded job was billed, so fetch its outputs from /download instead of converting again; a job still created, queued or running can be collected by retrying the original request with its original Idempotency-Key. output_missing: the job succeeded and was billed but an output is gone from storage; fresh links will not help, so contact us with the job id.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobOne conversion and its state.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
server_busy: too many uploads in progress. Retry after Retry-After seconds.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobThe job the failed request created or touched, when there is one.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.
timeout: a file request without an Idempotency-Key did not finish within wait. The job was cancelled; not charged.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredrequest_idstring | nulljobJobOne conversion and its state.
Show propertiesHide properties
idstringrequiredJob id, prefixed job_.
statusstringrequiredcreated → queued → running → succeeded or failed. cancelled can happen at any point before the job finishes. uploaded is reserved and not used yet.
createduploadedqueuedrunningsucceededfailedcancelledinput_formatstringtarget_formatstringoptionsOptionsThe settings the job converts with, as sent when it was created.
Show propertiesHide properties
qualityinteger | nullLossy quality from 1 to 100 for JPEG, AVIF, HEIC and video output. WebP output is lossless and ignores it.
max_sizeinteger | nullLongest edge of image output in pixels. Larger images are scaled down; smaller ones are left alone.
video_heightinteger | nullMaximum video height in pixels, an even number. Scales down only and keeps the aspect ratio.
audio_bitrateinteger | nullAudio bitrate in kbit/s, from 8 to 640.
pagesstring | nullPDF pages to render: 2, 1-3 or 4- (page 4 to the end).
dpiinteger | nullResolution for rendering PDF and SVG pages, from 18 to 1200.
video_codecstring | nullEncoder for MP4, MOV and MKV output: h264 (the default) or hevc.
h264hevcnullbackgroundstring | nullWhat transparent areas become: transparent, white, black or a color like #ff8800. Unset keeps transparency where the format can store it and uses white where it can't. transparent fails for formats without transparency, such as JPEG.
strip_audiobooleanLeave the audio out of video output.
target_sizeintegerLargest output file in bytes. Lowers quality, and image size, to fit.
strip_metadatabooleanLeave EXIF, GPS and other metadata out of the output.
trim_startnumber | string | nullStart video or audio output here: seconds (12.5) or a timestamp ("1:30").
trim_endnumber | string | nullEnd video or audio output here: seconds (12.5) or a timestamp ("1:30").
fpsinteger | nullFrames per second for video and GIF output.
input_bytesinteger | nullSize you reserved
attemptintegerHow many times a worker has picked up the job. Starts at 0.
error_codestring | nullWhy a failed job failed (conversion_failed, source_fetch_failed, expired_or_exhausted or expired), otherwise null.
expires_atstring<date-time>requiredWhen the job and its files are deleted
created_atstring<date-time>source_urlstringThe origin of the source_url you sent, such as https://bucket.s3.amazonaws.com/…. The full URL is never returned.
webhook_urlstringThe origin of the webhook_url you sent. The full URL is never returned.
job_idstringThe job the failed request created, when the full job could not be read. Check it with GET /v1/jobs/{id} before retrying.