Skip to main content

generate_image_signed_url

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

template_id
str
required
The template ID (e.g., ‘tpl_xxxxxxxxx’)
modifications
list
Array of modifications to apply to the template
format
str
default:"png"
Output format: ‘png’, ‘jpeg’, or ‘webp’
thumbnail
bool
default:"False"
Generate thumbnail version
nocache
bool
default:"False"
Bypass cache and generate fresh image

Returns

Returns a signed URL string.

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

Flask/Django Integration

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