v4
latestOpenAPI 3.0.22026-08-02109239415.7 KBgenerate
Layerize an existing flat graphic image with text detection and correction
Processes an existing flat graphic image to detect and correct text layers without generating a new image from scratch.
The uploaded image is analyzed for text content, which is then removed and returned as structured text layers with font matching, sizing, and color information.
Supported image formats include JPEG, PNG, and WebP (max size 10MB).
Images links are available for a limited period of time; if you would like to keep the image, you must download it.
post/v1/ideogram-v3/layerize-design
Response
Design layerized successfully with text correction.
Example response
{
"data": [
{
"text_containers": [
{
"id": "id",
"items": [
{
"font_candidates": [
"font_candidates",
"font_candidates"
],
"spans": [
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
},
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
}
],
"text_shadows": [
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
},
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
}
],
"font_size": 5,
"vertical_alignment": "top",
"text_transform": "none",
"glyph_type": "bullet",
"line_height": 2.302136,
"x": 0,
"width": 1,
"style_class": "body",
"y": 6,
"angle": 0,
"alignment": "center",
"font_file": "font_file",
"letter_spacing": 7.0614014,
"height": 5
},
{
"font_candidates": [
"font_candidates",
"font_candidates"
],
"spans": [
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
},
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
}
],
"text_shadows": [
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
},
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
}
],
"font_size": 5,
"vertical_alignment": "top",
"text_transform": "none",
"glyph_type": "bullet",
"line_height": 2.302136,
"x": 0,
"width": 1,
"style_class": "body",
"y": 6,
"angle": 0,
"alignment": "center",
"font_file": "font_file",
"letter_spacing": 7.0614014,
"height": 5
}
]
},
{
"id": "id",
"items": [
{
"font_candidates": [
"font_candidates",
"font_candidates"
],
"spans": [
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
},
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
}
],
"text_shadows": [
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
},
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
}
],
"font_size": 5,
"vertical_alignment": "top",
"text_transform": "none",
"glyph_type": "bullet",
"line_height": 2.302136,
"x": 0,
"width": 1,
"style_class": "body",
"y": 6,
"angle": 0,
"alignment": "center",
"font_file": "font_file",
"letter_spacing": 7.0614014,
"height": 5
},
{
"font_candidates": [
"font_candidates",
"font_candidates"
],
"spans": [
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
},
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
}
],
"text_shadows": [
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
},
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
}
],
"font_size": 5,
"vertical_alignment": "top",
"text_transform": "none",
"glyph_type": "bullet",
"line_height": 2.302136,
"x": 0,
"width": 1,
"style_class": "body",
"y": 6,
"angle": 0,
"alignment": "center",
"font_file": "font_file",
"letter_spacing": 7.0614014,
"height": 5
}
]
}
],
"image_layers": [
{
"ref_id": "REF_0",
"x": 4,
"width": 1,
"y": 7,
"height": 1
},
{
"ref_id": "REF_0",
"x": 4,
"width": 1,
"y": 7,
"height": 1
}
],
"url": "https://openapi-generator.tech",
"text_html": "text_html"
},
{
"text_containers": [
{
"id": "id",
"items": [
{
"font_candidates": [
"font_candidates",
"font_candidates"
],
"spans": [
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
},
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
}
],
"text_shadows": [
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
},
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
}
],
"font_size": 5,
"vertical_alignment": "top",
"text_transform": "none",
"glyph_type": "bullet",
"line_height": 2.302136,
"x": 0,
"width": 1,
"style_class": "body",
"y": 6,
"angle": 0,
"alignment": "center",
"font_file": "font_file",
"letter_spacing": 7.0614014,
"height": 5
},
{
"font_candidates": [
"font_candidates",
"font_candidates"
],
"spans": [
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
},
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
}
],
"text_shadows": [
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
},
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
}
],
"font_size": 5,
"vertical_alignment": "top",
"text_transform": "none",
"glyph_type": "bullet",
"line_height": 2.302136,
"x": 0,
"width": 1,
"style_class": "body",
"y": 6,
"angle": 0,
"alignment": "center",
"font_file": "font_file",
"letter_spacing": 7.0614014,
"height": 5
}
]
},
{
"id": "id",
"items": [
{
"font_candidates": [
"font_candidates",
"font_candidates"
],
"spans": [
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
},
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
}
],
"text_shadows": [
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
},
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
}
],
"font_size": 5,
"vertical_alignment": "top",
"text_transform": "none",
"glyph_type": "bullet",
"line_height": 2.302136,
"x": 0,
"width": 1,
"style_class": "body",
"y": 6,
"angle": 0,
"alignment": "center",
"font_file": "font_file",
"letter_spacing": 7.0614014,
"height": 5
},
{
"font_candidates": [
"font_candidates",
"font_candidates"
],
"spans": [
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
},
{
"color": "#212121",
"text": "text",
"font_fx": [
"bold",
"italic"
]
}
],
"text_shadows": [
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
},
{
"color": "color",
"blur": 0.2027123,
"offset_x": 9.301444,
"offset_y": 3.6160767
}
],
"font_size": 5,
"vertical_alignment": "top",
"text_transform": "none",
"glyph_type": "bullet",
"line_height": 2.302136,
"x": 0,
"width": 1,
"style_class": "body",
"y": 6,
"angle": 0,
"alignment": "center",
"font_file": "font_file",
"letter_spacing": 7.0614014,
"height": 5
}
]
}
],
"image_layers": [
{
"ref_id": "REF_0",
"x": 4,
"width": 1,
"y": 7,
"height": 1
},
{
"ref_id": "REF_0",
"x": 4,
"width": 1,
"y": 7,
"height": 1
}
],
"url": "https://openapi-generator.tech",
"text_html": "text_html"
}
],
"created": "2000-01-23T04:56:07+00:00",
"response_type": "layered"
}