· Image Automation API Team · Tutorials

How to Automate Shopify Product Images with an Image Automation API

Generate consistent, branded product images for thousands of Shopify SKUs automatically. A practical guide to product photography automation via API.

Product photography automation is one of the highest-volume search topics in the image automation space, and for good reason. A Shopify store with a few hundred SKUs and seasonal promotions can need thousands of unique images per year. Producing those by hand in a design tool does not scale.

This guide covers how to automate Shopify product image generation using Image Automation API, so every product card, sale banner, and social post is generated programmatically from a template.

The Problem with Manual Product Images

Most Shopify stores hit the same wall. The raw product photo exists, but it needs to become:

  • A branded product card with price and title for the storefront.

  • A sale variant with a discount badge during promotions.

  • Multiple social formats for Instagram, Pinterest, and Facebook.

  • Seasonal versions for holidays and campaigns.

Multiply that by the number of products and the design queue becomes the bottleneck for every launch.

The Template-Based Approach

Instead of designing each image, you design one template per format and let the API fill in the variable parts. The product photo, title, price, and any badges become dynamic layers populated from your Shopify catalog data.

Design once, generate thousands. When you rebrand, you update the template and regenerate every image, rather than editing each one.

Step 1: Pull Your Shopify Product Data

Shopify exposes product data through its Admin API and through webhooks. You have two common options:

  • Pull the full catalog via the Admin API for a one-time batch generation.

  • Subscribe to product create and update webhooks to generate images automatically as the catalog changes.

Each product record gives you the photo URL, title, price, and any custom metafields you want to surface on the image.

Step 2: Design the Product Card Template

In Image Automation API, create a template sized for your storefront cards. Add layers for:

  • A product_image layer that accepts a dynamic image URL.

  • A product_title text layer.

  • A price text layer.

  • An optional badge layer for Sale or New tags.

Step 3: Generate Images via the API

For each product, call the render endpoint with the product data mapped to your template layers:

POST https://api.templated.io/v1/render { "template": "product_card_template_id", "layers": { "product_image": { "image_url": "{{product.image}}" }, "product_title": { "text": "{{product.title}}" }, "price": { "text": "{{product.price}}" } } }

The API composites the product photo into your branded layout and returns a finished image URL. Loop over your catalog and you have the full set in minutes.

Step 4: Push Images Back to Shopify

Once generated, use the Shopify Admin API to attach the new images to the product, or store the URLs in a metafield your theme reads from. For social formats, push the URLs to your scheduling tool or post directly.

No-Code Alternative

If you would rather avoid writing code, the same flow runs through Make.com or Zapier. Use the Shopify trigger, add the Image Automation API HTTP call, and route the result back to Shopify or to your social scheduler. The logic is identical, just visual instead of scripted.

Scaling to Thousands of Products

For large catalogs, generate in batches and cache the results. There is no need to re-render an image unless the product data or template changes. Storing the rendered URL alongside a hash of the inputs lets you skip unchanged products on subsequent runs, keeping API usage efficient.

Wrapping Up

Automating Shopify product images turns a recurring design bottleneck into a background process. Set up the template and the integration once, and every new product or promotion produces its images automatically.

Create a free Image Automation API account, design your first product card template, and connect it to your Shopify catalog to see it work end to end.

Back to Blog