Skip to content
← All projects

Stable Diffusion AI Chat

A Django application for generating and managing images from conversational prompts.

Stable Diffusion image generator welcome screen

The work behind Stable Diffusion AI Chat

Problem

Turn conversational prompts into generated images while keeping each user’s work separate.

My contribution

Developed the Django application, generation integration, user-scoped history, and responsive interface during an internship.

Verification

The repository includes setup instructions and explicit handling for authentication, rate limits, and service errors.

How the system works

  1. User prompt
  2. Django validation
  3. Optional translation
  4. Stability AI generation
  5. User-owned image history

Context and goal

During an AI software engineering internship at Training Edge Consulting, I developed a web application that turns conversational text prompts into generated images. The application also keeps conversations and generated images available to their owners.

Architecture

Django handles authentication, conversations, messages, and image records. Server-rendered HTML, CSS, and JavaScript provide the interface. A service layer calls the Stability AI API for image generation, while a translation service can convert prompts before generation. SQLite is the local database described in the repository.

Engineering decisions

  • Conversations and generated images are associated with authenticated users.
  • Generation settings, including image size, guidance scale, and inference steps, are configurable.
  • Prompt validation and explicit handling of authentication, rate-limit, and upstream service errors keep failure states understandable.
  • API credentials are read from environment configuration rather than embedded in the interface.

Outcome and limits

The repository contains the application and setup instructions. Image generation requires a Stability AI API key and a running service; this portfolio does not embed a live demo.