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#
| Format | Best For |
|---|---|
png | Graphics with transparency (default) |
webp | Smaller file size, modern browsers |
jpg | Photos, smaller file size |
jpeg | Same as jpg |
avif | Best compression, modern browsers |
Document Formats#
| Format | Best For |
|---|---|
pdf | Certificates, invoices, print materials |
Video Formats#
| Format | Best For |
|---|---|
mp4 | Social media, general purpose |
webm | Web-optimized video |
mov | QuickTime / professional editing |
mkv | Matroska, flexible archival format |
gif | Short loops, thumbnails |
Any template can render as a video format. Without video layers, the clip
runs for the length of its animations, or 2 seconds when nothing moves.
Set videoOptions.duration to choose the length yourself. See
Video Generation for details.
Example#
const response = await orshot.renderFromStudioTemplate({
templateId: 12345,
modifications: {
title: "Hello World",
},
response: {
type: "url",
format: "webp", // [!code highlight]
},
});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 40+ integrations
- White-label embed for your own app
- 100 free credits a month, no credit card required