# Connect Ideogram to n8n and save generated images

Ideogram publishes a public search API over its indexed pages; the guide is at https://ideogram.toolspoint.net/agents/agent-access.

Source: https://ideogram.toolspoint.net/blog/connect-ideogram-to-n8n/
Source observed: 2026-12-03T22:08:58.222Z
Last checked: 2026-12-03T22:08:58.222+00:00
Indexed: 2026-12-03T22:35:08.857+00:00

---

# How to Connect Ideogram to n8n and Save Generated Images

**How-to guide · Zeyad Genena · Nov 23, 2026 · Last updated: Nov 23, 2026 · 9 min read**

Use n8n’s built-in HTTP Request node to call our API, download the returned image link, and save the binary file. The workflow is:

```text
Manual Trigger → Generate image → Has image URL? → Download image → Save image to disk
```

![First three nodes after a successful run: Manual Trigger, Generate image, and Has image URL?, each with a green check and “1 item.”](https://storage.googleapis.com/ideogram-static/website/images/d24b555932b6103b.webp)

![Last two nodes after a successful run: Download image and Save image to disk, each with a green check.](https://storage.googleapis.com/ideogram-static/website/images/b71c29fe67a603ba.webp)

We built and ran this workflow in **n8n 2.48.8** on **November 23, 2026**. It generated a poster, downloaded a **5.99 MB PNG**, and saved it in about **eight seconds**. Screenshots hide the test endpoint and signed links.

## What we ran

- **Environment:** Self-hosted n8n 2.48.8 on Node.js 24, installed from npm, with n8n’s default file-access setting. Our sandbox required `N8N_EXPRESSION_ENGINE=legacy` and an open-file-limit workaround; your setup may differ.
- **API:** Ideogram 4.6 generate endpoint. Our test used a staging API with the public API request format.
- **Runs:** Two full runs succeeded. Two earlier runs generated and downloaded the image but failed to save it: one used a nonexistent folder and one violated n8n’s file-access rule. One price check ran without generating.

The generation request returns JSON containing an image link rather than the image itself. The link expires after **24 hours**, so download it immediately.

## Before you start

You need:

- An n8n instance where you can create workflows and credentials.
- An Ideogram API key. Use the [API setup guide](https://developer.ideogram.ai/ideogram-api/api-setup) to create one under Settings → API and review billing.
- An API balance. The request in this guide costs **$0.06 at medium quality**; see [API pricing](https://ideogram.toolspoint.net/pricing/?pricing_tab=api).
- A permitted n8n filesystem location or a storage service.

An API key can reach every endpoint available to its workspace and spend its balance. Store it in an n8n credential, not in a shared workflow. [Authentication](https://developer.ideogram.ai/ideogram-api/authentication) explains revocation.

## Step 1: Create the workflow and credential

1. Create a workflow and add a **Manual Trigger**.
2. Add an **HTTP Request** node after it and name it **Generate image**.
3. Set **Authentication** to **Generic Credential Type → Header Auth**, then create a credential.
4. Set **Name** to `Api-Key` and **Value** to your API key.

We read the key from the `Api-Key` header, not `Authorization: Bearer`. You can restrict the credential’s Allowed HTTP Request Domains to `ideogram.toolspoint.net/__api__`. See n8n’s [HTTP Request credentials guide](https://docs.n8n.io/integrations/builtin/credentials/httprequest/).

![Header Auth credential with Name set to Api-Key, a masked Value, and Allowed HTTP Request Domains set to All.](https://storage.googleapis.com/ideogram-static/website/images/a4a409e55cac1aae.webp)

## Step 2: Configure the image request

| Field | Value |
|---|---|
| Method | `POST` |
| URL | `https://ideogram.toolspoint.net/__api__/v2/image/generate/ideogram-4-6` |
| Authentication | Generic Credential Type → Header Auth → your credential |
| Send Body | On |
| Body Content Type | JSON |
| Specify Body | Using JSON |
| Options → Response | Leave Include Response Headers and Status off |

Enter this JSON:

```json
{
  "prompt": "A letterpress poster with the words OPEN STUDIO in bold serif type on warm paper. No other text.",
  "magic_prompt": "off",
  "quality": "medium",
  "num_images": 1
}
```

Our first successful run omitted `magic_prompt`; the model added a date, address, and invented studio name. Setting `magic_prompt` to `off` and adding “No other text” returned only the requested words. With no size set, the image was **2048 × 2048 pixels**.

Keep Include Response Headers and Status off so the response body remains at the top level for the expressions below. The [model guide](https://developer.ideogram.ai/v2/ideogram-api/models) lists other fields and models.

## Step 3: Check the price first

Add `dry_run=true` to get a quote without generating:

```text
https://ideogram.toolspoint.net/__api__/v2/image/generate/ideogram-4-6?dry_run=true
```

Run the node with the same JSON body. Our quote returned **60,000 micro-dollars**, or **$0.06**, with qualifier `exact`. Nothing is generated or billed. The quote does not check balance or limits, so the real request can still be rejected. Remove `?dry_run=true` before continuing. See [Price Quotes](https://developer.ideogram.ai/ideogram-api/price-quotes).

The returned quote included:

```json
{
  "object": "price_quote",
  "billing_identifier": "ideogram_4_6_generate",
  "quantity": 1,
  "usd_micros": 60000,
  "credit_millis": 6000,
  "qualifier": "exact"
}
```

![n8n price-check output showing object price_quote, billing_identifier ideogram_4_6_generate, quantity 1, usd_micros 60000, credit_millis 6000, and qualifier exact.](https://storage.googleapis.com/ideogram-static/website/images/0696245fbfa55bf4.webp)

## Step 4: Generate once and check the response

The response contains `generation_id` and a `data` array. Its first item includes `url`, `resolution`, `is_image_safe`, `seed`, and a structured `prompt`.

![Generate image node settings with POST, Header Auth, Send Body enabled, JSON body, and the endpoint hidden.](https://storage.googleapis.com/ideogram-static/website/images/dd9fb68d859a4942.webp)

If `is_image_safe` is false, the URL is empty. Add an IF node named **Has image URL?** and set its left value to this expression with the string condition **is not empty**:

```text
{{ $json.data?.[0]?.url || '' }}
```

Connect the true output to downloading and use the false output for your alert or review.

## Step 5: Download the image as binary data

Add an HTTP Request node to the true output and name it **Download image**.

| Field | Value |
|---|---|
| Method | `GET` |
| URL | Expression: `{{ $json.data[0].url }}` |
| Authentication | None |
| Options → Response → Response Format | File |
| Put Output in Field | `data` |

The URL is already in the previous response, so no credential is needed. Our Binary tab showed a `data` field containing a **5.99 MB PNG**. See n8n’s [HTTP Request documentation](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/).

Use this expression if entering the URL manually:

```text
{{ $json.data[0].url }}
```

## Step 6: Save the downloaded file

On self-hosted n8n, add **Read/Write Files from Disk** after Download image:

1. Choose **Write File to Disk**.
2. Set **Input Binary Field** to `data`.
3. Set **File Path and Name** inside the `.n8n-files` folder in the n8n user’s home directory. For `/home/node`, use:

```text
/home/node/.n8n-files/poster-{{ $execution.id }}.png
```

Since n8n 2.0, the file node may only write inside `~/.n8n-files` unless an administrator changes `N8N_RESTRICT_FILE_ACCESS_TO`. Our attempt to write elsewhere failed with **“Access to the file is not allowed.”** Including `$execution.id` gives each run a unique filename.

![n8n Save image to disk node with an error: “Access to the file is not allowed.”](https://storage.googleapis.com/ideogram-static/website/images/444d835f88421a32.webp)

In Docker, the path is inside the container unless you mount a folder. On n8n Cloud, disk files may not persist; send the binary `data` field to a storage service instead. See [Read/Write Files from Disk](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.readwritefile/).

![Saved demo poster with the words OPEN STUDIO in bold black serif letters on warm cream paper.](https://storage.googleapis.com/ideogram-static/website/images/acc48456a3d05b59.webp)

This is the image from our demo run, shown smaller than the original 2048-pixel file. Once one image works, replace Manual Trigger or take the prompt from an earlier node. Keep `generation_id` alongside the saved file.

## Troubleshooting

| What you see | What to check |
|---|---|
| `401` | Header name must be `Api-Key` and the value must be valid. |
| `402` | Balance is too low or a plan limit was reached; retrying does not add funds. |
| `400` | Read the error body; a field or value is unsupported. |
| `422` | Prompt failed the safety check; the request is not billed. |
| `429` | Too much work is in progress. Default concurrency is 10 images and videos at once, not 10 requests; rejected requests are not billed. |
| Empty image URL | Check `is_image_safe`. An image blocked after generation returns an empty URL and is still billed; route it to the IF false branch. |
| Link no longer works | Result links expire after 24 hours; download during the same run. |
| Timeout | Do not resend immediately. Generation continues and is billed when it completes; see [retry guidance](https://developer.ideogram.ai/v2/ideogram-api/errors). |
| “Access to the file is not allowed.” | Save inside `~/.n8n-files` or ask an administrator to change the allowed path. |

Sources: [errors and billing](https://developer.ideogram.ai/v2/ideogram-api/errors), [rate limits](https://developer.ideogram.ai/v2/ideogram-api/rate-limits), and our file-access run.

Our test covered successful generation, the price check, and the blocked save path. The error codes in the table come from our documentation; we did not trigger them during this run.

## Longer jobs: polling and webhooks

For longer work, the API can return a `generation_id` before the result is ready. Store it and check the generation endpoint until completion or failure, respecting `Retry-After`. Checking is limited to **1,000 requests per 10 seconds**.

A supported endpoint can deliver results to a public HTTPS webhook, such as an n8n Webhook node. Verify signatures against raw request bytes, make duplicate deliveries safe, and keep polling as a fallback: delivery is not guaranteed, and failed generations send nothing. See the [webhook guide](https://developer.ideogram.ai/ideogram-api/webhooks). We did not test webhooks for this guide.

For spreadsheet-based batches, see [bulk image generation](https://ideogram.toolspoint.net/blog/bulk-image-generation/).

## FAQs

### Is there an Ideogram node for n8n?

There is no built-in Ideogram node. The HTTP Request node calls our API directly. A third-party [community node](https://github.com/amdrautomate/n8n-nodes-ideogram) exists for the v2 API; it is not made by us.

### Where should I keep the API key?

Keep it in a Header Auth credential, never in workflow parameters. A key can spend its entire workspace balance. You can restrict it to `ideogram.toolspoint.net/__api__`.

### Can I save images to disk on n8n Cloud?

Not reliably. Send the binary `data` field to a storage service node instead.

### Does the endpoint accept JSON?

Yes. The Ideogram 4.6 generate endpoint accepts a JSON body and also supports multipart form when uploading a source image.

## Get an Ideogram API key

Start with the [API quickstart](https://developer.ideogram.ai/v2/ideogram-api/quickstart), then add your key to an n8n Header Auth credential.

Get started

**Article by:** [Zeyad Genena](https://www.linkedin.com/in/zeyadgenena/), technical writer for Ideogram.

---

[Read this page’s summary](https://ideogram.toolspoint.net/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fideogram.ai%2Fblog%2Fconnect-ideogram-to-n8n%2F&trace=t_380edc68d53d)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Ideogram’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://ideogram.toolspoint.net/agents/agent/faq?q={question}&trace=t_380edc68d53d`

[Tool guide and examples](https://ideogram.toolspoint.net/agents/agent-access) · [OpenAPI](https://ideogram.toolspoint.net/agents/api/public/v1/openapi.json) · [Page TLDR form](https://ideogram.toolspoint.net/agents/agent-tools/page-tldr?url=https%3A%2F%2Fideogram.ai%2Fblog%2Fconnect-ideogram-to-n8n%2F). Opening a form does not execute a tool.