What response formats are supported?

PNG, JPEG, WebP and AVIF for images, PDF for documents, and MP4, WebM, MOV, MKV or GIF for video.

Updated

The responseFormat (or response.format in the Studio API) sets the file type of your rendered output.

Image Formats#

FormatBest For
pngGraphics with transparency (default)
webpSmaller file size, modern browsers
jpgPhotos, smaller file size
jpegSame as jpg
avifBest compression, modern browsers

Document Formats#

FormatBest For
pdfCertificates, invoices, print materials

Video Formats#

FormatBest For
mp4Social media, general purpose
webmWeb-optimized video
movQuickTime / professional editing
mkvMatroska, flexible archival format
gifShort loops, thumbnails

Example#

JavaScript
const response = await orshot.renderFromTemplate({
  templateId: "your-template-id",
  responseType: "url",
  responseFormat: "webp", // [!code highlight]
  modifications: {
    title: "Hello World",
  },
});
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