Generate Images in n8n from a Template

Here's the fastest way to generate images in n8n from a template: add one HTTP Request node, point it at an imejis design, and pass your data as fields. The render API returns a finished image, on-brand every time, because the layout is fixed and only the data changes. No design work inside n8n, no AI-prompt lottery, no second service to host the result.
Most people don't run this once by hand. They run it on a schedule, as one step inside a real posting pipeline:
imejis owns exactly one box in that chain, the image step. n8n runs the schedule, reads your content plan, and hands the finished post to whatever publishes it.
What you'll build
A daily n8n workflow that wakes up on a schedule, pulls the next post from your content plan, builds a branded image from a fixed template, and hands the image URL to your scheduler to publish. Five nodes, and only one of them is imejis. Here it is running on a real n8n canvas:

You'll reuse the same shape for social cards, certificates, price tags, or open-graph images. Swap the design, keep the flow.
Prerequisites
- A running n8n instance (self-hosted or cloud). The HTTP Request node is built in, so there's nothing to install.
- An imejis account and a render API key. You'll send it as the
dma-api-keyheader. - One imejis design with at least one field marked dynamic. That field is what you'll override per render.
- Somewhere your planned posts live: a Google Sheet, an Airtable base, a CMS, or any API n8n can read. The pipeline pulls the next row from it.
You don't need a plugin or a community node. The imejis side is one standard HTTP call.
How to generate images in n8n from a template
Five nodes, left to right. Only the fourth one is imejis; the rest is your normal posting flow.
Step 1: Trigger it on a schedule
Start with a Schedule Trigger set to the time you post, or a Webhook if something else kicks it off. For a daily graphic, "every morning at 9" is the whole configuration. This is the node that makes the pipeline run without you.
Step 2: Pull the next planned post
Read the next item from wherever you plan content. A Google Sheets or Airtable node fetches a row; an HTTP Request node hits your CMS. Either way the output is one post: its headline, its subtitle, the campaign it belongs to. That data is what the template will render.
Step 3: Build the image fields
Add an Edit Fields (Set) node to map the post onto the template's field keys. The post calls it headline; the design's dynamic component is title.text. This node is where that translation happens, and where you'd branch on the kind of post, picking a different headline or template per campaign.
Step 4: Render the image with imejis
This is the one imejis node. Set the method to POST and the URL to your design's render endpoint. The design id is the short code from the design's render config.
POST https://render.imejis.io/v1/YOUR_DESIGN_ID?delivery=hosted
Content-Type: application/json
dma-api-key: YOUR_RENDER_KEY
{
"title.text": "{{ $json.headline }}",
"subtitle.text": "{{ $json.subtitle }}"
}Two details matter here. Authenticate with the dma-api-key header, not a bearer token, because the render endpoint reads only that key. And put delivery=hosted on the query string, not in the JSON body. The body is only field overrides, so a delivery key there is ignored and you get raw image bytes back instead of a URL. With ?delivery=hosted the node gets a durable link for the next step.

In the body, map the fields you built in Step 3 onto the design's dynamic components:

With delivery=hosted, the response is JSON that carries a permanent URL: { "success": true, "delivery": "hosted", "url": "https://....jpg" }. The next node reads it as {{ $json.url }}. That URL is your finished image, generated fresh from the template and your data.
To smoke-test a single field before you wire up the body, a plain GET with dot-path query params is the quickest check:
GET https://render.imejis.io/v1/YOUR_DESIGN_ID?title.text=Launch%20Day
dma-api-key: YOUR_RENDER_KEYOmit delivery and the response is the image itself, so you see the field change immediately. Add &delivery=hosted back once you want the URL.
Step 5: Publish the post
Hand the URL to whatever comes next: an email node, a storage node, or a social scheduler like Postiz or Mixpost. imejis renders the picture; the downstream node does the posting. We'd recommend testing the full chain once end to end before you schedule it, so a bad field surfaces now rather than at 9am.
Stream, hosted, or signed: which URL to use
The render call can return the image three ways. For an n8n workflow that posts later, the choice is what keeps the image from vanishing before publish.
| Delivery | What you get | Use it in n8n when |
|---|---|---|
stream | Raw image bytes | You store or email the file in the same run |
hosted | A permanent public URL | A later node or a scheduler fetches it after a delay |
signed | A time-limited URL | The image is private and consumed within the hour |
Most posting workflows want hosted, because the publish step runs minutes or hours after the render. A signed URL can expire first, and that's the usual cause of a broken image in the post.
Or skip the wiring: automate it with MCP
Don't want to build nodes by hand at all? imejis ships an MCP server, so an AI agent can do the imejis side for you. In Claude, Cursor, or any MCP client, the agent creates the design, marks the fields dynamic, and renders the image on request, then returns the URL. You describe the card once in plain language, and the agent builds it and renders it.
For a fully hands-off pipeline, pair the imejis MCP with your scheduler's own MCP. Postiz ships one, so an agent can generate the image through imejis and let the scheduler publish it, with no workflow to maintain. n8n and MCP aren't an either-or choice. Reach for n8n when you want a fixed, visual workflow you can see, and MCP when you'd rather an agent assemble the whole thing on demand. See generating images with Claude over MCP and the agent connect hub to set it up.
Common issues and fixes
- 401 from the render call. You sent a bearer token. The render endpoint only accepts
dma-api-key. Move the key into that header. - The field didn't change. You addressed a field that isn't marked dynamic, or used the wrong key. Only dynamic components are overridable, and the key is the snake_case handle from the design, not the layer's display name.
- Broken image in the published post. The URL expired before the post went out. Switch from
signedtohosted. - You want many images at once. Don't loop a thousand single calls if you can avoid it. The bulk export tool returns up to 25 renders per call for batches.
Next steps
Once the core node works, the pattern scales in every direction. For ten ready-made n8n recipes built on this same call, see the copy-paste workflows guide. For wiring Google Sheets, Airtable, or webhooks as the data source, see the n8n image automation guide and the n8n integration page. When you're ready to design the template itself, the image generation API docs cover the field model, and pricing has the free render allowance. The official n8n HTTP Request documentation covers auth and expressions if you're new to the node.