Generates images synchronously based on prompt and resolution. This node connects to the Recraft API to create images from text descriptions with specified dimensions and optional style and control parameters.

## Inputs

| Parameter | Description | Data Type | Required | Range |
| --- | --- | --- | --- | --- |
| `prompt` | Prompt for the image generation. (default: "") | STRING | Yes | - |
| `size` | The size of the generated image. (default: "1024x1024") | COMBO | Yes | "1024x1024"<br>"1152x896"<br>"896x1152"<br>"1216x832"<br>"832x1216"<br>"1344x768"<br>"768x1344"<br>"1536x640"<br>"640x1536" |
| `n` | The number of images to generate. (default: 1) | INT | Yes | 1-6 |
| `seed` | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed. (default: 0) | INT | Yes | 0-18446744073709551615 |
| `recraft_style` | Optional style selection for image generation. When not provided, defaults to "realistic_image" style. | RECRAFT_STYLE | No | Multiple options available |
| `negative_prompt` | An optional text description of undesired elements on an image. (default: "") | STRING | No | - |
| `recraft_controls` | Optional additional controls over the generation via the Recraft Controls node. | RECRAFT_CONTROLS | No | Multiple options available |

**Note:** The `seed` parameter only controls when the node re-runs but does not make the image generation deterministic. The actual output images will vary even with the same seed value.

**Note:** The `prompt` parameter must be between 1 and 1000 characters in length.

**Note:** If you use a `style_id` from the Infinite Style Library, ensure it is not a Vector art style, as this will return SVG data instead of an image and cause an error.

## Outputs

| Output Name | Description | Data Type |
| --- | --- | --- |
| `IMAGE` | The generated image(s) as a batched tensor output. When multiple images are generated (n > 1), they are concatenated along the batch dimension. | IMAGE |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/RecraftTextToImageNode/en.md)

---
**Source fingerprint (SHA-256):** `946010fbb6a5b99eed11e74de0733f64a270fa62910acf942749c76e0b5448f3`
