Skip to main content

Code

cookbook/os/interfaces/whatsapp/image_generation_tools.py

Usage

1

Set up your virtual environment

2

Set Environment Variables

3

Install dependencies

4

Run Example

Key Features

  • Tool-based Generation: OpenAI’s GPT Image-1 model via external tools
  • High-Quality Images: Professional-grade image generation sent as WhatsApp photos
  • Conversational Interface: Natural language interaction for image requests
  • History Context: Remembers previous images and conversations