Marketing Automation Tutorial

Dynamic Text Overlays & Templates

Learn how to programmatically generate banners with data-driven text overlays and QR codes. Perfect for marketing automation platforms (Make.com, n8n, ActiveCampaign) doing personalized outbound campaigns.

Why Use the Templates API?

When scaling marketing campaigns, statically rendering hundreds of banners manually is impossible. The Templates API allows you to take any base image (AI-generated or uploaded), and overlay dynamic text (like names, discount codes, or headlines) and unique QR codes on the fly.

  • Zero-Latency Processing: Text and QR composition occurs in memory with single-digit millisecond overhead.
  • Dynamic QR Codes: Generate personalized QR codes for ticket sales or abandoned cart emails instantly.
  • Marketing Automation Ready: Easily integrates with Webhooks for Make.com and n8n pipelines.

API Implementation

Send a POST request to /api/templates/render to generate a personalized banner.

curl -X POST https://api.creativeai.run/api/templates/render \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "background_image_url": "https://example.com/base-banner.jpg",
    "texts": [
      {
        "text": "Hey Dylan, here is 50% off!",
        "x": 100,
        "y": 200,
        "font_size": 48,
        "color": "#FFFFFF"
      },
      {
        "text": "USE CODE: VIP2026",
        "x": 100,
        "y": 280,
        "font_size": 32,
        "color": "#FFD700"
      }
    ],
    "qr_code": {
      "data": "https://creativeai.run/vip/dylan",
      "x": 800,
      "y": 150,
      "size": 200
    },
    "webhook_url": "https://hook.us1.make.com/your-webhook-id"
  }'

The API returns an async Job ID. Once rendered, the system pushes the final output_url to your Webhook instantly.

Ready to Automate Your Marketing?

Get your API key and start generating personalized banners at scale. For Enterprise B2B deals, reach out for dedicated account management.