Generative AI

GenAI Development with SDD and Stable Diffusion 3

From a specification to an image studio: 24 Docker labs, local SD3.5, traceability, tests and an optional API with clear costs.

Intermediate · 30 hours · 24 lessons · Course language: Spanish and English

Build Estudio GenAI, a GenAI image studio, following Spec-Driven Development: requirements, clarifications, design, plan, tasks, implementation and acceptance. You use the pinned version of GitHub Spec Kit, verifiable contracts and an application with an API, a persistent queue, an interface, a gallery and manifests. You generate real images with local SD3.5 Medium and an identified quantized conversion, without paying for an API on that route. You learn to measure memory, timings, quality and reproducibility, handle cancellation and recover data. If your computer falls short, you can choose a Stability AI API with your own account, key and usage, never as an automatic fallback. Every class has a narrated explanation, a lab, an exercise and a solution. The 30 hours include study and practice; they are not the length of the videos. Review the measured requirements before buying. The lessons, quizzes and videos are in English; the lab code and its messages keep their Spanish names, and every lesson explains them.

What you will learn

  • Turn goals into measurable requirements with traceability and review
  • Initialize and use GitHub Spec Kit artifacts with the tested version
  • Generate local SD3.5 images and document resources, parameters and limits
  • Build an API, a queue and an interface that keep images and manifests
  • Handle duplicates, cancellation and recovery without ambiguous remote retries
  • Choose deliberately between local hardware and separate API usage
  • Deliver an independent Docker project with a solution, tests and evidence

Skills

SDD, GitHub Spec Kit, Stable Diffusion 3.5, Docker Compose, Local generation, Quantization, API, SQLite, Idempotency, Acceptance tests, Image evaluation, Cost control

Program

Module 1: Foundations and setup: free classes

Understand SDD and SD3 and set up an independent session without downloading weights.

Project: A validated specification with its own Docker project.

  1. SDD and SD3: requirements, hardware and scope: Tell the development methodology apart from the image model and review the requirements before installing.
  2. Docker and VS Code: your independent environment: Set up Docker Desktop and run a diagnosis from PowerShell or Terminal, with no Python on the host.
  3. First specification and acceptance tests: Write and validate measurable requirements in a free starter with no models or paid ZIP.

Module 2: SDD in practice with GitHub Spec Kit

Turn goals into requirements, clarifications, tasks and tests.

Project: A traceability matrix over a project initialized with the real tool.

  1. Constitution and specification with GitHub Spec Kit: Initialize the pinned version of Spec Kit offline and review its artifacts without confusing templates with an AI model.
  2. Clarifications and non-functional requirements: Spot contradictory constraints and replace ambiguous expectations with verifiable criteria.
  3. Design, plan, tasks and traceability: Link every requirement with implementation and tests before changing the product.

Module 3: Local SD3.5 engine and memory

Download verified components and generate real images offline.

Project: A local image with its model, parameters, time and memory recorded.

  1. The SD3.5 model: license, download and hashes: Download the components of an identified SD3.5 Medium conversion and validate integrity and provenance.
  2. First local generation with real evidence: Generate an image on the CPU and record parameters, timings, memory and hash without a remote API.
  3. Memory, quantization and optional acceleration: Read the measured CPU profile and the extra GPU requirements without promising the same acceleration on Mac and Windows.

Module 4: Image control and evaluation

Experiment with prompts, seeds, steps and quality review.

Project: Reproducible comparisons with limits and a human review rubric.

  1. Prompts, dimensions and generation limits: Build controlled descriptions and validate dimensions and parameters before running the model.
  2. Seeds, steps and limited reproducibility: Keep requests and versions to compare experiments without promising identical results across backends.
  3. Visual evaluation and quality failures: Tell a valid PNG apart from an image that meets the prompt and apply a rubric with real examples.

Module 5: Build the product from the specification

Connect a validated API, the persistent queue and the local interface.

Project: An image studio that keeps jobs, images and manifests.

  1. Contract-driven local API: Expose jobs through validated requests and test parameter and origin errors.
  2. Persistent queue and idempotency: Persist unique IDs and states to run one job at a time and avoid duplicates.
  3. Interface, gallery and manifests: Connect the form to the queue and show images with their parameters without exposing arbitrary files.

Module 6: Quality, security and operations

Test explicit costs, errors, cancellation, recovery and CI.

Project: Evidence of tests and operations without ambiguous remote retries.

  1. Code review and drift from the specification: Spot requirements without tests and review the code before accepting changes proposed by agents.
  2. Isolation, secrets and the optional API: Check the offline route and explicitly set up an API with your own key and separate usage.
  3. Cancellation, timeouts and running out of memory: Cancel local work and handle errors without switching on paid services automatically.
  4. Unit tests, integration and regressions: Run contracts and check a real image and the service integration separately.
  5. Metrics, backup and recovery: Save and restore state without overwriting the active database or resending uncertain remote jobs.
  6. CI and honest validation evidence: Tell apart contract checks, real inference and platforms that weren't run when building a delivery gate.

Module 7: Final project: Estudio GenAI

Integrate and deliver the product with acceptance and a verifiable run.

Project: Local Estudio GenAI: specification, API, UI, SD3.5, queue, evaluation, tests and complete solution.

  1. Estudio GenAI I: prepare requirements and models: Gather contracts, model and criteria to implement the complete project from its independent folder.
  2. Estudio GenAI II: integrate the complete product: Connect the request, the SD3.5 generation, the manifest and the image served by the API.
  3. Estudio GenAI III: accept, recover and deliver: Verify the product from the ZIP, document the measured requirements and deliver tests, solution and limits.

Prerequisites

  • Basic Python and Git; the whole project runtime runs in Docker
  • Docker Desktop and VS Code; read the full resources notice before enrolling
  • Internet to download images and models; after that local inference works with no Internet access
  • If you choose the API: your own Stability AI account and credits; its charges aren't included in the course

Next courses

  • RAG and GraphRAG with LangChain, LangGraph and Neo4j · Intermediate · 30 hours
    From your documents to an assistant that cites its sources: 24 labs with Docker, local models, vector and hybrid search, knowledge graphs and a complete final project.
  • Agentic AI: From Workflows to Autonomous Agents · Advanced · 32 hours
    The difference between an agentic system and an agent, and the best practices for building both: workflows, the agent loop, tools, context engineering, skills, MCP, code execution, human in the loop, durable execution, evaluation, observability, security and production. Theory and a lab in every class, 24 labs verified in Docker with the official documentation, and a video in every class.

See all courses