v4
latestOpenAPI 3.0.22026-08-02109239415.7 KBgenerate
Generate a design from a text prompt with text detection and correction
Generates a design synchronously from a text prompt using the Ideogram 3.0 model, then detects and corrects text layers within the generated image.
The response includes the generated image URL along with detected text layers (with font, size, color, position) and image asset layers.
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/generate-design
Request body
Example request
{
"prompt": "A birthday card saying 'Happy Birthday'",
"seed": 12345,
"resolution": "1280x800",
"magic_prompt": "ON",
"negative_prompt": "brush strokes, painting",
"color_palette": {
"name": "PASTEL"
},
"style_codes": [
"AAFF5733",
"0133FF57",
"DE3357FF"
],
"style_type": "GENERAL",
"style_preset": "BRIGHT_ART",
"custom_model_uri": "model/my-custom-model/version/1",
"font_name_h1": "Ubuntu-Bold.ttf"
}Response
Design(s) generated 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"
}