Generate Dynamic and Personalized Images with Query Strings with APITemplate.io Direct URL

Effortlessly create dynamic, personalized images by embedding customizable URLs with query strings into your emails or web pages.

APITemplate.io’s Direct URL feature enables real-time image generation without the need for an API key, enhancing user engagement across platforms like Mailchimp, ConvertKit, and Webflow.

Get started for FREE, upgrade as you grow

Trusted by Companies, Developers and Builders

  • The Wheelchair Football Association
  • Askreferral.io
  • Ukart.io
  • simplehuman
  • Elation Factory
  • Factored Quality
  • iCulture.nl
  • @kwfricke
  • Oxford Scholastica Academy
  • Fin Match
A generated banner image alongside the query-string URL that produced it

Create personalized images on the fly via a URL and a reusable image template.

Discover the power of dynamic image personalization with API Template’s Direct URL integration. This feature allows you to generate custom images on the fly by leveraging query string parameters. Perfect for email campaigns, web pages, or personalized marketing materials, this integration enables you to create unique visuals tailored to your audience—all with a simple URL.

A dynamic personalized image can be used for

  • A happy birthday email contains a photo of the recipient and a message
  • A greeting card contains the name of the recipient
  • A welcome email with the recipient’s first name
  • Product recommendations with a dynamic QR Code, barcode, or even chart
  • An image showing the recipient’s photo
  • etc

Our personalized images work with Mailchimp, ConvertKit, Webflow and other email marketing services. You can use our Direct URL to generate personalized images for your mail campaigns.

API for Image Generation

Auto-generate banners, social images, QR codes in seconds

  • Generate images from reusable templates
  • Integrate with Zapier, Airtable, Make.com, n8n, UiPath, or REST API
  • Easy-to-use drag and drop editor
  • No HTML or CSS knowledge required
  • Auto-Position to create responsive image
  • Smart Crop to find a good crop for your image
  • Templates for Facebook posts, Instagram posts, Pinterest, and other social media
  • Add text to image or add a caption to images/photos via API
  • Support dynamic components such as QR code and rating
  • Preview instantly
  • Infographics and banner generation

Image Generation API - Learn More

A generated marketing banner with a yellow background, headline and product image

Frequently Asked Questions

What is a Direct URL?

A Direct URL is an image link that generates the image when it loads. It holds your image template’s ID, an auth code, and query string parameters that set the template’s text, images and other properties. Use it anywhere an image URL works, and change the parameters to get a different image.

Do I need an API key to use a Direct URL?

No. A Direct URL carries an auth code instead of your API key, so the key never appears in a page or an email. Create the code in the Direct URL tab of the Image Template Editor. Anyone who can see the URL can see the code too, so set a quota and an expiry date on each key to limit what it can generate.

How do I build the query string?

Each parameter is an element name and a property, then the value. For example, headline.text=Summer+Sale changes the text of an element named headline, and background.src followed by an image address swaps the picture in an element named background. The Integrations tab of the Image Template Editor lists your element names, and the Direct URL tab has a tool that builds the whole URL for you. Encode the values for a URL, so a space becomes +.

Can I add personalized images to Mailchimp emails?

Yes. Add the Direct URL to your email template as an image, with a merge tag as a parameter value, for example text_name.text=Hello+*|FNAME|*. Each recipient’s image is generated with their own name when they open the email. Our Mailchimp tutorial walks through it, and the same approach works in ConvertKit and other email tools whose merge tags can go in an image address.

Can I use a Direct URL for Open Graph images?

Yes. Put the Direct URL in a page’s og:image meta tag, with the page title as a parameter, and every page gets its own preview image when it’s shared on social media. It works on WordPress, Webflow and any other site where you can edit the meta tags.

Is the image generated again every time the URL loads?

No. Generated images are cached on APITemplate.io’s servers, and a new one is made only when the query string changes or you update the template. Loading the same URL again serves the cached copy, which keeps your usage down, since each generation uses one credit from your plan.

Can a Direct URL generate PDFs?

No, Direct URL works with image templates. To generate PDFs, call the REST API, or connect your apps through Zapier or Make.com with no code.

Customer Reviews

Trusted by businesses worldwide to generate millions of PDFs and images reliably. See what our customers have to say.