Modifications
The key-value pairs you pass to change text, images, and styles in a template
The modifications object is how you tell Orshot what content to put in your template. Each key is a parameter name you defined in Studio, and the value is the content you want to display.
How It Works#
When you design a template in Studio, you set elements as parameters with IDs like title, authorName, or productImage. When calling the API, you pass those IDs in the modifications object:
const response = await orshot.renderFromTemplate({
templateId: "your-template-id",
responseType: "url",
responseFormat: "png",
modifications: {
title: "Quarterly Sales Report", // text element
authorName: "Jane Smith", // text element
authorPhoto: "https://example.com/jane.jpg", // image element
backgroundColor: "#1a1a2e", // style override
},
});What You Can Modify#
- Text — Replace any text element's content
- Images — Pass a URL to swap image elements
- Styles — Override colors, fonts, sizes using Dynamic Parameters
- Videos — Pass a URL to replace video elements
To see all available parameters for a template, open the Template Playground in your dashboard. It lists every parameter with its ID and type.
Ready to automate?
Start rendering images, PDFs and videos from your templates in under 2 minutes. Free plan, no credit card.
Get your API key- Image, PDF and video generation via API
- Visual editor with AI and smart layouts
- Zapier, Make, MCP and 50+ integrations
- White-label embed for your own app
- 60 free renders — no credit card required