# Recraft V4 Text to Image Node

This node generates images from text descriptions using the Recraft V4 or V4 Pro AI models. It sends your prompt to an external API and returns the generated images. You can control the output by specifying the model, image size, and number of images to create.

## Inputs

| Parameter | Description | Data Type | Required | Range |
|-----------|-------------|-----------|----------|-------|
| `prompt` | Prompt for the image generation. Maximum 10,000 characters. | STRING | Yes | N/A |
| `negative_prompt` | An optional text description of undesired elements on an image. | STRING | No | N/A |
| `model` | The model to use for generation. Selecting a model determines the available image sizes. | COMBO | Yes | `"recraftv4"`<br>`"recraftv4_pro"` |
| `size` | The size of the generated image. The available options depend on the selected model. For `recraftv4`, the default is "1024x1024". For `recraftv4_pro`, the default is "2048x2048". | COMBO | Yes | Varies by model |
| `n` | The number of images to generate (default: 1). | INT | Yes | 1 to 6 |
| `seed` | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0). | INT | Yes | 0 to 18446744073709551615 |
| `recraft_controls` | Optional additional controls over the generation via the Recraft Controls node. | CUSTOM | No | N/A |

**Note:** The `size` parameter is a dynamic input whose available options change based on the selected `model`. The `seed` value does not guarantee reproducible image outputs. If you use a style ID from the Infinite Style Library, make sure it is not a Vector art style, as this may return SVG data instead of an image.

## Outputs

| Output Name | Description | Data Type |
|-------------|-------------|-----------|
| `output` | The generated image or batch of images. | 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/RecraftV4TextToImageNode/en.md)

---
**Source fingerprint (SHA-256):** `aa23cb2627407350b79ed38d9b6a5487802ddda5c7050df7a7bfb167a707cb79`
