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.
Always reference a parameter by its id — that is the stable key the API
applies. The type shown in a parameter's schema is informational and is
normalized to its canonical form (e.g. image → imageUrl, a rectangle/circle
shape → fill, a line/arrow shape → color), so don't branch your
integration on the type string.
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
- 30 free credits — no credit card required