Skip to main content

generateImageSignedUrl

Generate a signed URL that can be used to generate images on-demand without making API calls. Perfect for dynamic content in emails, web pages, and more.

Parameters

templateId
string
required
The template ID (e.g., ‘tpl_xxxxxxxxx’)
options
array
Optional configuration

Returns

Returns a signed URL string that can be used directly in HTML or shared.

Examples

Basic Signed URL

With Modifications

WebP Format

Bypass Cache

Use Cases

Email Campaigns

Generate personalized images in emails:

Dynamic Open Graph Images

Generate OG images for social media sharing:

Real-time Analytics Badges

User Profile Cards

Benefits

  1. No API Calls - Images are generated only when accessed
  2. CDN Caching - Subsequent requests are served from cache
  3. Security - URLs are signed and can’t be tampered with
  4. Flexibility - Perfect for emails, OG images, and dynamic content
  5. Cost Effective - Only generates when actually viewed