Skip to main content

Code

cookbook/05_agent_os/interfaces/whatsapp/image_generation_model.py

Usage

1

Set up your virtual environment

2

Set Environment Variables

See the WhatsApp Bot setup guide for how to get these values from the Meta Developer Dashboard.
3

Install dependencies

4

Run Example

Key Features

  • Direct Image Generation: Gemini Flash with native image generation
  • Text-to-Image: Converts descriptions into visual content
  • Multimodal Responses: Generates both text and images
  • WhatsApp Integration: Sends images directly through WhatsApp