ComfyUI Node
Ideogram 4 Magic Prompt
Generate an Ideogram 4 magic prompt JSON string from text. Get a free API key at https://ideogram.ai/manage-api, click Generate API key, and paste it into the api_key field. The request is sent to Ideogram's free Magic Prompt API and the returned json_prompt is output as JSON.
Ideogram 4 Magic Prompt
- magic_prompt_json
- aspect_ratio
◄api_key►
◄prompt►
◄aspect_ratioAUTO►
◄seed0►
CategoryIdeogram
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | Get a free key at https://ideogram.ai/manage-api, click Generate API key, then paste it here. | |
| prompt | STRING | Text prompt to enhance with Ideogram 4 Magic Prompt. | |
| aspect_ratio | COMBO | AUTO | AUTO lets Ideogram choose. Other values are the exact Ideogram 4 aspect ratios. |
| seed | INT | 00–2147483647 | Cache buster only. Change this to rerun the same prompt for a different Magic Prompt output if the result is not to your liking. Not sent to Ideogram and not for reproducible results. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| magic_prompt_json | STRING | The free Ideogram Magic Prompt API json_prompt response as formatted JSON. |
| aspect_ratio | COMBO | Resolved Ideogram 4 aspect ratio. Plug this into the Ideogram 4 Resolution Selector aspect_ratio input. |