# Layerize Text API

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/features/text-layers/api/
Source observed: 2026-12-03T22:03:17.653Z
Last checked: 2026-12-03T22:03:17.653+00:00
Indexed: 2026-12-03T22:31:30.175+00:00

---

# Layerize Text API

We extract editable text layers from any image. Upload a poster, marketing asset, branded design, photo, screenshot, generated design, or other artwork with visible text, and we return a clean base image with detected text removed.

## Overview

Our endpoint handles detection and removal in one call:

1. Upload an image.
2. Get a text-free base image.
3. Overlay your own text.

## Endpoint reference

| Endpoint | Method | Description |
|---|---|---|
| `/v1/ideogram-v3/layerize-text` | `POST` | Extract text layers from an image |

### Request

Send the image as `multipart/form-data`.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `image` | binary | Yes | Image to analyze. JPEG, PNG, or WebP; maximum 10 MB. |
| `prompt` | string | No | Image description that improves detection accuracy. We auto-generate it if omitted. |
| `seed` | integer | No | Random seed for reproducible results. |

### Response

| Field | Type | Description |
|---|---|---|
| `base_image_url` | string | URL of the image with all detected text removed. |
| `original_image_url` | string \| null | URL of the original image with text intact. |
| `seed` | integer | Seed used for the layerization. |

## Layerize an image

Accepted formats are JPEG, PNG, and WebP. The maximum size is **10 MB per image**.

```python
import requests

# Upload your image directly
with open("poster.png", "rb") as f:
  response = requests.post(
    "https://ideogram.toolspoint.net/__api__/v1/ideogram-v3/layerize-text",
    headers={"Api-Key": "<apiKey>"},
    files={"image": ("poster.png", f, "image/png")},
    data={"prompt": "A concert poster with event details"}
  )

layers = response.json()
print(f"Base image (text removed): {layers['base_image_url']}")
```

## Use the output

The response includes a base image with text removed and the original image for reference. Use the base as a background and overlay text in any font, size, or language. This supports localization, A/B testing copy, and repurposing designs across campaigns.

```python
# Example response
{
  "base_image_url": "https://ideogram.toolspoint.net/assets/image/...",
  "original_image_url": "https://ideogram.toolspoint.net/assets/image/...",
  "seed": 42
}

# Download the base image for compositing
base_img = requests.get(layers["base_image_url"]).content
with open("base_no_text.png", "wb") as f:
  f.write(base_img)

# Now overlay your own text using Pillow, Cairo, or any compositing tool
```

## Combine with Generate

Generate a design first, then layerize it when you want us to handle visual design while you swap the copy afterward.

```python
# Generate a design
gen = requests.post(
  "https://ideogram.toolspoint.net/__api__/v1/ideogram-v3/generate",
  headers={"Api-Key": "<apiKey>"},
  data={
    "prompt": "A travel poster with the text 'Visit Tokyo'",
    "aspect_ratio": "2:3"
  }
).json()

# Download and layerize
img_data = requests.get(gen["data"][0]["url"]).content
layers = requests.post(
  "https://ideogram.toolspoint.net/__api__/v1/ideogram-v3/layerize-text",
  headers={"Api-Key": "<apiKey>"},
  files={"image": ("design.png", img_data, "image/png")}
).json()

# base_image_url now has the design without text
print(layers["base_image_url"])
```

## Tips

- **Works on any image with text:** uploaded photos, screenshots, branded assets, and AI-generated designs do not need to come from Ideogram.
- **Pass a prompt:** a short image description helps distinguish text from visual elements and improves detection accuracy.
- **Set a seed:** the same image plus seed produces the same output.
- **Use for localization:** layerize once, then overlay translated copy in any language without regenerating the design.

## Get started

[Get an API key](https://ideogram.toolspoint.net/platform?intent=api&source=text-layers-api-api-choice) to create a key yourself and pay only for what you generate. Or [talk to an expert](https://ideogram.toolspoint.net/enterprise/?from=text-layers-api); we can train a model on your data and build the workflow with you.

---

[Read this page’s summary](https://ideogram.toolspoint.net/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fideogram.ai%2Ffeatures%2Ftext-layers%2Fapi%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%2Ffeatures%2Ftext-layers%2Fapi%2F). Opening a form does not execute a tool.