Skip to content
API guiden8n

n8n

Generate images from an n8n workflow. Call the imejis render API with an HTTP Request node and map your data to a design's fields, no code required.

n8n

Render an image from any n8n workflow with a single HTTP Request node. No custom code, and no webhook to wait on: the node gets the finished image back in its own response.

HTTP request node settings

FieldValue
MethodPOST
URLhttps://render.imejis.io/v1/YOUR_DESIGN_ID
Headerdma-api-key: YOUR_API_KEY
Body Content TypeJSON
Response FormatFile (saves the binary image)

Send the fields you want to change as component.property pairs in the JSON body, using n8n expressions to map in your data:

Body (JSON)
{
  "headline.text": "{{ $json.title }}",
  "subtitle.text": "{{ $json.subtitle }}"
}

Wire the node to any trigger (a new row, a webhook, a schedule) and the image comes back on the node's output, ready to send to email, Slack, or storage.

Want a URL instead of a file? Add ?delivery=hosted to the URL and the node gets JSON back, { "url": …, "format": …, "file": { "size": … } }, with a public image URL instead of a binary file. Set Response Format to JSON and use {{ $json.url }} downstream. ?delivery=signed does the same with a private, expiring URL.

The response is the raw image (`image/jpeg` by default). Choose the format with `?format=png|jpeg|webp|pdf` (default jpeg) and set JPEG quality with `?quality=1-100`. Store the result and get a URL back with `?delivery=hosted` (or `?delivery=signed&expiresIn=60`), and render a specific size of a multi-size design with `?variation=<id>`.

ParameterValuesDefaultWhat it does
?format=png · jpeg · webp · pdfjpegOutput image format.
?quality=1–100noneCompression quality for lossy output; ignored for other formats. (JPEG only)
?delivery=stream · hosted · signedstreamstream = raw image bytes (default); hosted = store + return a public URL; signed = store + return a time-limited URL.
?expiresIn=minutes60Signed-URL lifetime in minutes (default 60, max 10080 = 7 days). (delivery=signed only)
?variation=<size id>masterWhich multi-dimension SIZE to render. Omit or use "master" for the base size; an unknown id falls back to the master. (multi-size designs only)
  • PNG (?format=png): Lossless, supports transparency. Largest file.
  • JPEG (?format=jpeg): Smaller, lossy, no transparency. Quality adjustable.
  • WebP (?format=webp): Smallest, supports transparency. Modern browsers.
  • PDF (?format=pdf): Vector page, for print and documents.

See the delivery modes and generate images with the API guides.

For a full walkthrough with ready-made workflows, see 10 n8n image automation workflows and the integrations overview. Prefer to skip the workflow builder entirely? An AI agent can drive the same API over MCP.

Frequently asked questions

Do I need to write code to generate images from n8n?

No. A single HTTP Request node sends your data to the render API and gets the finished image back. You map fields from earlier steps into the JSON body; there is no script to write or server to host.

Which image formats can n8n get back?

JPEG by default, plus PNG, WebP and PDF. Add ?format=png, ?format=webp or ?format=pdf to the render URL; ?quality= (1 to 100) applies to JPEG only. PNG and WebP keep transparency.

How do I find the field names to send?

Open the design in the editor and check its Share / API panel, which lists every field you can override. Send them as component.property pairs, such as headline.text or photo.image; anything you leave out keeps its designed value.

Does each run count against my render quota?

Yes. Every image the API generates counts as one render, whatever the format, and a hosted or signed URL counts once too. See how pricing and render quota work for the allowances on each plan.

Does this work on self-hosted n8n?

Yes. The HTTP Request node is built into every n8n edition, cloud or self-hosted, and the render API is a plain HTTPS endpoint. Nothing extra needs to be installed on your instance.