Skip to content

Drive Google Flow from Claude, Codex or a local control panel, on Mac or Windows — using your Google AI subscription credits instead of the pay-per-use video API. No browser extension.

Flow's November update: Flow Agent switch, Omni 1.2 Flash and its length slider

GTAI-1770e00181390
diff --git a/CLAUDE.md b/CLAUDE.md
index 935da32..411843c 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -724,3 +724,21 @@ The preview tool could not read the project while it lived in ~/Desktop; check t
matches on the rest at a 0.3 threshold (unit-checked: 4/4 right). (2) After the drag, the collection page did not
list the just-moved images until reloaded, so the tool thought the move failed and then tried to re-select images no
longer in the grid ("None of the 1 image(s) could be selected"). It now reloads the collection before counting.
+- FLOW UPDATE (mapped live 2026-11-21, nothing spent). (1) The agent switch is now `Flow Agent` (a `.switch` button with
+ aria-pressed; was `Agent`), its prompt box reads "Describe your goal", and its settings button is `Agent settings`
+ (was `Settings`). agentToggle() matches /^(Flow )?Agent$/. (2) The agent settings panel (`flow-agent-panel`) keeps the
+ Confirm radios (Always/Never) but has NO Save button any more: every change saves as it is made. Image defaults sit
+ one level deeper behind the button "Image defaults <model>, <aspect>, <n> output" (radiogroup "Model" with radios
+ "🍌 Nano Banana 2.1" etc., aspect radios, x1-x4, Thinking level), with its own Back; closeAgentSettings presses Back
+ up to three times. There is also "Video defaults" and a project "Memory". (3) New video model **Omni 1.2 Flash**,
+ Flow's default, with a `Length` slider (input type=range 0..12 = 3..15 s; the popover shows "Length N Sec") instead
+ of the 4s/6s/8s/10s radios. pickDuration moves it by keys from Home and checks the "N Sec" text. Quotes, 720p:
+ 3 credits a second to 10 s, then 6 (4=12, 8=24, 10=30, 11=36, 15=60); 360p: 1 a second to 10 s, then 2 (12=14,
+ 15=20). Omni 1.1 Flash still has the radios (10 s 720p = 15). The model menu marks Omni 1.1 Flash, Veo 3.1 - Fast
+ and Veo 3.1 - Quality "Leaving Dec 5" (pickModel matches by includes, so the suffix is harmless). (4) Image mode has
+ a new "Thinking level" (Low/Medium/High) for Nano Banana 2.1; not driven. (5) Unchanged: `.ProseMirror` prompt box
+ ("What do you want to create?"), Clear prompt, Settings trigger, Start/End (+ "Swap first and last frames"), the
+ ingredients picker and its tabs (Uploads included), Add media menu (Upload, New collection, Create character, New
+ scene), tile menu and the Download submenu (1K/2K; 4K disabled). The left menu of a project with no videos or
+ uploads shows no Videos/Uploads entries, plus a new `Create tool`. Checked with a test MCP: lengths quoted 21
+ (Omni 1.2 7 s 720p), 14 (12 s 360p) and 10 (Omni 1.1 6 s) with max_credits 0, and a free image made end to end; then a 5-image agent batch (5 of 5 from the agent, in order, agent off and confirm back on Always afterwards, 0 credits) and one paid Omni 1.2 Flash clip, 3 s at 360p for 3 credits (the user's OK): 360x640, 3.0 s with sound, clean at 8 frames a second.
diff --git a/src/core.ts b/src/core.ts
index dd4afbc..9b6fb4b 100644
--- a/src/core.ts
+++ b/src/core.ts
@@ -24,9 +24,9 @@ const sceneSchema = z.object({
model: z
.string()
.optional()
- .describe("Model label as shown in Flow, e.g. 'Omni 1.1 Flash', 'Veo 3.1 - Fast', 'Veo 3.1 - Quality', 'Nano Banana Pro'. Images default to the newest Nano Banana (2.1 today); video omitted keeps Flow's current model."),
+ .describe("Model label as shown in Flow, e.g. 'Omni 1.2 Flash' (Flow's default video model since 2026-11-21), 'Veo 3.1 - Lite', 'Nano Banana Pro'. Omni 1.1 Flash, Veo 3.1 - Fast and Veo 3.1 - Quality leave Flow on Dec 5. Images default to the newest Nano Banana (2.1 today); video omitted keeps Flow's current model."),
aspect_ratio: z.enum(["16:9", "9:16", "1:1", "4:3", "3:4"]).optional().describe("Video supports 16:9 and 9:16 only."),
- duration: z.union([z.literal(4), z.literal(6), z.literal(8), z.literal(10)]).optional().describe("Video length in seconds. Omni models only; Veo 3.1 clips are fixed at 8s."),
+ duration: z.number().int().min(3).max(15).optional().describe("Video length in seconds. Omni 1.2 Flash: any whole second from 3 to 15. Omni 1.1 Flash: 4, 6, 8 or 10. Veo 3.1 clips are fixed at 8 s."),
resolution: z.enum(["360p", "720p"]).optional().describe("Video resolution. Omni models only."),
max_credits: z.number().int().min(0).default(25).describe("Safety cap: the scene is skipped (nothing spent) if Flow quotes more credits than this."),
variants: z.number().int().min(1).max(4).optional().describe("Outputs per prompt (each one spends credits). Default 1."),
diff --git a/src/flow.ts b/src/flow.ts
index 75d75e0..38dffdc 100644
--- a/src/flow.ts
+++ b/src/flow.ts
@@ -60,26 +60,25 @@ async function clearBackdrops(page: Page): Promise<void> {
}
}
+// The agent's switch was renamed "Agent" -> "Flow Agent" (seen 2026-11-21); either name, and nothing else, is it.
+const agentToggle = (page: Page) => page.getByRole("button", { name: /^(Flow )?Agent$/ });
+
// The agent's own image model, set to the newest Nano Banana like single images. Best effort: a batch never fails over it.
+// Since 2026-11-21 it is a radio group "Model" inside the "Image defaults" sub-panel (radios "🍌 Nano Banana 2.1" ...).
async function pickAgentImageModel(page: Page): Promise<void> {
- const button = page.locator("flow-agent-panel").getByRole("button", { name: "Image generation default model" });
- if (!(await button.isVisible().catch(() => false))) return;
- await button.click({ timeout: 5000 }).catch(() => {});
- const items = page.getByRole("menuitem");
- if (!(await items.first().isVisible().catch(() => false))) await items.first().waitFor({ state: "visible", timeout: 4000 }).catch(() => {});
- const names = (await items.allInnerTexts().catch(() => [] as string[])).map((t) => t.replace(/\s+/g, " ").trim());
+ const radios = page.locator("flow-agent-panel").getByRole("radiogroup", { name: "Model" }).getByRole("radio");
+ if (!(await radios.first().isVisible().catch(() => false))) return;
+ const names = (await radios.evaluateAll((els) => els.map((e) => e.getAttribute("aria-label") ?? e.textContent ?? ""))).map((t) => t.replace(/\s+/g, " ").trim());
const index = newestNanoBanana(names);
- const shown = (await button.innerText().catch(() => "")).replace(/\s+/g, " ");
- if (index >= 0 && !shown.includes(names[index])) await items.nth(index).click({ timeout: 4000 }).catch(() => {});
- else await page.keyboard.press("Escape");
+ if (index >= 0 && !(await radios.nth(index).isChecked().catch(() => true))) await radios.nth(index).click({ timeout: 4000 }).catch(() => {});
await pause(page, 400);
- await clearBackdrops(page);
}
-// The agent settings panel replaces the composer, hiding the Agent button; Back closes it without saving.
+// The agent settings panel replaces the composer, hiding the Agent button. Back leaves it; since 2026-11-21 the defaults
+// sit one level deeper ("Image defaults"), so it can take two Backs. Changes there save as they are made.
async function closeAgentSettings(page: Page): Promise<void> {
const back = page.locator("flow-agent-panel").getByRole("button", { name: "Back", exact: true });
- if (await back.isVisible().catch(() => false)) {
+ for (let i = 0; i < 3 && (await back.isVisible().catch(() => false)); i++) {
await clearBackdrops(page);
await back.click({ timeout: 5000 }).catch(() => {});
await pause(page, 800);
@@ -381,6 +380,27 @@ async function pickModel(page: Page, model: string): Promise<void> {
await pause(page, 700);
}
+// Omni 1.1 Flash offers 4s/6s/8s/10s radios. Omni 1.2 Flash (2026-11-21) has a "Length" slider instead: an
+// <input type=range> 0..12 that reads "Length 3 Sec" .. "Length 15 Sec" in the popover. The slider's own value is not
+// in seconds, so it is moved by keys from its first step and the popover's own "<N> Sec" text is checked.
+async function pickDuration(page: Page, seconds: number): Promise<void> {
+ const slider = page.getByRole("slider", { name: "Length" });
+ if (!(await slider.isVisible().catch(() => false))) return pickRadio(page, `${seconds}s`);
+ const pane = page.locator(".cdk-overlay-pane:has(.credit-cost-label)").last();
+ const shown = async () => Number(/Length\s*(\d+)\s*Sec/i.exec(await pane.innerText().catch(() => ""))?.[1] ?? NaN);
+ await slider.focus();
+ await page.keyboard.press("Home");
+ await pause(page, 300);
+ const min = await shown();
+ const steps = Number(await slider.getAttribute("max")) - Number(await slider.getAttribute("min"));
+ if (Number.isNaN(min) || seconds < min || seconds > min + steps) {
+ throw new Error(`This model's clips run ${Number.isNaN(min) ? "a different range" : `${min} to ${min + steps} s`}; ${seconds} s is not one of them.`);
+ }
+ for (let i = 0; i < seconds - min; i++) await page.keyboard.press("ArrowRight");
+ await pause(page, 500);
+ if ((await shown()) !== seconds) throw new Error(`Flow's length slider did not land on ${seconds} s (it shows ${await shown()} s).`);
+}
+
// Applies the scene settings and returns the credit cost Flow quotes for them.
// One Escape does not always shut the settings popover (2026-10-30: it stayed open after a run and its credit label
// swallowed the next click on the prompt box, so flow_character timed out). Check it is gone, and try again.
@@ -405,7 +425,7 @@ async function applySettings(page: Page, job: Job): Promise<number> {
const model = s.type === "image" && LEGACY_IMAGE_MODEL.test(s.model ?? "") ? LATEST_IMAGE_MODEL : s.model;
if (model) await pickModel(page, model);
if (s.type === "video" && s.resolution) await pickRadio(page, new RegExp(`^${s.resolution}`));
- if (s.type === "video" && s.duration) await pickRadio(page, `${s.duration}s`);
+ if (s.type === "video" && s.duration) await pickDuration(page, s.duration);
await pickRadio(page, `x${s.variants ?? 1}`);
await pause(page, 600);
// The quote is "<N> credits". Low balances add an "Add AI credits" banner link that the old /credits?$/ also matched.
@@ -1117,7 +1137,7 @@ export async function runGeneration(job: Job): Promise<string[]> {
const s = job.params;
await ensureProjectGrid(page);
- const agent = page.getByRole("button", { name: "Agent", exact: true });
+ const agent = agentToggle(page);
if ((await agent.getAttribute("aria-pressed")) === "true") await agent.click();
const clear = page.getByRole("button", { name: "Clear prompt" });
if (await clear.isVisible().catch(() => false)) await clear.click();
@@ -1660,7 +1680,7 @@ export async function runEdit(job: Job): Promise<string[]> {
// mode on then breaks the NEXT job, which expects the plain composer - a free character build failed that way. So this
// confirms the toggle actually landed rather than assuming the click worked.
async function setAgentMode(page: Page, on: boolean): Promise<void> {
- const agent = page.getByRole("button", { name: "Agent", exact: true });
+ const agent = agentToggle(page);
// Playwright says why a click did not land ("<div ...> intercepts pointer events", "element is not visible"); keep
// that, so a failure names what was in the way instead of guessing.
let why = "";
@@ -1683,18 +1703,28 @@ async function setAgentMode(page: Page, on: boolean): Promise<void> {
async function setAgentSettings(page: Page, confirm: "Always" | "Never", imageAspect?: string): Promise<void> {
// Scoped to the prompt box: Flow added a second "Settings" button to the top bar ("View settings", seen 2026-10-13),
// and an unscoped lookup matched both and failed every agent batch.
+ // Renamed "Settings" -> "Agent settings" on 2026-11-21; either name works.
await clearBackdrops(page);
- await page.locator("flow-base-prompt-box").getByRole("button", { name: "Settings", exact: true }).click();
+ await page.locator("flow-base-prompt-box").getByRole("button", { name: /^(Agent s|S)ettings$/ }).click();
try {
+ const panel = page.locator("flow-agent-panel");
await page.getByRole("heading", { name: "Agent settings" }).waitFor({ state: "visible", timeout: 8000 });
- await page.getByRole("radio", { name: new RegExp(`^${confirm}`) }).click();
+ await panel.getByRole("radio", { name: new RegExp(`^${confirm}`) }).click();
if (imageAspect) {
- await page.getByRole("radio", { name: imageAspect, exact: true }).first().click();
- await page.getByRole("radio", { name: "x1", exact: true }).first().click();
+ // Aspect, outputs and model now live in the "Image defaults" sub-panel, and every change saves by itself.
+ const defaults = panel.getByRole("button", { name: /^Image defaults/ });
+ if (await defaults.isVisible().catch(() => false)) {
+ await defaults.click();
+ await page.getByRole("heading", { name: "Image defaults" }).waitFor({ state: "visible", timeout: 8000 });
+ }
+ await panel.getByRole("radio", { name: imageAspect, exact: true }).first().click();
+ await panel.getByRole("radio", { name: "x1", exact: true }).first().click();
await pickAgentImageModel(page);
}
await pause(page, 300);
- await page.getByRole("button", { name: "Save", exact: true }).click();
+ // The old panel had a Save button; the new one saves as you go.
+ const save = page.getByRole("button", { name: "Save", exact: true });
+ if (await save.isVisible().catch(() => false)) await save.click();
await pause(page, 1200);
} finally {
// Saved or not, never leave the panel covering the composer: the next step needs the Agent button.
diff --git a/src/index.ts b/src/index.ts
index 6671e94..0f221d0 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -101,7 +101,7 @@ server.registerTool(
{
title: "Queue Flow generations",
description:
- "Queue one clip or image per scene in the open Flow project. Runs one at a time with human-like pauses and spends the user's Google AI credits (approx. per video: Omni 1.1 Flash 7-12, Veo 3.1 Lite 10, Fast 20, Quality 100; images 0). Each scene is checked against max_credits using Flow's own quote before anything is spent. Returns job ids immediately; use flow_wait for results.",
+ "Queue one clip or image per scene in the open Flow project. Runs one at a time with human-like pauses and spends the user's Google AI credits (per video, at 720p: Omni 1.2 Flash 3 a second up to 10 s and 6 a second after, so 30 for 10 s and 60 for 15 s; at 360p a third of that; Veo 3.1 Lite 10; images 0). Each scene is checked against max_credits using Flow's own quote before anything is spent. Returns job ids immediately; use flow_wait for results.",
inputSchema: shapes.generate,
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
},
diff --git a/src/playbook.ts b/src/playbook.ts
index f04bf25..d4871ad 100644
--- a/src/playbook.ts
+++ b/src/playbook.ts
@@ -10,10 +10,11 @@ export const PLAYBOOK = {
"No call blocks for more than about 45 s. A reply with still_working and a task_id means Flow is still busy with it: pass the task_id to flow_wait, and never repeat the call.",
],
models: {
- "Omni 1.1 Flash": "7 credits at 4s, 12 at 8s (720p). Supports duration 4/6/8/10 and 360p/720p. Best default for drafts and frame-to-frame transitions.",
+ "Omni 1.2 Flash": "Flow's default video model since 2026-11-21: better character and scene consistency, fewer jump cuts. Any length from 3 to 15 s. 720p costs 3 credits a second up to 10 s, then 6 a second (4 s = 12, 8 s = 24, 10 s = 30, 15 s = 60); 360p costs a third of that (10 s = 10, 15 s = 20). Size each clip to its words: past 10 s every second costs double. A 10 s clip is above the default max_credits of 25, so raise it (with the user's OK) or use 360p for drafts.",
+ "Omni 1.1 Flash": "Leaves Flow on Dec 5. 4/6/8/10 s; 720p 7/10/12/15 credits, 360p 4/5/6/7.",
"Veo 3.1 - Lite": "10 credits, fixed 8s.",
- "Veo 3.1 - Fast": "20 credits, fixed 8s.",
- "Veo 3.1 - Quality": "100 credits, fixed 8s. Needs max_credits raised explicitly.",
+ "Veo 3.1 - Fast": "Leaves Flow on Dec 5. 20 credits, fixed 8s.",
+ "Veo 3.1 - Quality": "Leaves Flow on Dec 5. 100 credits, fixed 8s. Needs max_credits raised explicitly.",
"Nano Banana (newest, 2.1 today)": "Images, 0 credits; picked automatically for images. Use it to make keyframes and product stills before spending on video. Pro and 2 Lite are also 0 credits, when named.",
},
prompt_order: "subject and action -> shot size and camera move -> location -> visual style -> lighting -> sound/dialogue",
diff --git a/src/queue.ts b/src/queue.ts
index c8e1b6b..029f4e5 100644
--- a/src/queue.ts
+++ b/src/queue.ts
@@ -6,7 +6,7 @@ export interface SceneParams {
prompt: string;
type: "video" | "image";
max_credits: number;
- duration?: 4 | 6 | 8 | 10;
+ duration?: number;
resolution?: "360p" | "720p";
model?: string;
aspect_ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
diff --git a/studio/index.html b/studio/index.html
index 3e0a10d..ce8cec8 100644
--- a/studio/index.html
+++ b/studio/index.html
@@ -450,12 +450,15 @@ const toast = (msg, bad) => { const t = Object.assign(document.createElement("di
const guard = () => { if (!LIVE) { toast("Not connected — start Flow Studio first.", true); return false; } return true; };
// Prices Flow quotes on a Pro plan, x1 take.
-const VIDEO_COST = { "Omni 1.1 Flash": { "360p": { 4: 4, 6: 5, 8: 6, 10: 7 }, "720p": { 4: 7, 6: 10, 8: 12, 10: 15 } }, "Veo 3.1 - Lite": 10, "Veo 3.1 - Fast": 20, "Veo 3.1 - Quality": 100 };
+// Omni 1.2 Flash (Flow's default since 2026-11-21) takes any length from 3 to 15 s: 720p is 3 credits a second up to 10 s,
+// then 6 a second; 360p a third of that. Quotes read from Flow's own settings popover.
+const omni12 = (res, d) => (res === "360p" ? (d <= 10 ? d : 10 + 2 * (d - 10)) : d <= 10 ? 3 * d : 30 + 6 * (d - 10));
+const VIDEO_COST = { "Omni 1.2 Flash": omni12, "Omni 1.1 Flash": { "360p": { 4: 4, 6: 5, 8: 6, 10: 7 }, "720p": { 4: 7, 6: 10, 8: 12, 10: 15 } }, "Veo 3.1 - Lite": 10, "Veo 3.1 - Fast": 20, "Veo 3.1 - Quality": 100 };
const blank = () => ({ prompt: "", technique: "", chain: false, match: false, first: null, last: null, refs: [] });
const DEFAULTS = {
tab: "cast",
frames: { project: "MyFilm", aspect: "16:9", variants: 1, engine: "exact", scenes: [blank()] },
- shots: { project: "MyFilm", model: "Omni 1.1 Flash", aspect: "16:9", duration: 8, resolution: "720p", variants: 1, quality: "original", max: 25, scenes: [blank()] },
+ shots: { project: "MyFilm", model: "Omni 1.2 Flash", aspect: "16:9", duration: 8, resolution: "720p", variants: 1, quality: "original", max: 25, scenes: [blank()] },
narrate: { project: "MyFilm", engine: "kokoro", kokoroVoice: "am_michael", speed: 100, geminiVoice: "Charon", text: "", style: "" },
cut: { project: "MyFilm", music: null, voiceover: null, hold: true, clips: [] },
captions: { video: null, style: "bold", position: "bottom", size: 100, colors: {}, text: "" },
@@ -485,12 +488,14 @@ const hashTab = () => { const t = location.hash.slice(1); return $(`#tabs button
addEventListener("hashchange", () => { const t = hashTab(); if (t) showTab(t); });
/* ---------- segmented controls ---------- */
+// Lengths offered per model. Omni 1.2 takes any second from 3 to 15; these are the useful steps.
+const durations = () => (S.shots.model.startsWith("Omni 1.2") ? [4, 6, 8, 10, 12, 15] : [4, 6, 8, 10]);
const SEGS = {
f_aspect: { get: () => S.frames.aspect, set: (v) => (S.frames.aspect = v), opts: ["16:9", "9:16", "1:1", "4:3", "3:4"] },
f_variants: { get: () => S.frames.variants, set: (v) => (S.frames.variants = +v), opts: [1, 2, 3, 4] },
f_engine: { get: () => S.frames.engine, set: (v) => (S.frames.engine = v), opts: ["exact", "agent"], labels: { exact: "One by one", agent: "Flow agent · all at once" } },
s_aspect: { get: () => S.shots.aspect, set: (v) => (S.shots.aspect = v), opts: ["16:9", "9:16"] },
- s_duration: { get: () => S.shots.duration, set: (v) => (S.shots.duration = +v), opts: [4, 6, 8, 10] },
+ s_duration: { get: () => S.shots.duration, set: (v) => (S.shots.duration = +v), get opts() { return durations(); } },
s_resolution: { get: () => S.shots.resolution, set: (v) => (S.shots.resolution = v), opts: ["360p", "720p"] },
s_quality: { get: () => S.shots.quality, set: (v) => (S.shots.quality = v), opts: ["original", "upscaled"], labels: { original: "720p", upscaled: "1080p" } },
s_variants: { get: () => S.shots.variants, set: (v) => (S.shots.variants = +v), opts: [1, 2, 3, 4] },
@@ -1034,7 +1039,7 @@ $("#l_trash").onclick = async () => {
/* ---------- roll ---------- */
const sceneCost = (sc) => {
const m = VIDEO_COST[S.shots.model];
- const per = typeof m === "number" ? m : m[S.shots.resolution][S.shots.duration];
+ const per = typeof m === "number" ? m : typeof m === "function" ? m(S.shots.resolution, S.shots.duration) : m[S.shots.resolution][S.shots.duration];
return per * S.shots.variants;
};
function estimate() {
@@ -1196,7 +1201,13 @@ function renderAll() {
if ($("#n_style")) $("#n_style").value = S.narrate.style ?? "";
estimate(); save();
}
-$("#s_model").addEventListener("change", (e) => { S.shots.model = e.target.value; save(); renderAll(); });
+$("#s_model").addEventListener("change", (e) => {
+ S.shots.model = e.target.value;
+ // Omni 1.1 has no 12 or 15 s: move to the nearest length the new model offers.
+ const opts = durations();
+ if (!opts.includes(S.shots.duration)) S.shots.duration = opts.reduce((a, b) => (Math.abs(b - S.shots.duration) < Math.abs(a - S.shots.duration) ? b : a));
+ save(); renderAll();
+});
for (const [id, path] of [["f_project", "frames"], ["s_project", "shots"], ["n_project", "narrate"], ["c_project", "cut"]])
$("#" + id).addEventListener("input", (e) => { S[path].project = e.target.value; save(); });
(async () => {