The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Studios: a choice the picked model can't use says so
Adarshdfaba1f2eb58
diff --git a/src/components/ads/multiplier.tsx b/src/components/ads/multiplier.tsxindex 4f80e742..86104814 100644--- a/src/components/ads/multiplier.tsx+++ b/src/components/ads/multiplier.tsx@@ -21,6 +21,8 @@ import { useAskBeforeUpload, useModelAccess } from "@/lib/api";import { keepOffered, offered } from "@/lib/model-access";import type { ExampleRowData } from "@/lib/examples/types";import { cn } from "@/lib/utils";+import { UNAVAILABLE_OPTION, UnavailableNote, useUnavailableNote } from "@/components/ui/unavailable";+import { listWords, type Unavailable } from "@/lib/unavailable";import { toastError } from "@/lib/refusals";import { addRuns, send, useEstimate } from "@/components/marketing/hooks";import type { ModelInfo } from "@/components/marketing/model-info";@@ -30,15 +32,35 @@ import { uploadFrame } from "./frames";type Quality = (typeof MULTIPLIER.qualities)[number];-const Seg = <T extends string>({ value, options, onChange, label }: { value: T; options: { id: T; label: string; title?: string }[]; onChange: (v: T) => void; label: string }) => (- <div role="radiogroup" aria-label={label} className="inline-flex rounded-full bg-muted p-0.5">- {options.map((o) => (- <button key={o.id} type="button" role="radio" aria-checked={value === o.id} title={o.title} onClick={() => onChange(o.id)} className={cn("h-7 rounded-full px-3 text-[12px] font-medium text-muted-foreground", value === o.id && "bg-background text-foreground shadow-soft")}>- {o.label}- </button>- ))}- </div>-);+/** A segmented choice; an option the picked model can't make stays in view, muted, and says why (src/lib/unavailable.ts). */+function Seg<T extends string>({ value, options, onChange, label }: { value: T; options: { id: T; label: string; title?: string; unavailable?: Unavailable }[]; onChange: (v: T) => void; label: string }) {+ const opts = options.map((o) => ({ ...o, value: o.id }));+ const note = useUnavailableNote(opts);+ const held = opts.find((o) => o.value === value)?.unavailable;+ return (+ <div>+ <div role="radiogroup" aria-label={label} className="inline-flex rounded-full bg-muted p-0.5">+ {opts.map((o) => {+ const off = note.isUnavailable(o);+ return (+ <button+ key={o.id}+ type="button"+ role="radio"+ aria-checked={value === o.id && !off}+ onClick={() => note.press(o, onChange)}+ {...note.optionProps(o)}+ className={cn("h-7 rounded-full px-3 text-[12px] font-medium text-muted-foreground", value === o.id && !off && "bg-background text-foreground shadow-soft", off && UNAVAILABLE_OPTION)}+ >+ {o.label}+ </button>+ );+ })}+ </div>+ <UnavailableNote {...note.noteProps} reason={note.reason ?? held} />+ </div>+ );+}/** The reference ad: drop, upload or pick a clip (4–30 s). */function ReferenceDrop({ onFile, onPick }: { onFile: (f: File) => void; onPick: (v: SlotValue) => void }) {@@ -209,6 +231,15 @@ export function AdMultiplier({ models, examples }: { models: Record<string, Modeconst modelId = picked && choices.some((c) => c.id === picked) ? picked : choices[0].id;const model = models[modelId];const maxImages = engine === "open" ? 1 : (model?.maxImages ?? 0);+ // Recreate (no section changes) runs the picked model's video edit: a size it doesn't make says so, with the closest it does.+ const qualityOff = (q: Quality): Unavailable | undefined => {+ const sizes = model?.editSizes;+ if (!model || sizes === undefined) return undefined;+ if (sizes === false) return { why: engine === "open" ? `${model.name} makes its own size when it recreates an ad` : `${model.name} keeps the reference's size when it recreates an ad` };+ if (sizes.some((s) => s.toLowerCase() === q.toLowerCase())) return undefined;+ const use = MULTIPLIER.qualities.find((x) => sizes.some((s) => s.toLowerCase() === x.toLowerCase()));+ return { why: `${model.name} makes ${listWords(sizes)}`, ...(use && { fix: { label: `Use ${use}`, run: () => setQuality(use) } }) };+ };const cut = range ?? (duration ? initialClip(duration) : null);const length = cut ? cut.end - cut.start : 0;const ready = !!video && !video.uploading && !!video.ref && duration != null && !!cut;@@ -458,9 +489,9 @@ export function AdMultiplier({ models, examples }: { models: Record<string, Modelabel="Quality"value={quality}onChange={setQuality}- options={MULTIPLIER.qualities.map((q) => ({ id: q, label: q, title: engine === "open" && q === "1080p" ? "Made at 720p here" : undefined }))}+ options={MULTIPLIER.qualities.map((q) => ({ id: q, label: q, title: engine === "open" && q === "1080p" ? "Made at 720p here" : undefined, unavailable: sections ? undefined : qualityOff(q) }))}/>- {engine === "open" && quality === "1080p" && <p className="mt-1 text-[11px] text-muted-foreground">Made at {multiplierResolution(quality, engine)} on open-source models</p>}+ {engine === "open" && quality === "1080p" && (sections || model?.editSizes !== false) && <p className="mt-1 text-[11px] text-muted-foreground">Made at {multiplierResolution(quality, engine)} on open-source models</p>}</div><div className="min-w-0"><p className="mb-1.5 text-[12px] font-medium text-muted-foreground">Versions</p>diff --git a/src/components/captions/captions-studio.tsx b/src/components/captions/captions-studio.tsxindex c011b157..a0573ad3 100644--- a/src/components/captions/captions-studio.tsx+++ b/src/components/captions/captions-studio.tsx@@ -389,8 +389,9 @@ function Preview({<spanclassName={cn("leading-tight", box && "rounded-md bg-black/60 px-2 py-0.5")}style={{- fontFamily: `${style.font}, var(--font-sans), sans-serif`,- fontWeight: style.weight,+ // What the burner draws: the open burner's one font, not the style's.+ fontFamily: BURN_CAPS[route].fonts ? `${style.font}, var(--font-sans), sans-serif` : "var(--font-sans), sans-serif",+ fontWeight: BURN_CAPS[route].fonts ? style.weight : 600,fontSize: Math.max(11, (h * OPEN_FONT_SIZE[look.size]) / 100),color,textShadow: box ? undefined : "0 0 3px #000, 0 0 3px #000, 0 1px 2px #000",@@ -432,7 +433,7 @@ function StylePanel({ look, route, onChange }: { look: CaptionLook; route: BurnRonClick={() => onChange({ ...look, style: s.id, color: undefined })}className={cn("flex flex-col items-center gap-1 rounded-xl border p-2 transition-colors", look.style === s.id ? "border-primary bg-brand-faint" : "hover:bg-accent")}>- <span aria-hidden className={cn("grid h-9 w-full place-items-center rounded-md bg-[oklch(0.3_0.02_260)] text-[13px] leading-none", s.box && caps.box && "px-1")} style={{ fontWeight: s.weight, fontFamily: `${s.font}, var(--font-sans), sans-serif` }}>+ <span aria-hidden className={cn("grid h-9 w-full place-items-center rounded-md bg-[oklch(0.3_0.02_260)] text-[13px] leading-none", s.box && caps.box && "px-1")} style={caps.fonts ? { fontWeight: s.weight, fontFamily: `${s.font}, var(--font-sans), sans-serif` } : { fontWeight: 600 }}><span className={cn(s.box && caps.box && "rounded bg-black/70 px-1 py-0.5")} style={{ color: s.color, textShadow: s.box && caps.box ? undefined : "0 0 2px #000" }}>{s.upper ? "AA" : "Aa"}{s.karaoke && <span style={caps.highlight !== "none" ? { color: s.highlight } : undefined}>a</span>}diff --git a/src/components/marketing/model-info.ts b/src/components/marketing/model-info.tsindex a3b7f9bd..8a36e69c 100644--- a/src/components/marketing/model-info.ts+++ b/src/components/marketing/model-info.ts@@ -1,5 +1,6 @@import { getModel } from "@/lib/catalog";import { FORMATS, formatModels, MULTIPLIER_MODELS, UGC_MODELS, type FormatId } from "@/lib/catalog/marketing";+import { opTakes } from "@/lib/catalog/route-takes";import type { Engine, ModelDef } from "@/lib/catalog/types";/**@@ -15,6 +16,11 @@ export interface ModelInfo {voices?: { id: string; name: string; hint?: string }[];voiceClone?: boolean;maxImages?: number;+ /**+ * The sizes its video edit makes (Ad Multiplier's recreate): false when the edit sends no size (Kling O3 keeps the+ * reference's; Fuobe Genjutsu on your GPU makes its own), a list when it makes only those. Unset: no video edit.+ */+ editSizes?: string[] | false;}const slim = (m: ModelDef): ModelInfo => ({@@ -25,8 +31,18 @@ const slim = (m: ModelDef): ModelInfo => ({...(m.options.voices?.length && { voices: m.options.voices.map((v) => ({ id: v.id, name: v.name, hint: v.hint })) }),...(m.options.voiceClone && { voiceClone: true }),...(m.options.maxImages != null && { maxImages: m.options.maxImages }),+ ...editSizes(m),});+/** What its video edit does with Quality (ModelInfo.editSizes). */+function editSizes(m: ModelDef): Pick<ModelInfo, "editSizes"> {+ const op = m.routes.some((r) => r.op === "v2v") ? "v2v" : m.routes.some((r) => r.op === "motion-transfer") ? "motion-transfer" : undefined;+ if (!op) return {};+ // The open recreate (motion transfer) is sent no size: its graph makes its own.+ if (m.engine === "open" || !opTakes(m, op).resolution) return { editSizes: false };+ return m.options.resolutions?.length ? { editSizes: [...m.options.resolutions] } : {};+}+/** Every model a marketing flow can name, by id. */export function marketingModelInfo(): Record<string, ModelInfo> {const ids = new Set<string>(["text-llm", "oss-text-llm", "oss-qwen-image-21", "oss-infinitetalk-long", "nano-banana-pro", "oss-qwen-image-21-turbo"]);diff --git a/src/components/mixed-media/mixed-studio.tsx b/src/components/mixed-media/mixed-studio.tsxindex ed30942f..bb6053a7 100644--- a/src/components/mixed-media/mixed-studio.tsx+++ b/src/components/mixed-media/mixed-studio.tsx@@ -384,7 +384,15 @@ function Editor({const resOptions = MIXED.resolutions.map((r, i) => {if (frameMode) {const capped = r === "4K" && cloud && (modelId === "seedream-5-flash" || original);- return { value: r, label: r, hint: undefined, disabled: capped, title: capped ? `${model?.name} draws frames up to 2K` : `Each frame at ${r}` };+ // Your GPU's per-frame graph draws up to 1536 px on the long side: 2K and 4K would come out the same as 1K.+ const gpuCap = !cloud && r !== "1K";+ return {+ value: r,+ label: r,+ hint: undefined,+ disabled: capped || gpuCap,+ title: gpuCap ? "Your GPU draws each frame up to 1536 px: 2K and 4K are per frame in the cloud" : capped ? `${model?.name} draws frames up to 2K` : `Each frame at ${r}`,+ };}const at = fast ? nearestResolution(model?.resolutions, r) : undefined;const prev = i > 0 && fast ? nearestResolution(model?.resolutions, MIXED.resolutions[i - 1]) : undefined;diff --git a/src/components/storyboard-view.tsx b/src/components/storyboard-view.tsxindex 885095c4..62870fa0 100644--- a/src/components/storyboard-view.tsx+++ b/src/components/storyboard-view.tsx@@ -25,6 +25,7 @@ import { COMPUTER_KICK_EVENT, useCreateGeneration, useEngine, useGenerationActioimport { askDeleteForGood } from "@/components/studio/delete-for-good";import {MAX_FRAMES,+ boardShapeProblem,ONE_SHEET_GPU_TEST,sheetCrop,sheetPanelLimit,@@ -38,6 +39,7 @@ import {} from "@/lib/catalog/storyboard";import { lookCard } from "@/lib/catalog/soul-cards";import type { Engine, Generation } from "@/lib/catalog/types";+import { UNAVAILABLE_OPTION, UnavailableNote, useUnavailableNote } from "@/components/ui/unavailable";import { timeAgo } from "@/lib/format";import { BOARD_TITLES_KEY, boardTitle, filmReady, rememberTitle } from "@/lib/storyboard-board";import { animateHref, MAX_KEYS } from "@/lib/inbetween";@@ -109,21 +111,35 @@ async function startRun<T>(url: string, body: unknown): Promise<T> {return b;}-function RatioPill({ value, onChange }: { value: string; onChange: (v: string) => void }) {+/** The board's shape; a shape these frames can't be made in stays in view, muted, and says why (src/lib/unavailable.ts). */+function RatioPill({ value, onChange, problem }: { value: string; onChange: (v: string) => void; problem?: (a: string) => string | undefined }) {+ const opts = ASPECTS.map((a) => {+ const why = problem?.(a);+ return { value: a, unavailable: why ? { why } : undefined };+ });+ const note = useUnavailableNote(opts);+ const held = opts.find((o) => o.value === value)?.unavailable;return (- <div role="radiogroup" aria-label="Aspect ratio" className="flex flex-wrap gap-1 rounded-full bg-muted p-0.5">- {ASPECTS.map((a) => (- <button- key={a}- type="button"- role="radio"- aria-checked={value === a}- onClick={() => onChange(a)}- className={cn("h-7 rounded-full px-2.5 text-[12px] font-medium whitespace-nowrap text-muted-foreground transition", value === a && "bg-background text-foreground shadow-soft")}- >- {a}- </button>- ))}+ <div className="contents">+ <div role="radiogroup" aria-label="Aspect ratio" className="flex flex-wrap gap-1 rounded-full bg-muted p-0.5">+ {opts.map((o) => {+ const off = note.isUnavailable(o);+ return (+ <button+ key={o.value}+ type="button"+ role="radio"+ aria-checked={value === o.value && !off}+ onClick={() => note.press(o, onChange)}+ {...note.optionProps(o)}+ className={cn("h-7 rounded-full px-2.5 text-[12px] font-medium whitespace-nowrap text-muted-foreground transition", value === o.value && !off && "bg-background text-foreground shadow-soft", off && UNAVAILABLE_OPTION)}+ >+ {o.value}+ </button>+ );+ })}+ </div>+ <UnavailableNote {...note.noteProps} reason={note.reason ?? held} /></div>);}@@ -728,7 +744,7 @@ export function StoryboardView({)}{sheetLimit > 0 && <SheetPill value={sheet} onChange={setSheet} />}{!sheet && <LookChip value={look} strength={lookStrength} onChange={(id) => setLook(id)} onStrength={setLookStrength} none="No look" />}- <RatioPill value={aspect} onChange={setAspect} />+ <RatioPill value={aspect} onChange={setAspect} problem={sheet ? undefined : (a) => boardShapeProblem({ engine, partner, look, aspectRatio: a })} />{!sheet && engine === "cloud" && <PartnerPill value={partner} onChange={setPartner} names={modelNames} />}{!sheet && engine === "open" && <NextScenePill value={nextScene} onChange={setNextScene} />}<div className="ml-auto flex shrink-0 items-center gap-2">diff --git a/src/components/studio/layout-editor.tsx b/src/components/studio/layout-editor.tsxindex c93a94c4..d0d43b57 100644--- a/src/components/studio/layout-editor.tsx+++ b/src/components/studio/layout-editor.tsx@@ -14,8 +14,10 @@ import { useLikelyVisitor } from "@/lib/api";import { responseError, toastError } from "@/lib/refusals";import type { ModelDef } from "@/lib/catalog/types";import { boxesAt, drawnBox, inkOn, keyResizedBox, KIND_COLOR, movedBox, newBox, nudgedBox, pickBox, resizedBox, type Handle } from "@/lib/layout-edit";-import { layoutCompilerFor, parseLayout, readsBoxes, type LayoutBox, type LayoutCanvas as CanvasType, type LayoutDraft, type LayoutItem, type LayoutLabel, type LayoutSource } from "@/lib/layout-prompt";+import { layoutCompilerFor, layoutReads, parseLayout, readsBoxes, type LayoutBox, type LayoutCanvas as CanvasType, type LayoutDraft, type LayoutItem, type LayoutLabel, type LayoutSource } from "@/lib/layout-prompt";import { cn } from "@/lib/utils";+import { UNAVAILABLE_OPTION, UnavailableNote, useUnavailableNote } from "@/components/ui/unavailable";+import type { Unavailable } from "@/lib/unavailable";import { radioKeys, radioTab } from "./radio-keys";/**@@ -155,6 +157,9 @@ function LayoutBoard({}: Parameters<typeof LayoutEditor>[0] & { escapeRef: React.RefObject<() => boolean>; keepRef: React.RefObject<() => void> }) {const [items, setItems] = useState<LayoutItem[]>(layout.items);const [canvasType, setCanvasType] = useState<CanvasType>(layout.summary.canvas);+ // What the picked model's layout form reads (layout-prompt.ts): FLUX.3's table is the caption and the boxes alone, and+ // Ideogram's JSON prompt takes the style tags but no canvas type. Plain sentences, MOSS and FIBO read both.+ const summaryReads = layoutReads(model);const [tags, setTags] = useState(layout.summary.meta.join(", "));const [caption, setCaption] = useState(startCaption);const [aspect, setAspect] = useState(startAspect ?? layout.aspect ?? "1:1");@@ -402,9 +407,22 @@ function LayoutBoard({<span id="layout-canvas-label" className="text-[12px] text-muted-foreground">Canvas</span>- <Segmented label="Canvas" labelledBy="layout-canvas-label" options={CANVASES} value={canvasType} onChange={setCanvasType} />+ <Segmented+ label="Canvas"+ labelledBy="layout-canvas-label"+ options={CANVASES.map((c) => ({ ...c, unavailable: c.value !== "single" && !summaryReads.canvas && model ? { why: `${model.name} reads the boxes and the caption only: ask for ${c.label.toLowerCase()} in the caption` } : undefined }))}+ value={canvasType}+ onChange={setCanvasType}+ /></div>- <Input aria-label="Style tags (optional, comma separated)" value={tags} onChange={(e) => setTags(e.target.value)} placeholder="Style tags (optional): poster, flat design" className="h-8 text-[13px]" />+ <Input+ aria-label="Style tags (optional, comma separated)"+ value={tags}+ onChange={(e) => setTags(e.target.value)}+ disabled={!summaryReads.tags}+ placeholder={summaryReads.tags || !model ? "Style tags (optional): poster, flat design" : `${model.name} reads no style tags: put the style in the caption`}+ className="h-8 text-[13px] disabled:cursor-not-allowed"+ /></div>{items.length === 0 && <p className="px-1 text-[13px] text-muted-foreground">Drag on the picture to draw a box for each thing to place: a headline, a product, a person.</p>}{items.map((it, i) => (@@ -594,29 +612,50 @@ function downloadJson(draft: LayoutDraft) {setTimeout(() => URL.revokeObjectURL(url), 1000);}-function Segmented<T extends string>({ label, labelledBy, options, value, onChange }: { label: string; labelledBy?: string; options: { value: T; label: string }[]; value: T; onChange: (v: T) => void }) {+function Segmented<T extends string>({+ label,+ labelledBy,+ options,+ value,+ onChange,+}: {+ label: string;+ labelledBy?: string;+ /** `unavailable`: a choice the picked model doesn't read (src/lib/unavailable.ts): muted, and pressing it says why. */+ options: { value: T; label: string; unavailable?: Unavailable }[];+ value: T;+ onChange: (v: T) => void;+}) {+ const note = useUnavailableNote(options);+ const held = options.find((o) => o.value === value)?.unavailable;return (- <div role="radiogroup" aria-label={labelledBy ? undefined : label} aria-labelledby={labelledBy} onKeyDown={radioKeys} className="inline-flex rounded-full bg-muted p-0.5">- {options.map((o) => {- const on = o.value === value;- return (- <button- key={o.value}- type="button"- role="radio"- aria-checked={on}- tabIndex={radioTab(on)}- onClick={() => onChange(o.value)}- className={cn(- "h-7 rounded-full px-2.5 text-[12px] font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:outline-none",- on ? "bg-background text-foreground shadow-soft" : "text-muted-foreground hover:text-foreground",- )}- >- {o.label}- </button>- );- })}- </div>+ <>+ <div role="radiogroup" aria-label={labelledBy ? undefined : label} aria-labelledby={labelledBy} onKeyDown={radioKeys} className="inline-flex rounded-full bg-muted p-0.5">+ {options.map((o) => {+ const off = note.isUnavailable(o);+ const on = o.value === value && !off;+ return (+ <button+ key={o.value}+ type="button"+ role="radio"+ aria-checked={on}+ tabIndex={radioTab(o.value === value)}+ onClick={() => note.press(o, onChange)}+ {...note.optionProps(o)}+ className={cn(+ "h-7 rounded-full px-2.5 text-[12px] font-medium transition-colors focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:outline-none",+ on ? "bg-background text-foreground shadow-soft" : "text-muted-foreground hover:text-foreground",+ off && UNAVAILABLE_OPTION,+ )}+ >+ {o.label}+ </button>+ );+ })}+ </div>+ <UnavailableNote {...note.noteProps} reason={note.reason ?? held} />+ </>);}diff --git a/src/components/turnaround/turnaround-dialog.tsx b/src/components/turnaround/turnaround-dialog.tsxindex 47a5683e..28a2903e 100644--- a/src/components/turnaround/turnaround-dialog.tsx+++ b/src/components/turnaround/turnaround-dialog.tsx@@ -35,6 +35,8 @@ import { formatCost } from "@/lib/format";import { toolPoolPrice } from "@/lib/run-place";import { useOpenFree } from "@/components/studio/run-place-chip";import { cn } from "@/lib/utils";+import { UNAVAILABLE_OPTION, UnavailableNote, useUnavailableNote } from "@/components/ui/unavailable";+import type { Unavailable } from "@/lib/unavailable";import { responseError, toastError } from "@/lib/refusals";/** The body /api/turnaround takes (src/server/turnaround.ts TurnaroundSchema). */@@ -230,6 +232,20 @@ function TurnaroundForm({ pictures, name, realPerson: realDefault = false, elemeconst usedRoute = p?.route ?? route;const camera = usedRoute === "camera";const stills = usedRoute === "stills";+ // A route on this engine that films landscape, for WorldCast's Landscape note (camera and stills have no Shape).+ const wide = p?.routes.find((r) => r !== "worldcast" && r !== "camera" && r !== "stills");+ const landscapeOff: Unavailable = {+ why: "WorldCast films portrait only",+ ...(wide && {+ fix: {+ label: `Switch to ${TURN_ROUTES[wide].name}`,+ run: () => {+ setRoute(wide);+ setAspect("16:9");+ },+ },+ }),+ };// QMA · 96 views is offered on your GPU when this install has it (its Stills route is listed then).const qmaHere = engine === "open" && !!p?.routes.includes("stills");const slotUrl = (k: SlotKey) => (k === "sheet" ? sheet : views[k]);@@ -350,7 +366,8 @@ function TurnaroundForm({ pictures, name, realPerson: realDefault = false, elemevalue={aspectRatio}options={[{ value: "9:16", label: "Portrait" },- { value: "16:9", label: "Landscape" },+ // WorldCast films portrait only (480 × 832): Landscape says so, and offers a route that films it.+ { value: "16:9", label: "Landscape", unavailable: usedRoute === "worldcast" ? landscapeOff : undefined },]}onChange={(v) => setAspect(v as "9:16" | "16:9")}/>@@ -418,25 +435,46 @@ function TurnaroundForm({ pictures, name, realPerson: realDefault = false, eleme);}-function Chips({ label, value, options, onChange, hint }: { label: string; value?: string; options: { value: string; label: string }[]; onChange: (v: string) => void; hint?: string }) {+function Chips({+ label,+ value,+ options,+ onChange,+ hint,+}: {+ label: string;+ value?: string;+ /** `unavailable`: a choice this route can't make (src/lib/unavailable.ts): muted, and pressing it says why. */+ options: { value: string; label: string; unavailable?: Unavailable }[];+ onChange: (v: string) => void;+ hint?: string;+}) {+ const note = useUnavailableNote(options);+ const held = options.find((o) => o.value === value)?.unavailable;return (<div className="min-w-0 space-y-1.5"><p className="text-[12.5px] font-medium">{label}</p><div role="radiogroup" aria-label={label} onKeyDown={radioKeys} className="flex flex-wrap gap-1.5">- {options.map((o) => (- <button- key={o.value}- type="button"- role="radio"- aria-checked={value === o.value}- tabIndex={radioTab(value === o.value)}- onClick={() => onChange(o.value)}- className={cn("h-8 rounded-full border px-3 text-[12.5px] font-medium transition-colors", value === o.value ? "border-primary bg-brand-faint text-brand-text" : "text-muted-foreground hover:bg-accent")}- >- {o.label}- </button>- ))}+ {options.map((o) => {+ const off = note.isUnavailable(o);+ const on = value === o.value && !off;+ return (+ <button+ key={o.value}+ type="button"+ role="radio"+ aria-checked={on}+ tabIndex={radioTab(value === o.value)}+ onClick={() => note.press(o, onChange)}+ {...note.optionProps(o)}+ className={cn("h-8 rounded-full border px-3 text-[12.5px] font-medium transition-colors", on ? "border-primary bg-brand-faint text-brand-text" : "text-muted-foreground hover:bg-accent", off && UNAVAILABLE_OPTION, off && "hover:bg-transparent")}+ >+ {o.label}+ </button>+ );+ })}</div>+ <UnavailableNote {...note.noteProps} reason={note.reason ?? held} />{hint && <p className="text-[11.5px] text-muted-foreground">{hint}</p>}</div>);diff --git a/src/lib/av/captions.ts b/src/lib/av/captions.tsindex e9f647b4..469f98d7 100644--- a/src/lib/av/captions.ts+++ b/src/lib/av/captions.ts@@ -111,12 +111,14 @@ export interface BurnCaps {highlight: "spoken" | "keywords" | "none";/** Karaoke styles show this many words at a time (0: the whole line). */karaokeWords: number;+ /** It draws each style's own font and weight (the open burner has one font of its own). */+ fonts: boolean;}export const BURN_CAPS: Record<BurnRoute, BurnCaps> = {- open: { positions: ["top", "bottom"], sizes: true, box: false, highlight: "none", karaokeWords: 3 },- veed: { positions: ["top", "center", "bottom"], sizes: false, box: true, highlight: "keywords", karaokeWords: 0 },- auto: { positions: ["top", "center", "bottom"], sizes: true, box: true, highlight: "spoken", karaokeWords: 3 },+ open: { positions: ["top", "bottom"], sizes: true, box: false, highlight: "none", karaokeWords: 3, fonts: false },+ veed: { positions: ["top", "center", "bottom"], sizes: false, box: true, highlight: "keywords", karaokeWords: 0, fonts: true },+ auto: { positions: ["top", "center", "bottom"], sizes: true, box: true, highlight: "spoken", karaokeWords: 3, fonts: true },};/** The look a burner will actually draw: a position it lacks falls back to the bottom. */@@ -139,7 +141,7 @@ export function burnPricePerMinute(route: BurnRoute, style: string, translated =/** What the style controls mean on this burner, in one line. */export function burnNote(route: BurnRoute): string {- if (route === "open") return "The open burner draws outlined text at the top or the bottom; karaoke styles show 3 words at a time, without a highlight.";+ if (route === "open") return "The open burner draws outlined text in one font of its own, at the top or the bottom: a style sets the colour and capitals, and karaoke styles show 3 words at a time, without a highlight.";if (route === "veed") return "Text size follows the style. Karaoke styles highlight key words, not each spoken one.";return "Auto Subtitle shows 3 words at a time and highlights the spoken word in karaoke styles.";}diff --git a/src/lib/catalog/cinema.ts b/src/lib/catalog/cinema.tsindex 2b83a257..5b365a0b 100644--- a/src/lib/catalog/cinema.ts+++ b/src/lib/catalog/cinema.ts@@ -1429,6 +1429,8 @@ function fitParams(model: ModelDef, input: CinemaGenerateInput, notes: string[],notes.push(`${model.name} renders up to ${params.resolution}`);}}+ // A hosted model with no sizes to pick (Kling 3.0, Seedream 5 Pro) makes its own: said, rather than the choice dropped.+ if (res && !tiers.length && model.engine === "cloud") notes.push(`${model.name} makes one size: Resolution doesn't change it`);if (kind === "video" && model.engine === "open" && typeof params.resolution === "string" && params.resolution.toLowerCase() === "2k") notes.push(H3_2K_OPEN_NOTE);if (kind === "video" && model.kind === "video") {const want = Math.max(DURATION.min, Math.min(DURATION.max, Math.round(input.duration ?? DURATION.default)));diff --git a/src/lib/catalog/storyboard.ts b/src/lib/catalog/storyboard.tsindex 52acd0a0..a2b1d1c0 100644--- a/src/lib/catalog/storyboard.ts+++ b/src/lib/catalog/storyboard.ts@@ -72,6 +72,16 @@ export const STORYBOARD_LOOK_MODEL = "fuobe-soul";export const STORYBOARD_ASPECTS = ["16:9", "9:16", "1:1", "4:3", "3:4", "21:9"] as const;export const LOOK_CROPPED = "21:9";+/**+ * Why a board can't make its frames in this shape, or undefined when it can: the cloud's own frame models (hosted Z-Image+ * Turbo and Qwen-Image-Edit, whose widest is fal's landscape_16_9) draw 21:9 as 16:9, and only a look's grade crops the+ * frames to 21:9. A partner model takes 21:9 itself.+ */+export function boardShapeProblem(o: { engine: Engine; partner?: StoryboardPartner; look?: string; aspectRatio: string }): string | undefined {+ if (o.aspectRatio !== LOOK_CROPPED || o.engine !== "cloud" || o.partner || o.look) return undefined;+ return "Cloud frames come out 16:9 at their widest: pick a look and they're cropped to 21:9, or pick a partner model";+}+const SHOTS = ["establishing wide shot","medium shot",diff --git a/src/lib/layout-prompt.ts b/src/lib/layout-prompt.tsindex 0a2fbf78..8b06f45f 100644--- a/src/lib/layout-prompt.ts+++ b/src/lib/layout-prompt.ts@@ -697,6 +697,12 @@ export interface CompiledLayout {}/** True when the model places boxes by their coordinates (MOSS-Image, FLUX.3, Ideogram 4.x). */+/** Which of a layout's summary settings the model's layout form reads: the canvas type (single, panels, collage) and the style tags. */+export function layoutReads(model: { options?: { layout?: LayoutFormat } } | undefined): { canvas: boolean; tags: boolean } {+ const f = model?.options?.layout;+ return { canvas: f !== "flux3" && f !== "ideogram", tags: f !== "flux3" };+}+export const readsBoxes = (model: { options?: { layout?: LayoutFormat } } | undefined): boolean => !!model?.options?.layout && BOX_READING_FORMATS.includes(model.options.layout);/** The compiler a model reads layouts with (ModelOptions.layout), plain sentences for the rest. */diff --git a/src/server/marketing.ts b/src/server/marketing.tsindex c57ed5c9..b9a90850 100644--- a/src/server/marketing.ts+++ b/src/server/marketing.ts@@ -49,6 +49,7 @@ import {} from "@/lib/catalog/marketing";import { dualEngine } from "@/lib/catalog/engines";import { routesFor } from "@/lib/catalog/plan";+import { opTakes } from "@/lib/catalog/route-takes";import { themeFrom, type AdLayout } from "@/components/ads/layout";import { adDraft } from "@/lib/layout-surfaces";import { LAYOUT_PARAM } from "@/lib/layout-prompt";@@ -415,6 +416,10 @@ export function planMarketing(input: MarketingInput, ctx: PlanContext): RunPlanconst productShot = open && modelId === MARKETING_IMAGE_MODEL && f.id === "product-standalone" && op === "edit" && images.length === 1;if (productShot) notes.push("Your product is cut out and relit into the scene, so it stays as it is");else if (open && op === "edit") notes.push("Qwen-Image 2.1 keeps your first photo's shape on your GPU");+ // Settings the picked model doesn't take are said before the run, never dropped without a word.+ else if (!open && !opTakes(model, op).aspect && !model.options.aspectRatios?.length) notes.push(`${model.name} keeps your photo's shape: Aspect ratio doesn't change it`);+ else if (aspect && input.aspectRatio && aspect !== input.aspectRatio) notes.push(`${model.name} makes ${aspect}, the closest to ${input.aspectRatio}`);+ if (model.options.promptless && prompt) notes.push(`${model.name} works from your photos alone: the words aren't used`);return {feature,engine: input.engine,@@ -464,6 +469,8 @@ export function planMarketing(input: MarketingInput, ctx: PlanContext): RunPlanconst steps: Step[] = [];const { after: frameAfter, ...frame } = op === "i2v" ? startFrame(steps, refs[0], aspect, model, `${feature}-step`) : { after: undefined };if (frameAfter) notes.push(`${model.name} keeps its first frame's shape: the photo is grown to ${aspect} on Qwen-Image 2.1 first`);+ else if (!open && op === "i2v" && !opTakes(model, "i2v").aspect) notes.push(`${model.name} keeps your photo's shape: Aspect ratio doesn't change it`);+ else if (aspect && input.aspectRatio && aspect !== input.aspectRatio) notes.push(`${model.name} makes ${aspect}, the closest to ${input.aspectRatio}`);steps.push(...shots.map((d, i): Step => ({@@ -1043,7 +1050,8 @@ export function planMultiplier(input: MultiplierInput, ctx: MultiplierContext):inputs: { ...src.inputs, ...(m.images.length && { images: m.images }) },// The clip's length prices the edit (a v2v route sends none); the reference's own sound is kept (Kling's// keep_audio, Happy Horse's audio_setting "origin").- params: { resolution, duration: round(end - start), ...(KEEP_SOUND[model.id] && { extra: KEEP_SOUND[model.id] }) },+ // A size the model makes (Happy Horse: 720p or 1080p), never one it would refuse.+ params: { resolution: nearestRes(resolution, model), duration: round(end - start), ...(KEEP_SOUND[model.id] && { extra: KEEP_SOUND[model.id] }) },chain: src.chain,title,batchTitle: title,diff --git a/tests/inert-controls.test.ts b/tests/inert-controls.test.tsindex 69111d1d..e6c29507 100644--- a/tests/inert-controls.test.ts+++ b/tests/inert-controls.test.ts@@ -46,3 +46,54 @@ describe("buttons that answer every press", () => {expect(src("src/components/kinetic/editor.tsx")).toContain('waiting={plan ? null : "Getting the scene ready…"}');});});++describe("studio pickers say what the picked model can't do", () => {+ it("Storyboard: 21:9 on the cloud's own frame models needs a look or a partner", async () => {+ const { boardShapeProblem } = await import("@/lib/catalog/storyboard");+ expect(boardShapeProblem({ engine: "cloud", aspectRatio: "21:9" })).toMatch(/16:9 at their widest/);+ expect(boardShapeProblem({ engine: "cloud", aspectRatio: "21:9", look: "noir" })).toBeUndefined();+ expect(boardShapeProblem({ engine: "cloud", aspectRatio: "16:9" })).toBeUndefined();+ expect(boardShapeProblem({ engine: "open", aspectRatio: "21:9" })).toBeUndefined();+ // The reason holds: the cloud's frame models draw 21:9 as their 16:9 size.+ const { getModel } = await import("@/lib/catalog");+ const { STORYBOARD_MODELS } = await import("@/lib/catalog/storyboard");+ for (const id of [STORYBOARD_MODELS.cloud.first, STORYBOARD_MODELS.cloud.next]) {+ const route = getModel(id)!.routes.find((r) => r.map?.aspectRatio)!;+ const f = route.map!.aspectRatio as { values?: Record<string, unknown> };+ expect(f.values?.["21:9"]).toBe(f.values?.["16:9"]);+ }+ });++ it("Layout: FLUX.3 reads no canvas type or style tags, Ideogram no canvas type", async () => {+ const { layoutReads } = await import("@/lib/layout-prompt");+ expect(layoutReads({ options: { layout: "flux3" } })).toEqual({ canvas: false, tags: false });+ expect(layoutReads({ options: { layout: "ideogram" } })).toEqual({ canvas: false, tags: true });+ expect(layoutReads({ options: { layout: "moss" } })).toEqual({ canvas: true, tags: true });+ expect(layoutReads(undefined)).toEqual({ canvas: true, tags: true });+ });++ it("Captions: the open burner's preview draws its own font", async () => {+ const { BURN_CAPS, burnNote } = await import("@/lib/av/captions");+ expect(BURN_CAPS.open.fonts).toBe(false);+ expect(BURN_CAPS.veed.fonts).toBe(true);+ expect(burnNote("open")).toMatch(/one font/);+ });++ it("Ad Multiplier: Quality knows what each recreate model makes", async () => {+ const { marketingModelInfo } = await import("@/components/marketing/model-info");+ const info = marketingModelInfo();+ // Kling O3's edit sends no size (it keeps the reference's); Genjutsu on your GPU is sent none either.+ expect(info["kling-o3"]?.editSizes).toBe(false);+ expect(info["fuobe-genjutsu-motion"]?.editSizes).toBe(false);+ const hh = info["happy-horse-video-edit"]?.editSizes;+ expect(Array.isArray(hh) && !hh.includes("480p")).toBe(true);+ });++ it("Turnaround: Landscape on WorldCast says it films portrait", () => {+ expect(src("src/components/turnaround/turnaround-dialog.tsx")).toContain('why: "WorldCast films portrait only"');+ });++ it("Mixed Media: 2K and 4K per frame on your GPU say the 1536 px limit", () => {+ expect(src("src/components/mixed-media/mixed-studio.tsx")).toContain("const gpuCap = !cloud && r !== \"1K\";");+ });+});