Overview
The Generate Image block creates images from text descriptions using AI. Use it for visual content creation, mockups, illustrations, or any task requiring image generation. The block uses OpenAI’s GPT Image model to generate high-quality images based on your prompts.Configuration
Prompt (Required)
Text description of the image you want to generate. Example:- Subject matter
- Style (photorealistic, illustration, abstract, etc.)
- Composition and framing
- Lighting and mood
- Colors and textures
{{step_1.output}}
Image Size
Select the dimensions of the generated image. Options:- 1024x1024: Square format (default)
- 1792x1024: Landscape format
- 1024x1792: Portrait format
- Square: Social media posts, profile images, thumbnails
- Landscape: Website headers, banners, presentation slides
- Portrait: Mobile content, story formats, full-page graphics
Image Quality
Controls the detail and refinement of the generated image. Options:- High: Maximum detail and refinement
- Medium: Good balance for most use cases (default)
- Low: Faster generation, lower detail
Image Format
File format for the generated image. Options:- PNG: Lossless compression with transparency support (default)
- JPG: Smaller file sizes, best for photographs
- WebP: Modern format with smaller files and good quality
- PNG: Use when transparency is needed or quality is critical
- JPG: Best for photographs and when smaller file sizes matter
- WebP: Modern browsers, balance of quality and size
- Auto: Let the model decide the optimal format
Number of Images
Specify how many variations to generate from the same prompt. Range: 1 or more images Default: 1 Generating multiple images lets you choose the best result or create variations. Each image counts toward credit usage.Background
Control the background treatment of the generated image. Options:- Auto (default): Model decides background based on prompt
- Transparent: Remove background, keep subject only (requires PNG format)
- White: Solid white background
- Black: Solid black background
- Auto: Natural backgrounds that fit the scene
- Transparent: Overlay on other content, compose with other images
- White: Clean, professional look for product images
- Black: Dramatic effect, high contrast visuals
Reference Images
Upload reference images to guide the style, composition, or content of the generated image. Optional field When you provide reference images, the model uses them as visual context:- Single reference image: Image-to-image generation with your prompt
- Multiple reference images: Uses all images for style and context guidance
- Match a specific visual style
- Recreate composition with different content
- Generate variations of an existing image
- Apply brand visual guidelines
Error Handling
Define what happens if the Generate Image block fails. Options:- Terminate Workflow: Stop execution immediately
- Continue Execution: Proceed to next step despite error
Best Practices
- Write detailed, specific prompts for better results
- Include style descriptors (photorealistic, illustration, watercolor, etc.)
- Specify lighting, composition, and mood in your prompt
- Use landscape format for website headers and banners
- Use portrait format for mobile-first content
- Generate multiple variations when exploring creative options
- Reference previous step outputs using
{{step_n.output}}syntax - Use reference images to maintain consistent visual style across generations
- Test different quality settings to balance speed and detail needs
- Remember that higher quality and multiple images increase credit usage
Common Use Cases
| Use Case | Configuration Tips |
|---|---|
| Social media graphics | Square (1024x1024), high quality, specific style in prompt |
| Blog post headers | Landscape (1792x1024), medium quality, descriptive scene |
| Product mockups | High quality, reference images for brand style, detailed prompt |
| Marketing visuals | Multiple images (3-5), high quality, creative variations |
| Thumbnail generation | Square (1024x1024), auto quality, simple clear subjects |
| Story/mobile content | Portrait (1024x1792), medium-high quality, vertical composition |
| Brand-consistent content | Reference images, detailed style guide in prompt |
| Concept exploration | Multiple images, medium quality, varied prompts |
What’s Next
Now that you understand the Generate Image block:- Learn about other AI blocks in LLM Block
- See how to connect blocks in Building Workflows
- Use placeholders in Placeholder Referencing