Building jobs at scale requires defensive design. Here’s what we recommend.Documentation Index
Fetch the complete documentation index at: https://nexrender.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Always Provide Fallbacks
Your templates should gracefully handle empty or missing values. In After Effects, useif expressions or fallback layers hidden by default so a missing asset never crashes the render.
| Layer Type | Best Practice |
|---|---|
| Text | Set a default like "(Missing Title)" |
| Image | Use a neutral brand logo or placeholder |
| Audio | Default to a silent fallback track |
Validate Assets Before Submitting
Before sending a job, verify:- The
compositionname exists - useGET /templates/{id}to inspect available compositions - Every
layerNamematches exactly (case-sensitive) - All asset URLs return
200 OK - Required fonts have been uploaded via the Fonts API
Use Webhooks Instead of Polling
Configure awebhook.url on each job so your system is notified the moment rendering completes or fails, rather than repeatedly querying the API:
Implement Retry Logic
Jobs can occasionally fail due to transient render errors or temporary asset access issues. Build retries into your pipeline:- Handle
status: "error"in your webhook processor and resubmit the same payload - Use a queue system that retries on
errorstatus with a backoff delay - Limit retries to 2-3 attempts to avoid looping on a fundamentally broken payload
Use Preview Mode for Iteration
Set"preview": true when developing or testing a new template. Preview renders are faster and cheaper, and catch most structural issues - missing layers, expression failures, layout shifts - before you commit to a full-quality render.
Use Secrets for Credentials
Never embed storage credentials or API keys directly in a job payload. Store them as Nexrender secrets and reference them with${secrets.NAME}:
Use Draft Quality for High-Volume Pipelines
When rendering large batches where visual fidelity is less critical (e.g., internal previews, thumbnails, QA passes), usesettings.quality: "draft" to reduce render time and infrastructure cost per job.
