Generate Image
generate_imageGenerates images from a text prompt with support for multiple styles, sizes, and fine-tuning options like color palette and artistic level.
Instructions
Generate images from a text prompt using Recraft AI. Supports multiple styles (realistic, illustration, vector, icon, logo), various sizes, and fine-tuning controls like color palette and artistic level. V4 models do not support style parameters — use the prompt to control style instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images to generate (1-6). Default: 1. | |
| size | No | Image dimensions as WxH. Default: 1024x1024. | |
| model | No | Model to use. Default: recraftv3. | |
| style | No | Style category. Not supported for V4 models. Default: realistic_image. | |
| prompt | Yes | Text description of the image to generate. Max 1000 chars for V2/V3, 10000 for V4. | |
| no_text | No | Prevent text from appearing in the image. | |
| style_id | No | Custom style ID. Cannot be used together with style/substyle. | |
| substyle | No | Substyle to refine the style (e.g. 'b_and_w', 'pixel_art', 'watercolor'). | |
| random_seed | No | Seed for reproducible results. | |
| image_format | No | Output format: webp or png. | |
| artistic_level | No | Artistic level from 0 (simple) to 5 (dynamic). | |
| negative_prompt | No | What to avoid in the generated image. |