Add Logic to Your Processing Pipelines
Use JavaScript expressions to compute values, set fallbacks, and branch logic — all inline in your processing steps.
Use the full power of JavaScript to compute values dynamically based on file properties.
Provide default values for missing metadata using standard JavaScript operators.
Apply different processing based on file size, type, dimensions, or any metadata field.
Dynamic File Processing
Use JavaScript expressions to create intelligent processing pipelines.
Dynamic dimensions
Calculate output dimensions based on input file properties.
"width": "${file.meta.width * (720 / file.meta.height)}"

Fallback values
Provide default values when file metadata is missing.
"title": "${file.meta.title || 'Untitled'}"

Conditional logic
Apply different processing based on file type, size, or any metadata field.
"resize_strategy": "${file.meta.width > file.meta.height ? 'fit' : 'pad'}"
Stop hardcoding processing parameters
Use any JavaScript expression inline with dollar-brace syntax.
Reference file.meta.width, file.meta.height, file.size, and all metadata fields.
Use Math, Date, String methods, and other JavaScript built-ins for complex logic.
Handle missing metadata gracefully with || operators and ternary expressions.
Scripts execute in under 1ms with a 1-second timeout for safety.
Use simple variable access or more complex JavaScript expressions in the same workflow.
Take Code Evaluation into production
The guides, Robot reference, and working demos teams reach for when Code Evaluation has to run reliably at scale.
“Using Transloadit saves development and maintenance. Being able to focus on our product instead of reinventing the wheel cannot be understated.”
Matt Sumner, Developer at thoughtbot

Guides
- Media automation: from upload to reliable outputAutomate repeatable media intake, transformation, validation, and export while preserving observability and control.
- A complete guide to digital-asset workflowsDesign a digital-asset workflow from intake and processing through review, publication, retention, and deletion.
- How to give AI agents safe media-processing capabilitiesGive AI agents constrained media capabilities through stable Templates, structured inputs, and observable Assembly results.
What Code Evaluation costs to run
Every plan runs every Robot, so nothing about this service is held back for a bigger one. You are paying for the volume you put through it.
Community
FreePerfect for trying out Transloadit
5 GB every month200 priority slots/region2 collaborators0.5 GB file size limitAudio & video are trimmedOutput images are watermarkedService stops at 5 GBMonthly spending limits and alertsVideo turbo mode from ProLite
$29/ monthFor lower-volume workloads
15 GB every month400 priority slots/region2 collaborators1 GB file size limitFull-length audio & videoUnwatermarked image outputsOverage processing at $2/GBMonthly spending limits and alertsVideo turbo mode from ProPro
$54/ month$54 per month. Billed annually · save 22%
For growing workloads and more capacity
40 GB every month1,000 priority slots/region3 collaborators5 GB file size limitFull-length audio & videoUnwatermarked image outputsOverage processing at $1.80/GBMonthly spending limits and alertsVideo turbo modeEnterprise
CustomFor teams with advanced needs
Tailored monthly GB allowanceCustom priority slots per regionUnlimited collaboratorsTailored file size limitsTiered pricing availableCustom features & invoicingCustom Slack channelMonthly spending limits and alertsEnterprise support SLAsFaster file processingWhitelabeling supportVideo turbo mode



