diff --git a/apps/website/src/config/workshop-browse-content.test.ts b/apps/website/src/config/workshop-browse-content.test.ts index 0b8cd3e4afc..0efebd7a5bb 100644 --- a/apps/website/src/config/workshop-browse-content.test.ts +++ b/apps/website/src/config/workshop-browse-content.test.ts @@ -4,8 +4,14 @@ import { assertNoModelSlugAliasCollisions, authoredRouterModelSlugAliases, authoredWorkshopModels, + correctedUseCase, + editorialSummariesFor, + modelDisplayName, + modelSummaryFor, + publishableMedia, routerModelSlugAliases, routerWorkshopModelPaths, + unpublishedSummaryWarning, workshopModels } from './workshop-browse-content' import { @@ -141,213 +147,150 @@ describe('model availability', () => { }) }) -const KNOWN_DUPLICATE_SUMMARIES: ReadonlyArray< - readonly [string, readonly string[]] -> = [ - [ - 'Generates an image from text with up to 9 reference images.', - [ - 'bfl--flux-2-pro--generate-images', - 'luma_2--uni-1-image-generation--generate-images' - ] - ], - [ - 'Generates a video from a mix of reference images, videos, and audio.', - [ - 'byteplus--seedance-2-fast-reference--generate-videos', - 'byteplus--seedance-2-reference--generate-videos' - ] - ], - [ - 'Generates a short video clip with audio from text.', - [ - 'byteplus--seedance-2-fast-text-to-video--generate-videos', - 'byteplus--seedance-2-text-to-video--generate-videos' - ] - ], - [ - 'Generates or edits an image at up to ~4K with up to 10 reference images.', - [ - 'byteplus--seedream-4--edit-images', - 'byteplus--seedream-4--generate-images' - ] - ], - [ - 'Generates or edits an image with higher quality than 4.0, minimum 3.68MP.', - [ - 'byteplus--seedream-4-5--edit-images', - 'byteplus--seedream-4-5--generate-images' - ] - ], - [ - 'Generates or edits an image with up to 14 reference images, PNG output.', - [ - 'byteplus--seedream-5-lite--edit-images', - 'byteplus--seedream-5-lite--generate-images' - ] - ], - [ - 'Generates or edits a 1K or 2K image with up to 10 references.', - [ - 'byteplus--seedream-5-pro--edit-images', - 'byteplus--seedream-5-pro--generate-images' - ] - ], - [ - 'Generates or edits video with audio through Gemini Omni 1.1 interactions. Length (3-10s) is set in the prompt; 360p to 4k.', - [ - 'gemini--omni-1.1-flash--animate-images', - 'gemini--omni-1.1-flash--edit-videos', - 'gemini--omni-1.1-flash--generate-videos' - ] - ], - [ - 'Generates or edits video with audio through Gemini Omni Flash interactions. Length (3-10s) is set in the prompt; 360p to 4k.', - [ - 'gemini--omni-flash-preview--animate-images', - 'gemini--omni-flash-preview--edit-videos', - 'gemini--omni-flash-preview--generate-videos' - ] - ], - [ - 'Generates a cinematic video clip from text.', - [ - 'kling--text-to-video--generate-videos', - 'luma--ray-2-text-to-video--generate-videos' - ] - ], - [ - 'Generates or edits an image with top-tier text rendering, 1K/2K/4K output, reference images, and optional mask inpainting.', - [ - 'openai--gpt-image-2--generate-images', - 'openai--gpt-image-2.5-flare--generate-images', - 'openai--gpt-image-2.5-sunburst--generate-images' - ] - ], - [ - 'Edits one to three images.', - [ - 'qwen--qwen-image-3.0-image-edit--edit-images', - 'qwen--qwen-image-3.0-pro-image-edit--edit-images' - ] - ], - [ - 'Generates an SVG illustration from a text prompt.', - [ - 'recraft--v3-text-to-vector--generate-images', - 'recraft--v4-text-to-vector--generate-images' - ] - ], - [ - 'Generates raster images.', - [ - 'recraft--v4.1-pro-text-to-image--generate-images', - 'recraft--v4.1-text-to-image--generate-images', - 'recraft--v4.1-utility-pro-text-to-image--generate-images', - 'recraft--v4.1-utility-text-to-image--generate-images' - ] - ], - [ - 'Generates SVG illustrations.', - [ - 'recraft--v4.1-pro-text-to-vector--generate-images', - 'recraft--v4.1-text-to-vector--generate-images', - 'recraft--v4.1-utility-pro-text-to-vector--generate-images', - 'recraft--v4.1-utility-text-to-vector--generate-images' - ] - ], - [ - 'Generates or edits an image quickly with up to 14 reference images (Gemini 2.5 Flash Image / Nano Banana).', - [ - 'vertexai--gemini-2.5-flash-image--edit-images', - 'vertexai--gemini-2.5-flash-image--generate-images' - ] - ], - [ - 'Generates a high-quality image with selectable 1K/2K/4K resolution (Gemini 3 Pro Image).', - [ - 'vertexai--gemini-3-pro-image--edit-images', - 'vertexai--gemini-3-pro-image--generate-images' - ] - ], - [ - 'Generates or edits images at up to 4K with up to 14 reference images and adjustable thinking (Nano Banana 2 / Gemini 3.1 Flash Image).', - [ - 'vertexai--gemini-nano-banana-2--edit-images', - 'vertexai--gemini-nano-banana-2--generate-images' - ] - ], - [ - 'Generates a cinematic video clip with native audio from text.', - ['vertexai--veo-3--animate-images', 'vertexai--veo-3--generate-videos'] - ], - [ - 'Edits an existing video from a prompt and optional reference images.', - [ - 'wan--happyhorse-video-edit--edit-videos', - 'wan--video-edit-2.7--edit-videos' - ] - ], - [ - 'Generates a video clip from text with optional driving audio.', - [ - 'wan--text-to-video--generate-videos', - 'wan--text-to-video-2.7--generate-videos' - ] - ], - [ - 'Upscales an image to 2K/4K/8K with sharp, detailed results.', - [ - 'wavespeed--seedvr2-image--edit-images', - 'wavespeed--ultimate-image-upscaler--edit-images' - ] - ], - [ - 'Generates a short video clip from text or a start frame.', - [ - 'xai--grok-imagine-video--animate-images', - 'xai--grok-imagine-video--generate-videos' - ] - ], - [ - 'Generates a 1–15 second video at up to 1080p from text or a start frame.', - [ - 'xai--grok-imagine-video-1.5--animate-images', - 'xai--grok-imagine-video-1.5--generate-videos' - ] - ] -] - function normaliseSummary(summary: string): string { return summary.trim().toLowerCase().replace(/\s+/g, ' ') } describe('model summaries', () => { - it('ships no duplicate summary beyond the known groups', () => { + it('gives every model page a summary', () => { + const missing = workshopModels + .filter(({ summary }) => !summary?.trim()) + .map(({ slug }) => slug) + + expect(missing).toEqual([]) + }) + + it('ships no summary shared by two pages', () => { const slugsBySummary = new Map() for (const { slug, summary } of workshopModels) { if (!summary) continue const key = normaliseSummary(summary) slugsBySummary.set(key, [...(slugsBySummary.get(key) ?? []), slug]) } - const known = new Map( - KNOWN_DUPLICATE_SUMMARIES.map(([summary, slugs]) => [ - normaliseSummary(summary), - slugs - ]) - ) - expect(known.size).toBe(KNOWN_DUPLICATE_SUMMARIES.length) const problems = [...slugsBySummary] .filter(([, slugs]) => slugs.length > 1) - .filter(([key, slugs]) => - slugs.some((slug) => !known.get(key)?.includes(slug)) - ) .map( ([key, slugs]) => - `Duplicate summary on ${slugs.join(', ')}: "${key}". Summaries come from the partner descriptions imported by scripts/generate-workshop-catalog.ts; get those made distinct upstream.` + `Duplicate summary on ${slugs.join(', ')}: "${key}". Write a distinct one per page in src/data/workshop-model-summaries.json.` ) expect(problems).toEqual([]) }) }) + +describe('editorial summary overrides', () => { + it('trims each override for a model page', () => { + expect( + editorialSummariesFor({ 'a--b': ' Distinct copy. ' }, new Set(['a--b'])) + ).toEqual(new Map([['a--b', 'Distinct copy.']])) + }) + + it.for([ + { + case: 'a page that is not a model page', + slug: 'missing', + summary: 'Copy.' + }, + { case: 'a blank override', slug: 'a--b', summary: ' ' } + ])('rejects $case', ({ slug, summary }) => { + expect(() => + editorialSummariesFor({ [slug]: summary }, new Set(['a--b'])) + ).toThrow(`Invalid model summary for page: ${slug}`) + }) + + it('warns only about overrides for pages this build does not publish', () => { + expect(unpublishedSummaryWarning(['a', 'b', 'c'], new Set(['b']))).toBe( + 'Model summaries kept for pages this build does not publish: a, c' + ) + expect(unpublishedSummaryWarning(['b'], new Set(['b']))).toBeUndefined() + }) + + it.for([ + { + editorial: 'Editorial.', + description: 'Draws images.', + summary: 'Editorial.' + }, + { + editorial: undefined, + description: 'Draws images (Model).', + summary: 'Draws images.' + }, + { editorial: undefined, description: '', summary: undefined } + ])( + 'summarises $description with editorial $editorial as $summary', + ({ editorial, description, summary }) => { + expect( + modelSummaryFor(editorial, description, { + name: 'Model', + provider: 'Provider' + }) + ).toBe(summary) + } + ) +}) + +describe('browse model fields', () => { + it('applies the entry override before the Router override and the authored use case', () => { + const overrides = new Map([ + ['entry', 'edit-images' as const], + ['router', 'audio' as const] + ]) + expect( + [ + { entryId: 'entry', routerId: 'router' }, + { entryId: 'other', routerId: 'router' }, + { entryId: 'other', routerId: 'other' } + ].map((ids) => correctedUseCase(overrides, ids, 'generate-images')) + ).toEqual(['edit-images', 'audio', 'generate-images']) + }) + + it('withholds media from a page whose media shows the wrong model', () => { + const thumbnail = { + url: 'https://example.com/t.png', + kind: 'image' as const + } + const media = { thumbnail, samples: Array(8).fill(thumbnail) } + expect(publishableMedia(media, false)).toEqual({ + exampleCount: 6, + thumbnail + }) + expect(publishableMedia({}, false)).toEqual({ + exampleCount: 0, + thumbnail: undefined + }) + expect(publishableMedia(media, true)).toEqual({ + exampleCount: 0, + thumbnail: undefined + }) + }) + + it.for([ + { + case: 'the authored name', + names: { authored: 'Authored', canonical: 'Canonical', shared: 2 }, + expected: 'Authored' + }, + { + case: 'the entry name when models share a Router use case', + names: { canonical: 'Canonical', shared: 2 }, + expected: 'Entry' + }, + { + case: 'the canonical name', + names: { canonical: 'Canonical', shared: 1 }, + expected: 'Canonical' + }, + { case: 'the entry name', names: {}, expected: 'Entry' } + ])('names a model with $case', ({ names, expected }) => { + expect( + modelDisplayName({ + authored: names.authored, + canonical: names.canonical, + entry: 'Entry', + modelsSharingRouterUseCase: names.shared + }) + ).toBe(expected) + }) +}) diff --git a/apps/website/src/config/workshop-browse-content.ts b/apps/website/src/config/workshop-browse-content.ts index 7f331836c5e..313c3314ea3 100644 --- a/apps/website/src/config/workshop-browse-content.ts +++ b/apps/website/src/config/workshop-browse-content.ts @@ -4,9 +4,11 @@ import indexJson from '@/content/workshop-router-index.json' import aliasesJson from '@/content/workshop-router-aliases.json' import displayNames from '@/data/workshop-router-display-names.json' import useCaseOverrides from '@/data/workshop-use-case-overrides.json' +import summaryOverrides from '@/data/workshop-model-summaries.json' import { workshopDisplayEntriesSchema } from '@/content/workshop-display.schema' import { workshopModelSchema } from '@/content/workshop-models.schema' import type { WorkshopModelEntry } from '@/content/workshop-models.schema' +import type { WorkshopDisplayEntry } from '@/content/workshop-display.schema' import type { Modality, UseCase, RouterWorkshopModel } from './models-catalogue' import { USE_CASES } from './models-catalogue' import { workshopRouterIndexSchema } from './workshop-router-index' @@ -76,6 +78,29 @@ function taskForUseCases( export const workshopDisplayEntries = workshopDisplayEntriesSchema.parse(displayJson) const displaySlugs = new Set(workshopDisplayEntries.map((entry) => entry.slug)) +const modelPageSlugs = new Set( + workshopDisplayEntries + .filter((entry) => entry.type === undefined || entry.type === 'MODEL') + .map((entry) => entry.slug) +) + +export function editorialSummariesFor( + overrides: Readonly>, + pageSlugs: ReadonlySet +): ReadonlyMap { + const summaries = new Map( + Object.entries(overrides).map(([slug, summary]) => [slug, summary.trim()]) + ) + for (const [slug, summary] of summaries) + if (!pageSlugs.has(slug) || !summary) + throw new Error(`Invalid model summary for page: ${slug}`) + return summaries +} + +const editorialSummaries = editorialSummariesFor( + summaryOverrides, + modelPageSlugs +) for (const slug of modelOrderRank.keys()) if (!displaySlugs.has(slug)) throw new Error(`Recommended model order names an unknown page: ${slug}`) @@ -129,6 +154,23 @@ export const authoredRouterContentBySlug = new Map( export const routerContentBySlug = new Map( publishedContentSources.map((source) => [source.overlay.slug, source]) ) + +export function unpublishedSummaryWarning( + summarySlugs: Iterable, + publishedSlugs: Pick, 'has'> +): string | undefined { + const unpublished = [...summarySlugs].filter( + (slug) => !publishedSlugs.has(slug) + ) + if (!unpublished.length) return undefined + return `Model summaries kept for pages this build does not publish: ${unpublished.join(', ')}` +} + +const summaryWarning = unpublishedSummaryWarning( + editorialSummaries.keys(), + routerContentBySlug +) +if (summaryWarning) console.warn(summaryWarning) export const routerContentById = new Map( routerIndex.flatMap((record) => { const sources = publishedContentSources.filter( @@ -138,28 +180,76 @@ export const routerContentById = new Map( }) ) +export function correctedUseCase( + overrides: ReadonlyMap, + ids: { entryId: string; routerId: string }, + authored: UseCase +): UseCase { + return overrides.get(ids.entryId) ?? overrides.get(ids.routerId) ?? authored +} + +export function publishableMedia( + media: WorkshopDisplayEntry['media'], + hasContentIssue: boolean +) { + if (hasContentIssue) return { exampleCount: 0, thumbnail: undefined } + return { + exampleCount: Math.min(6, media.samples?.length ?? 0), + thumbnail: media.thumbnail + } +} + +export function modelDisplayName(names: { + authored?: string + canonical?: string + entry: string + modelsSharingRouterUseCase?: number +}): string { + const disambiguated = + (names.modelsSharingRouterUseCase ?? 0) > 1 ? names.entry : undefined + return names.authored ?? disambiguated ?? names.canonical ?? names.entry +} + +export function modelSummaryFor( + editorial: string | undefined, + description: string, + model: { name: string; provider: string } +): string | undefined { + if (editorial !== undefined) return editorial + return description + ? modelSummary(description, model.name, model.provider) + : undefined +} + const browseModels: readonly RouterWorkshopModel[] = contentSources.map( ({ entry, overlay, binding, record }) => { const useCases = [ - correctedUseCases.get(entry.id) ?? - correctedUseCases.get(record.id) ?? + correctedUseCase( + correctedUseCases, + { entryId: entry.id, routerId: record.id }, overlay.useCase + ) ] - const exampleCount = Math.min( - 6, - binding.contentIssue ? 0 : (overlay.media.samples?.length ?? 0) + const { exampleCount, thumbnail } = publishableMedia( + overlay.media, + binding.contentIssue !== undefined ) - const thumbnail = binding.contentIssue ? undefined : overlay.media.thumbnail const slug = overlay.slug const recommendedRank = modelOrderRank.get(slug) - const name = - overlay.displayName ?? - ((sharedNames.get(`${record.id}:${overlay.useCase}`)?.size ?? 0) > 1 - ? entry.displayName - : undefined) ?? - canonicalNames.get(record.id) ?? - entry.displayName + const name = modelDisplayName({ + authored: overlay.displayName, + canonical: canonicalNames.get(record.id), + entry: entry.displayName, + modelsSharingRouterUseCase: sharedNames.get( + `${record.id}:${overlay.useCase}` + )?.size + }) const provider = providerName(entry.provider) + const summary = modelSummaryFor( + editorialSummaries.get(slug), + entry.description, + { name, provider } + ) return { slug, name, @@ -180,9 +270,7 @@ const browseModels: readonly RouterWorkshopModel[] = contentSources.map( thumbnail: { url: thumbnail.url, kind: thumbnail.kind } } : {}), - ...(entry.description - ? { summary: modelSummary(entry.description, name, provider) } - : {}), + ...(summary ? { summary } : {}), ...(overlay.status === 'deprecated' ? { status: 'deprecated' as const } : {}) diff --git a/apps/website/src/data/workshop-model-summaries.json b/apps/website/src/data/workshop-model-summaries.json new file mode 100644 index 00000000000..3757e5fdfa9 --- /dev/null +++ b/apps/website/src/data/workshop-model-summaries.json @@ -0,0 +1,59 @@ +{ + "bfl--flux-2-pro--generate-images": "Generates an image from text and up to 9 reference images, at 256–2048 px per side.", + "byteplus--seedance-2-fast-reference--generate-videos": "Mixes up to 4 reference images, plus video and audio clips via the API, into a 4–15 second Fast-tier video.", + "byteplus--seedance-2-fast-text-to-video--generate-videos": "Turns a prompt alone into a 4–15 second clip with synchronized audio on the Fast tier, at 480p or 720p.", + "byteplus--seedance-2-reference--generate-videos": "Combines a prompt with up to 4 reference images, plus video and audio clips via the API, on the standard model.", + "byteplus--seedance-2-text-to-video--generate-videos": "Generates a 4–15 second clip with synchronized audio from text only on the standard model, in seven aspect ratios or adaptive.", + "byteplus--seedream-4--edit-images": "Edits your source images from a text instruction, using up to 10 reference images, at output sizes up to 4096×4096.", + "byteplus--seedream-4--generate-images": "Generates images from a text prompt at sizes up to 4096×4096, and can return a batch of related images via the API.", + "byteplus--seedream-4-5--edit-images": "Edits source images with the 4.5 model, which outputs at least 3.68 MP and up to 4096×4096.", + "byteplus--seedream-4-5--generate-images": "Generates images from text with the 4.5 model at a minimum of 3.68 MP, with batch output of related images via the API.", + "byteplus--seedream-5-lite--edit-images": "Edits images from an instruction with up to 10 reference images (14 via the API), as PNG or JPEG at up to 3072×3072.", + "byteplus--seedream-5-lite--generate-images": "Generates images from text at up to 3072×3072 (3K) as PNG or JPEG, with batch generation via the API.", + "byteplus--seedream-5-pro--edit-images": "Edits images on the Pro model with up to 10 references, as 1K or 2K PNG or JPEG files.", + "byteplus--seedream-5-pro--generate-images": "Generates one image from text on the Pro model at 1K or 2K; no batch output.", + "gemini--omni-1.1-flash--animate-images": "Animates a starting image into a 3–10 second video with audio on the 1.1 release, from 360p up to 4K.", + "gemini--omni-1.1-flash--edit-videos": "Edits an existing video from a written instruction on the 1.1 release, with multi-turn refinement via the API.", + "gemini--omni-1.1-flash--generate-videos": "Writes a 3–10 second video with audio from a prompt alone on the 1.1 release, landscape or portrait, at 360p to 4K.", + "gemini--omni-flash-preview--animate-images": "Turns a still image into a 3–10 second video with sound on the preview release, from a 360p draft up to 4K.", + "gemini--omni-flash-preview--edit-videos": "Changes an existing video from a text instruction on the preview release, plus follow-up edit turns via the API.", + "gemini--omni-flash-preview--generate-videos": "Creates a video with sound from text only on the preview release, 16:9 or 9:16, at 360p, 720p, 1080p or 4K.", + "kling--text-to-video--generate-videos": "Generates a video from a prompt of up to 2,500 characters in 16:9, 9:16 or 1:1, with a negative prompt, plus camera control via the API.", + "krea--krea-2-large--generate-images": "Renders expressive photorealistic images from text, and accepts a Krea moodboard and style references via the API.", + "krea--krea-2-medium--generate-images": "Draws expressive illustrations from text, and accepts a moodboard and up to 10 style reference images via the API.", + "luma--ray-2-text-to-video--generate-videos": "Generates a 5 or 9 second video from text at 540p to 4K, in seven aspect ratios including 21:9, with an option to loop.", + "luma_2--uni-1-image-generation--generate-images": "Generates an image from text and an optional reference image (up to 9 via the API), in ratios from 3:1 to 1:3, with manga style and web search.", + "openai--gpt-image-2--generate-images": "Generates images from text at low, medium or high quality, with transparent or opaque backgrounds and sizes up to 3840×2160.", + "openai--gpt-image-2.5-flare--generate-images": "Renders text inside generated images, with five quality levels including standard and HD, in the Flare variant.", + "openai--gpt-image-2.5-sunburst--generate-images": "Generates images as PNG, WebP or JPEG with transparent backgrounds and sizes up to 3840×2160, in the Sunburst variant.", + "qwen--qwen-image-3.0-image-edit--edit-images": "Edits one to three input images from a text instruction, returning up to 6 results per run with optional prompt rewriting.", + "qwen--qwen-image-3.0-pro-image-edit--edit-images": "Edits one to three images on the higher-quality Pro tier, from an instruction and an optional negative prompt.", + "recraft--v3-text-to-vector--generate-images": "Generates an SVG from a prompt of up to 1,000 characters, with optional vector substyles such as line art, engraving and linocut.", + "recraft--v4-text-to-vector--generate-images": "Generates SVG illustrations from prompts as long as 10,000 characters, in square, landscape or portrait sizes, up to 6 per run via the API.", + "recraft--v4.1-pro-text-to-image--generate-images": "Generates raster images at 2048×2048, or wide and tall formats such as 2688×1536, up to 6 per prompt via the API.", + "recraft--v4.1-pro-text-to-vector--generate-images": "Generates SVG illustrations on the Pro tier in seven aspect ratios including 1:1, 16:9 and 9:16, up to 6 per prompt via the API.", + "recraft--v4.1-text-to-image--generate-images": "Generates raster images at 1024×1024, or wide and tall sizes such as 1344×768, up to 6 per prompt via the API.", + "recraft--v4.1-text-to-vector--generate-images": "Turns a text prompt into scalable SVG artwork in square, landscape or portrait ratios.", + "recraft--v4.1-utility-pro-text-to-image--generate-images": "Makes raster images from text at 2048×2048, 2560×1664 or their portrait versions on the Utility Pro tier.", + "recraft--v4.1-utility-pro-text-to-vector--generate-images": "Produces SVG files from a prompt on the Utility Pro tier, at an aspect ratio you choose, such as 3:2, 4:3 or 9:16.", + "recraft--v4.1-utility-text-to-image--generate-images": "Makes raster images from text at 1024×1024, 1280×832 or 832×1280 on the Utility tier, up to 6 per run via the API.", + "recraft--v4.1-utility-text-to-vector--generate-images": "Creates SVG illustrations on the Utility tier from a text prompt of up to 10,000 characters.", + "vertexai--gemini-2.5-flash-image--edit-images": "Edits up to 4 uploaded images from a text instruction on Gemini 2.5 Flash Image, in ten fixed aspect ratios.", + "vertexai--gemini-2.5-flash-image--generate-images": "Generates images from text on Gemini 2.5 Flash Image, the original Nano Banana model, in ten fixed aspect ratios.", + "vertexai--gemini-3-pro-image--edit-images": "Edits images on Gemini 3 Pro Image and returns them at 1K, 2K or 4K, guided by optional reference images and documents.", + "vertexai--gemini-3-pro-image--generate-images": "Generates high-quality images from text on Gemini 3 Pro Image at a chosen 1K, 2K or 4K resolution.", + "vertexai--gemini-nano-banana-2--edit-images": "Edits up to 4 source images on Gemini 3.1 Flash Image from a prompt, with 1K, 2K or 4K output in ten aspect ratios.", + "vertexai--gemini-nano-banana-2--generate-images": "Generates images from text on Gemini 3.1 Flash Image at 1K, 2K or 4K, in ten aspect ratios including 21:9.", + "vertexai--veo-3--animate-images": "Animates a starting image into a 4, 6 or 8 second video with optional native audio, at 720p, 1080p or 4K in 16:9 or 9:16.", + "vertexai--veo-3--generate-videos": "Generates a 4, 6 or 8 second video from a text prompt alone, with native audio and an optional negative prompt, at up to 4K.", + "wan--happyhorse-video-edit--edit-videos": "Edits an uploaded video from a prompt and an optional reference image at 720P or 1080P, with an option to keep the original audio.", + "wan--text-to-video--generate-videos": "Generates a 5, 10 or 15 second video from text, with driving audio and single-shot or multi-shot output via the API.", + "wan--text-to-video-2.7--generate-videos": "Generates a 2–15 second video from text at 720P or 1080P, with a driving audio track and a negative prompt via the API.", + "wan--video-edit-2.7--edit-videos": "Edits an uploaded video from a prompt and an optional reference image into a 2–10 second clip, and can keep the original audio via the API.", + "wavespeed--seedvr2-image--edit-images": "Upscales a single image to 2K, 4K or 8K with the SeedVR2 model, saved as JPEG, PNG or WebP.", + "wavespeed--ultimate-image-upscaler--edit-images": "Raises one image to a 2K, 4K or 8K target with the Ultimate upscaler, as JPEG, PNG or WebP.", + "xai--grok-imagine-video--animate-images": "Animates a start image into a 1–15 second video at 480p or 720p from a prompt.", + "xai--grok-imagine-video--generate-videos": "Generates a 1–15 second video from text alone at 480p or 720p, in seven aspect ratios.", + "xai--grok-imagine-video-1.5--animate-images": "Turns a start image into a 1–15 second clip at up to 1080p, above the original's 720p.", + "xai--grok-imagine-video-1.5--generate-videos": "Generates a 1–15 second video from a text prompt at 480p, 720p or 1080p, in aspect ratios from 1:1 to 16:9 and 9:16." +} diff --git a/apps/website/src/lib/workshop/banner-summary.ts b/apps/website/src/lib/workshop/banner-summary.ts index 38f72dc8a4c..be178540177 100644 --- a/apps/website/src/lib/workshop/banner-summary.ts +++ b/apps/website/src/lib/workshop/banner-summary.ts @@ -1,9 +1,11 @@ // The banner centres its column inside a frame of one height, so a summary // that runs to two lines pushes the buttons under it down by a line and they -// move as the carousel turns. A catalogue summary is written for the model -// page, where the room is there; these are the same models said short enough -// to stand on one line at the banner's measure. A model with no line here -// keeps its own summary, which the banner clamps rather than wraps. +// move as the carousel turns. A page summary (src/data/workshop-model-summaries.json +// or the catalogue) is written for the model page, where the room is there; +// these are the same models said short enough to stand on one line at the +// banner's measure, and they win over the page summary on the banner only. A +// model with no line here keeps its own summary, which the banner clamps +// rather than wraps. const BANNER_SUMMARIES: Record = { 'openai--gpt-image-2--generate-images': 'Generates or edits an image, and renders text unusually well.',