Skip to content

About

GenMedia Creative Studio is a generative media user experience highlighting the use of Gemini, Gemini Omni, Veo, Gemini Image 🍌, Gemini TTS, Chirp 3, Lyria and other generative media APIs on Google Cloud.

Topics

Resources

Contributing

Stars

1.2k stars

Watchers

29 watching

Forks

Latest commit

Β 

History

3,309 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GenMedia Creative Studio | Vertex AI

Python Tests CI MCP GenMedia Go CI License: Apache 2.0 Python 3.14+

GenMedia Creative Studio is an interactive web application built on Mesop and FastAPI for exploring, chaining, and deploying Google Cloud generative media models on Vertex AI β€” spanning video, image, music, speech, and multimodal creative workflows.

This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program. This project is intended for demonstration purposes only. It is not intended for use in a production environment.

GenMedia Creative Studio Home

GenMedia Creative Studio Workflows

Table of Contents

Overview

Browser Compatibility: For the best experience, we recommend using Google Chrome. Some features may not work as expected on other browsers, such as Safari or Firefox.

GenMedia Creative Studio showcases Google Cloud's generative media models β€” Gemini Omni, Veo, Gemini Image Generation (Nano Banana), Lyria, Gemini TTS, Chirp 3 HD, and Gemini Writers Workshop β€” alongside multi-step creative workflows and a shared media library. We're looking forward to seeing what you create!

Current featureset:

  • Video: Gemini Omni 1.2 Flash (gemini-omni-1.2-flash), Veo 3.1, Veo 3.1 Fast, Veo 3.1 Lite
  • Image: Gemini Nano Banana 2.1 (default), Gemini 3.1 Flash Image (Nano Banana 2), Gemini 3.1 Flash-Lite Image (Nano Banana 2 Lite), Gemini 3 Pro Image (Nano Banana Pro), plus legacy Imagen 4 (/imagen)
  • Music: Lyria 3 (Pro & Clip), Lyria 2
  • Speech: Gemini Text-to-Speech (TTS), Chirp 3 HD
  • Text & Ideation: Gemini Writers Workshop
  • Creative Workflows: Storyboarder, Character Consistency, Shop the Look, Interior Design, Virtual Try-On, Starter Pack, Motion Portraits, Pixie Compositor
  • Studio Asset Library: Persistent Firestore & Cloud Storage media browser with provenance inspection

Built using Mesop, an open-source Python UI framework used at Google for rapid AI app development, and the Studio-style app scaffold.


Quick Start

The core app requires Python 3.14+ (installed automatically by uv) and a Google Cloud project with Vertex AI enabled.

# 1. Install uv (macOS/Linux) if you don't already have it:
curl -LsSf https://astral.sh/uv/install.sh | sh

# 2. Clone the repository:
git clone https://github.com/GoogleCloudPlatform/genmedia-creative-studio.git
cd genmedia-creative-studio

# 3. Authenticate with Application Default Credentials and set your project:
gcloud auth application-default login
cp dotenv.template .env
echo "PROJECT_ID=$(gcloud config get-value project)" >> .env

# 4. Sync dependencies (uv installs Python 3.14 automatically) and start the server:
uv sync
uv run main.py

Open http://localhost:8080/ in Chrome (/ redirects automatically to /home).


Local Development & Smoke Testing

Cloud Prerequisites for Media Persistence

While the UI boots locally with only PROJECT_ID set, saving generated assets and browsing the Asset Library use two default Google Cloud resources in your project (configurable via .env β€” see dotenv.template):

  • Firestore: a Standard database named (default) (gcloud firestore databases create --database="(default)" --location=nam5)
  • Cloud Storage: a bucket named ${PROJECT_ID}-assets (gcloud storage buckets create -l us-central1 gs://${PROJECT_ID}-assets)

See Local Setup & Development, Environment Variables, and the Developer's Guide for full configuration details.

Smoke-Test Before You Merge

scripts/smoke_test.sh is an automated boot check for the core app: it runs uv sync, verifies page/model imports, boots the app under Gunicorn/Uvicorn in APP_ENV=local mode on port 8080, and confirms GET / β†’ /home (200) and GET /__login (200). Passing -l also runs one live Vertex AI gemini-3.5-flash generateContent check on the global endpoint when PROJECT_ID and ADC are present.

./scripts/smoke_test.sh        # boot + import + UI check
./scripts/smoke_test.sh -l     # also run the live Vertex generation check

Run this before merging any PR that modifies core-app runtime code (pages/, models/, state/, config/, main.py), alongside pytest:

uv run pytest

It is a fast pre-merge boot check, not a replacement for unit tests or Terraform/IAP deployment validation.


Deploying to Google Cloud

Production deployments are provisioned with Terraform and secured behind Identity-Aware Proxy (IAP):

  • Cloud Run (Recommended): Deploy either behind a Global External Application Load Balancer with a custom domain and managed SSL certificate, or directly using the Cloud Run .run.app URL with Cloud Run IAP. After initial Terraform provisioning, build and roll out application updates from the repository root with ./build.sh. See the Cloud Run Deployment Guide.
  • Google Kubernetes Engine (Self-Service GKE): Deploy on GKE Autopilot/Standard with IAP and Workload Identity. See the GKE Deployment Guide.

Documentation Hub

For architecture deep-dives, foundation model guides, workflow walkthroughs, and troubleshooting, visit the Documentation Hub:


Experiments & MCP Tools

The experiments/ directory houses standalone applications, multimodal pipelines, and Model Context Protocol (MCP) servers in Go (veo, omni, nanobanana, gemini, imagen, lyria, chirp3, gemini-transcribe, and avtool).

Install pre-compiled MCP server binaries directly:

curl -sL https://raw.githubusercontent.com/GoogleCloudPlatform/genmedia-creative-studio/main/experiments/mcp-genmedia/mcp-genmedia-go/install-online.sh | bash

Explore all experiments, sample agents, and MCP server guides in the Experiments & MCP Documentation.


Contributing

Contributions and bug fixes are welcome! For larger features or architectural changes, please open an issue first to discuss the proposed design. All contributions require signing the Google Contributor License Agreement (CLA).

Licensing

Code in this repository is licensed under the Apache License, Version 2.0. See LICENSE.

Disclaimer

Caution

This is not an officially supported Google product. This project is not eligible for the Google Open Source Software Vulnerability Rewards Program.

About

GenMedia Creative Studio is a generative media user experience highlighting the use of Gemini, Gemini Omni, Veo, Gemini Image 🍌, Gemini TTS, Chirp 3, Lyria and other generative media APIs on Google Cloud.

Topics

Resources

Contributing

Stars

1.2k stars

Watchers

29 watching

Forks

Releases

Packages

Used by

Contributors

Languages