The responseType parameter defines the type of output for the rendered content. Available options differ based on the selected template; however, the general available options are:
url: Returns a URL where the rendered output is stored on Orshot.base64: Returns a string containing the base64-encoded version of the rendered content.binary: Returns the binary content of the file, allowing users to transform and use it as needed.responseFormat.const response = await Orshot.renderFromTemplate({
templateId: "website-screenshot",
responseType: "url", // [!code highlight]
responseFormat: "webp",
modifications: {
testimonialText:
"Pika has converted me from any other screenshot tool I used before (happily)",
testimonialFontSize: 42,
rating: 3,
authorPhoto: "https://cdn.pika.style/headshots/caleb.png",
authorName: "Caleb Leigh",
authorDescription: "Head of Marketplace, Elgato",
authorMetaFontSize: 40,
width: 800,
},
});