Skip to content

Image Generation

Iris can generate images from text descriptions using OpenAI's GPT Image model. Ask for artwork, illustrations, diagrams, or any visual content.

Features

  • Text-to-Image: Generate images from natural language
  • Multiple Sizes: Square, landscape, or portrait
  • High Quality: Uses GPT Image with high quality settings
  • Inline Display: Images appear directly in chat

Setup

Image generation requires an OpenAI API key. Verify your .env includes:

bash
OPENAI_API_KEY=your-openai-key

That's it - image generation is automatically available.

Usage

Simply ask Iris to create an image:

You: "Create an image of a sunset over mountains"

Iris: [generates and displays image]

"Here's a sunset over mountains. Would you like me to adjust anything?"

Being Specific

The more detail you provide, the better the results:

You: "Generate a watercolor painting of a cozy coffee shop with warm lighting, wooden furniture, plants on the windowsill, and a cat sleeping on a chair"

Style Guidance

Specify artistic styles:

  • "Draw a minimalist line art portrait of a woman with flowing hair"
  • "Create a pixel art scene of a forest at night with fireflies"
  • "Make a photorealistic image of a modern kitchen with marble countertops"

Available Sizes

SizeOrientationUse Case
1024x1024SquareGeneral purpose, icons, avatars
1536x1024LandscapeScenes, backgrounds, banners
1024x1536PortraitCharacters, posters, mobile wallpapers

How It Works

  1. Request: Iris interprets your request and formulates a detailed prompt
  2. Generation: The prompt is sent to GPT Image
  3. Display: The image appears inline in the chat
  4. Storage: The image is stored as an attachment linked to the conversation

Prompt Enhancement

Iris often enhances your prompts for better results:

You: "Draw a cat"

Becomes: "A photorealistic image of a domestic cat with soft fur, sitting in natural lighting, detailed eyes, high quality"

You can override this by being very specific or asking for exactly what you described.