# "Prompt to Pipeline: Building with Google's Gen Media Stack — Paige & Guillaume, Google DeepMind"
<!--
ref: @content/youtube/aie/prompt-to-pipeline-building-with-google-s-gen-media-stack-paige-guillaume-google-deepmind
tags: [Gemini models, AI Studio, video analysis, code execution, build mode, open models, generative media, what not to build]
version: 2
updated_at: 2026-11-22T09:08:54.475Z
-->
**[Watch on YouTube](https://www.youtube.com/watch?v=ns9f1fjLD7Y)**
# Prompt to Pipeline: Building with Google's Gen Media Stack — Paige & Guillaume, Google DeepMind
*Synthesized from Paige and Guillaume's workshop on aie, 2026-05-23.*
Paige, who calls herself a machine learning engineer and mentions work on the Palm 2, Gemini and Gemma teams, runs a nearly two-hour recap workshop (1:54:34) of morning sessions. Her colleague, rendered in captions as Guillaume and described as the expert in generative media, takes the middle section, and Ian Valentine, who says he is a developer relations engineer on the Gemma models, closes with an impromptu Gemma 4 demo. This summary covers all three parts.
## Core Thesis
Paige argues that Google's models are natively multimodal and that most of what an app needs can be tried in AI Studio and lifted into code with one click, so builders should avoid investing in workarounds that the next model release will absorb. Guillaume then shows the generative media models chained into one pipeline, and Ian shows that open Gemma 4 models can now do agentic work on a laptop or phone.
## Key Insights
### Part 1: Paige (opening to about 42 minutes)
- **Background.** Machine learning from about 2009 to 2010, contributing to NumPy, SciPy, Matplotlib and scikit-learn; geoscience work at Chevron; Cloudera clusters; GPU support for TensorFlow; about a year at GitHub on VS Code and early Copilot testing; then back to Google. She says she owes her career to open source.
- **What not to build.** When everyone sprints toward the same thing it is probably the wrong thing, because the model will absorb it. Examples: vector databases built around 8,000 and 16,000-token windows, per-language fine-tunes, agent frameworks, and MCP servers (people now moving to skills, "fancy markdown files"). Medical fine-tunes became unnecessary once the data was folded into Gemini. A participant objected on reproducibility; she replied that no large language model is deterministic, though she agreed that opinionated, customer-specific work is where much of the value lies.
- **Recent releases.** Gemini 3.1 Flash Live, 3.1 Pro and Flash Lite, Nano Banana 2 (image generation and editing, including reverse image search), Embedding 2.0 (video, audio, images, code and text in one space), Lyria 3, Genie 3, Gemma 4 under Apache 2 released the prior week, and Veo 3.1 Lite. Augment Code moved its agent infrastructure to default to Gemini 3.1 Pro on performance-to-cost grounds.
- **Native multimodality.** Gemini ingests video, images, audio, text and code together and outputs text, code, edited images, interleaved image and text, and audio tokens.
- **AI Studio demos.** Flash Lite costs about 25 cents per million tokens, nearly an order of magnitude below Pro. She analyzed a YouTube dinosaur video (start 0, end about 300 seconds, about one frame per second, 30,900 tokens) with search grounding; "Get code" emits equivalent TypeScript or Python. With code execution on and compare mode, Flash Lite drew bounding boxes on green Lego bricks fast and cheaply, while Gemini 3 Flash made more tool calls and verified its own work, still costing pennies.
- **Build mode.** Newly supports database and auth plus custom secrets, version history, and GitHub sync. Her bookshelf-scanner app (Google login, photo upload, search-grounded title, author, description and genre, saved to Firestore) first failed on insufficient permissions, then fixed its own Firestore rules and persisted the books across logout.
- **Gemini Live.** One stacked speech-to-text, understanding and text-to-speech pipeline; she switched it to Spanish and then Castilian Spanish through system instructions or mid-conversation, and showed screen and camera sharing.
- **Genie 3.** A composition of models (Nano Banana, Veo, Gemini for prompting), generating a playable world frame by frame for about 60 seconds, with no game engine or stored 3D assets; contrasted with World Labs, which builds Unity or Unreal environments. Her demo was a pink sparkly squirrel on a London canal with pirate flags; the squirrel walked on water.
### Part 2: Guillaume, generative media (about 42 to 84 minutes)
- **Framing.** Six years at Google, two in developer advocacy, earlier in the video game industry. His definition of a world model is one that ingests and outputs as many modalities as it can. Separate models exist because shipping a single-purpose model is easier than re-releasing one model for every feature. The team ships a new model or capability roughly every five days, and two to three new things a week counting AI Studio and pricing.
- **Models.** Nano Banana 2 (late January or early February) adds aspect ratios, sizes and search and image grounding; Veo 3.1 Lite is the cheapest video model at about 5 cents; Lyria 3 makes 30-second or full three-minute songs with lyrics and is, as far as he knows, the first offered through an API; Lyria realtime generates music indefinitely and shifts when prompted, shown in a "space DJ" demo.
- **Which product.** Consumer apps give little control; Vertex AI gives data-center control but is hard to set up and suits teams already on Google Cloud; AI Studio and the developer API sit between. The file upload API avoids bucket setup.
- **Notebook pipeline.** Using The Wind in the Willows from Project Gutenberg, he sends the book once in chat mode so history carries it, uses structured outputs so prompts come back clean, asks for character prompts and chapter prompts, and generates images in a set style with system instructions to avoid borders, titles and panels. A first pass lost the toad's identity; a second structured output listing which characters appear in each image, with only those reference images attached, fixed it. He would create several views per character at scale, since 40 characters would overwhelm the context.
- **Video, music, speech.** Veo clips start from the last image; the same prompt as the image often added on-screen text, while a prompt written by Gemini after seeing the image did better. Lyria songs per chapter matched the mood without checking. He says much of the gen media training data is made with Gemini, which is why Gemini writes good prompts for them. For text to speech he got more than two voices by rewriting a dialogue as a play script with a named style per character and sharing one voice across the non-narrators; the prompt must begin with an instruction like "read this" or the text is ignored.
- **Vibe coding.** Pasting the whole notebook into build mode produced a working app after roughly 15 minutes. His habits: one file per feature so reviews are easy, and ask for logs.
- **Q and A.** Veo cannot take audio input, so Lyria output cannot feed it yet; he expects every model to accept every modality and multi-turn editing. Veo is poor at music. A service tier setting offers "flex" (slower, cheaper, like batch) or "priority" (about twice the price). Open-weight image or video models are unlikely because of content checks, but on-device music could make sense. Capacity is tight, and he jokes about needing spare TPUs.
### Part 3: Ian Valentine, Gemma 4 (about 84 minutes to the end)
- **Family.** Two "effective" models (E2B, E4B) for phones, Raspberry Pis and Jetson Nanos, using per-layer embeddings that can sit in flash; a 26B mixture-of-experts with 4 billion active; and a 31B dense flagship. They add thinking, image and video understanding (audio only on the two small ones), and he says they match models about ten times larger.
- **Demos.** The AI Edge Gallery app runs E2B on a phone with agent skills (Android intents, JavaScript skills) and can vibe code small apps on device. In LM Studio the 26B model needs about 18 GB, about 22 GB with context, and was served on a local OpenAI-compatible endpoint; one orchestrator spawned ten sub-agents drawing SVGs with no internet. Through OpenCode, whose configuration only needs a provider name, schema, model and URL, the local model implemented a "Nebula Drift" game from a spec written by the 31B model; the first output had a syntax error, and it fixed it after the error was pasted back, after a few retries. He also showed a screenshot-to-HTML recreation, a game-builder spec ("OmniForge"), a browser-run E2B controlling a simulated robot duck over WebGPU, Android Studio's agent using the 26B, and a one-command Cloud Run deploy on an RTX Pro 6000.
## Actionable Takeaways
1. Before building a workaround for a model limitation, ask whether the next model will absorb it.
2. Prototype in AI Studio, then use "Get code" to move to your own app; compare models side by side on cost and verification behavior.
3. For consistent characters across generated images, pass only the relevant reference images and have the model say which characters each scene contains.
4. Have a text model write the prompts for image, video and music models, and keep the source material in chat history.
5. When vibe coding, ask for one file per feature and for logging, so errors can be traced.
6. Use the flex service tier for latency-insensitive work and priority only when reliability matters.
7. Try Gemma 4 locally behind an OpenAI-compatible endpoint with your existing coding harness, and expect to feed errors back manually.
## Notable Quotes
> "usually if you see everybody sprinting to do the same thing, that's a great indication that it's the wrong thing." — Paige
> "no large language model is deterministic." — Paige
> "you always have to start with read this or uh tell me this or whatever." — Guillaume
---
*Related: `@content/youtube/latent-space/googles-open-ai-strategy-omar-sanseviero-google-deepmind` · `@content/youtube/aie/how-i-automate-my-own-job-at-hugging-face-using-agents-niels-rogge-hugging-face` · `@content/youtube/aie/the-next-medium-why-real-time-interactive-video-changes-everything-ahmed-ahres-reactor` · `@content/youtube/yc-root-access/meet-the-devtool-founders-building-for-ai-agents` · `@content/youtube/a16z/can-open-models-keep-up-with-openai-and-anthropic-nathan-lambert`*
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*