-
media.src.endsWith('.webm')
>
{{ t(card.titleKey, locale) }}
-
+
diff --git a/apps/website/src/templates/platform/RouterVideoSection.test.ts b/apps/website/src/templates/platform/RouterVideoSection.test.ts
index 4351054db1d..2fba6da5bdd 100644
--- a/apps/website/src/templates/platform/RouterVideoSection.test.ts
+++ b/apps/website/src/templates/platform/RouterVideoSection.test.ts
@@ -14,6 +14,8 @@ describe('RouterVideoSection', () => {
expect(video).toBeTruthy()
expect(video.hasAttribute('muted')).toBe(true)
- expect(video.hasAttribute('autoplay')).toBe(false)
+ // The section now sits right below the hero, so it loads eagerly
+ // (native `autoplay`) instead of waiting on `lazy-autoplay` + scroll.
+ expect(video.hasAttribute('autoplay')).toBe(true)
})
})
diff --git a/apps/website/src/templates/platform/RouterVideoSection.vue b/apps/website/src/templates/platform/RouterVideoSection.vue
index 2d76a6140f6..e40665c0419 100644
--- a/apps/website/src/templates/platform/RouterVideoSection.vue
+++ b/apps/website/src/templates/platform/RouterVideoSection.vue
@@ -14,7 +14,6 @@ const { locale = 'en' } = defineProps<{ locale?: Locale }>()
src="https://media.comfy.org/website/router/router-animatic-v019.mp4"
poster="https://media.comfy.org/website/router/router-animatic-v019-poster.webp"
autoplay
- lazy-autoplay
/>
diff --git a/apps/website/src/templates/platform/modelsGalleryCards.ts b/apps/website/src/templates/platform/modelsGalleryCards.ts
index 65cd62370c3..bd85cc21544 100644
--- a/apps/website/src/templates/platform/modelsGalleryCards.ts
+++ b/apps/website/src/templates/platform/modelsGalleryCards.ts
@@ -1,3 +1,4 @@
+import type { UseCase } from '../../config/models-catalogue'
import type { TranslationKey } from '../../i18n/translations'
export interface GalleryMedia {
@@ -6,20 +7,40 @@ export interface GalleryMedia {
trackSrc?: string
}
-export interface ModelsGalleryCard {
+type ModelsGalleryCardBase = {
titleKey: TranslationKey
badgeIcon: string
media: GalleryMedia[]
}
+/**
+ * A card with no Models page of its own carries none of these fields; a
+ * card that links to one carries all three, so the link always names the
+ * specific use case it demonstrates. `href` is this card's model's
+ * canonical `/models/[slug]` page for that use case (the same lookup
+ * `model-page.ts` uses) resolved ahead of time, since this file's cards
+ * ship to the browser and can't import the server-only Router catalogue
+ * that resolves it (see `ModelsApiGallery.test.ts`, which checks `href`
+ * against that catalogue). A Router API `{provider}/{model}` id can have a
+ * Models page per use case (Gemini Omni 1.1 Flash has three), so `modelId`
+ * alone cannot say which page a card means.
+ */
+export type ModelsGalleryCard = ModelsGalleryCardBase &
+ (
+ | { modelId: string; useCase: UseCase; href: string }
+ | { modelId?: undefined; useCase?: undefined; href?: undefined }
+ )
+
const SEEDANCE_BASE = 'https://media.comfy.org/website/seedance-2.5'
-const MINIMAX_BASE = 'https://media.comfy.org/website/minimax'
const AI_MODELS_BASE = 'https://media.comfy.org/website/cloud/ai-models'
export const modelsGalleryCards: ModelsGalleryCard[] = [
{
titleKey: 'cloud.aiModels.card.seedance25',
badgeIcon: '/icons/ai-models/bytedance.svg',
+ modelId: 'byteplus/dreamina-seedance-2-5-260628',
+ useCase: 'generate-videos',
+ href: '/models/byteplus--seedance-2-5-text-to-video--generate-videos/',
media: [
{
src: `${SEEDANCE_BASE}/city.webm`,
@@ -35,31 +56,20 @@ export const modelsGalleryCards: ModelsGalleryCard[] = [
}
]
},
- {
- titleKey: 'cloud.aiModels.card.minimaxH3',
- badgeIcon: '/icons/ai-models/minimax.svg',
- media: [
- {
- src: 'https://media.comfy.org/website/minimax-h3/hero-dragon-960.webm'
- },
- {
- src: `${MINIMAX_BASE}/ice-rider.webm`,
- posterSrc: `${MINIMAX_BASE}/ice-rider-poster.webp`
- },
- {
- src: `${MINIMAX_BASE}/superhero.webm`,
- posterSrc: `${MINIMAX_BASE}/superhero-poster.webp`
- }
- ]
- },
{
titleKey: 'cloud.aiModels.card.nanoBananaPro',
badgeIcon: '/icons/ai-models/gemini.svg',
+ modelId: 'vertexai/gemini-3-pro-image',
+ useCase: 'generate-images',
+ href: '/models/vertexai--gemini-3-pro-image--generate-images/',
media: [{ src: `${AI_MODELS_BASE}/nano-banana-pro.webp` }]
},
{
titleKey: 'cloud.aiModels.card.chatgptImages25',
badgeIcon: '/icons/ai-models/openai.svg',
+ modelId: 'openai/gpt-image-2.5-flare',
+ useCase: 'generate-images',
+ href: '/models/openai--gpt-image-2.5-flare--generate-images/',
media: [
{
src: `${AI_MODELS_BASE}/gpt-image-2.webm`,
@@ -70,6 +80,9 @@ export const modelsGalleryCards: ModelsGalleryCard[] = [
{
titleKey: 'cloud.aiModels.card.klingAi30',
badgeIcon: '/icons/ai-models/kling.svg',
+ modelId: 'kling/kling-3.0-turbo',
+ useCase: 'generate-videos',
+ href: '/models/kling--kling-3.0-turbo-text-to-video--generate-videos/',
media: [
{
src: 'https://media.comfy.org/website/router/kling-3-video.webp'
@@ -79,10 +92,26 @@ export const modelsGalleryCards: ModelsGalleryCard[] = [
{
titleKey: 'cloud.aiModels.card.flux3',
badgeIcon: '/icons/ai-models/bfl.svg',
+ modelId: 'bfl/flux-3-video',
+ useCase: 'generate-videos',
+ href: '/models/bfl--flux-3-text-to-video--generate-videos/',
media: [
{
src: 'https://media.comfy.org/website/router/flux-3-t2v.webp'
}
]
+ },
+ {
+ titleKey: 'cloud.aiModels.card.geminiOmniFlash',
+ badgeIcon: '/icons/ai-models/gemini.svg',
+ modelId: 'gemini/omni-1.1-flash',
+ useCase: 'animate-images',
+ href: '/models/gemini--omni-1.1-flash--animate-images/',
+ media: [
+ {
+ src: 'https://media.comfy.org/website/gemini-omni/card-1.webm',
+ posterSrc: 'https://media.comfy.org/website/gemini-omni/card-1.webp'
+ }
+ ]
}
]