ZelaxyDocs
Core Blocks
Block

Image Generator Block

Generate images from text descriptions using AI models

Image Generator Block

The Image Generator block creates images from text prompts using DALL-E, Stable Diffusion, or other AI image models. It supports multiple sizes, styles, and quality settings.

Overview

PropertyValue
Typeimage_generator
CategoryCore Block
Color#EC4899 (Pink)

When to Use

  • Generate illustrations, diagrams, or artwork from descriptions
  • Create marketing visuals dynamically
  • Build creative tools that produce images on demand
  • Generate placeholder or concept images

Configuration

SettingTypeDescription
PromptLong textImage description: {{agent.content}}
ProviderDropdownopenai (DALL-E), stability
ModelDropdowndall-e-3, dall-e-2, etc.
SizeDropdown1024x1024, 1792x1024, 1024x1792
QualityDropdownstandard, hd
StyleDropdownvivid, natural
API KeyPasswordProvider API key

Outputs

FieldTypeDescription
urlstringURL of the generated image
contentstringBase64 or URL of the image
revisedPromptstringThe prompt DALL-E actually used (may refine yours)

Example: Product Mockup Generator

Goal: Generate product mockup images from descriptions.

Workflow:

[Starter] → [Agent: Prompt Writer] → [Image Generator] → [Response]

Configuration:

  • Agent System Prompt: Convert this product description into a detailed image generation prompt. Focus on visual details, lighting, style, and composition.
  • Image Generator Prompt: {{agent.content}}
  • Model: dall-e-3
  • Size: 1024x1024
  • Quality: hd
  • Style: vivid

Response: ![Generated Image]({{image_generator.url}})

Tips

  • Let an Agent write the prompt — AI-crafted prompts produce better images than raw user input
  • DALL-E 3 is the best quality; DALL-E 2 is cheaper and faster
  • hd quality costs 2x but provides much sharper details
  • Check revisedPrompt — DALL-E 3 may modify your prompt for safety/quality