How do I receive the rendered file?

Three options: a hosted URL, a Base64 string, or raw binary. URL is the default and the cheapest to handle.

Updated

The responseType (or response.type in the Studio API) controls how Orshot delivers the rendered output back to you.

Available Types#

TypeReturnsBest For
urlA hosted URL to the fileWeb apps, sharing links, storing references
base64Base64-encoded stringEmbedding in emails, inline display
binaryRaw file binary dataDirect file downloads, saving to disk

Example#

JavaScript
const response = await orshot.renderFromTemplate({
  templateId: "your-template-id",
  responseType: "url", // [!code highlight]
  responseFormat: "png",
  modifications: {
    title: "Hello World",
  },
});

// responseType: "url" returns:
// { content: "https://storage.orshot.com/renders/abc123.png" }

// responseType: "base64" returns:
// { content: "data:image/png;base64,iVBORw0KGgo..." }

// responseType: "binary" returns the raw file data
Was this page helpful?

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