From e3b7a7f5a01a345be4fc05fe630bb2dbd7a3530a Mon Sep 17 00:00:00 2001 From: Maanil Verma Date: Mon, 5 Oct 2026 19:30:27 +0530 Subject: [PATCH 1/2] feat(website): redirect /p/supported-models to /hub/models Each supported-model page that has a Hub page for the same model 308s to it; every other address under /p/supported-models, the index and its twins 308 to /hub/models/ through one catch-all. The mapping is a frozen table generated from the supported-models data and the Hub URL table. --- apps/website/e2e/supported-models.spec.ts | 36 -- .../generate-supported-model-urls.test.ts | 75 ++++ .../scripts/generate-supported-model-urls.ts | 134 ++++++ .../components/models/ModelHeroSection.vue | 133 ------ apps/website/src/config/llms-txt.test.ts | 4 +- .../src/config/model-descriptions.test.ts | 57 --- apps/website/src/config/model-descriptions.ts | 81 ---- apps/website/src/config/model-llms.test.ts | 49 --- apps/website/src/config/model-llms.ts | 30 -- apps/website/src/config/model-pricing.test.ts | 24 -- apps/website/src/config/model-pricing.ts | 46 -- apps/website/src/config/redirects.test.ts | 74 +++- apps/website/src/config/redirects.ts | 61 ++- .../src/config/supported-model-urls.ts | 401 ++++++++++++++++++ apps/website/src/lib/llms-txt.test.ts | 12 + apps/website/src/lib/llms-txt.ts | 14 +- .../src/pages/p/supported-models/[slug].astro | 240 ----------- .../src/pages/p/supported-models/[slug].md.ts | 85 ---- .../p/supported-models/_llms.txt.test.ts | 48 --- .../pages/p/supported-models/_slug.md.test.ts | 78 ---- .../src/pages/p/supported-models/index.astro | 96 ----- .../src/pages/p/supported-models/llms.txt.ts | 64 --- apps/website/src/utils/modelFaq.test.ts | 69 --- apps/website/src/utils/modelFaq.ts | 110 ----- apps/website/src/utils/modelSeoCopy.test.ts | 111 ----- apps/website/src/utils/modelSeoCopy.ts | 45 -- apps/website/vercel.json | 230 +++++----- 27 files changed, 846 insertions(+), 1561 deletions(-) delete mode 100644 apps/website/e2e/supported-models.spec.ts create mode 100644 apps/website/scripts/generate-supported-model-urls.test.ts create mode 100644 apps/website/scripts/generate-supported-model-urls.ts delete mode 100644 apps/website/src/components/models/ModelHeroSection.vue delete mode 100644 apps/website/src/config/model-descriptions.test.ts delete mode 100644 apps/website/src/config/model-descriptions.ts delete mode 100644 apps/website/src/config/model-llms.test.ts delete mode 100644 apps/website/src/config/model-llms.ts delete mode 100644 apps/website/src/config/model-pricing.test.ts delete mode 100644 apps/website/src/config/model-pricing.ts create mode 100644 apps/website/src/config/supported-model-urls.ts delete mode 100644 apps/website/src/pages/p/supported-models/[slug].astro delete mode 100644 apps/website/src/pages/p/supported-models/[slug].md.ts delete mode 100644 apps/website/src/pages/p/supported-models/_llms.txt.test.ts delete mode 100644 apps/website/src/pages/p/supported-models/_slug.md.test.ts delete mode 100644 apps/website/src/pages/p/supported-models/index.astro delete mode 100644 apps/website/src/pages/p/supported-models/llms.txt.ts delete mode 100644 apps/website/src/utils/modelFaq.test.ts delete mode 100644 apps/website/src/utils/modelFaq.ts delete mode 100644 apps/website/src/utils/modelSeoCopy.test.ts delete mode 100644 apps/website/src/utils/modelSeoCopy.ts diff --git a/apps/website/e2e/supported-models.spec.ts b/apps/website/e2e/supported-models.spec.ts deleted file mode 100644 index 55a6a12d5a7..00000000000 --- a/apps/website/e2e/supported-models.spec.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { expect } from '@playwright/test' - -import { test } from './fixtures/blockExternalMedia' - -test.describe('Supported model FAQ @smoke', () => { - test('renders the same questions as the FAQPage schema', async ({ page }) => { - await page.goto('/p/supported-models/grok-imagine/') - - const faqHeading = page.getByRole('heading', { - name: 'Frequently Asked Questions' - }) - await expect(faqHeading).toBeVisible() - - const visibleQuestions = await faqHeading - .locator('xpath=../following-sibling::*') - .getByRole('button') - .allTextContents() - const faqPage = await page - .locator('script[type="application/ld+json"]') - .evaluateAll((scripts) => { - const nodes = scripts.flatMap((script) => { - const value = JSON.parse(script.innerHTML) as { - '@graph'?: Array> - } - return value['@graph'] ?? [] - }) - return nodes.find((node) => node['@type'] === 'FAQPage') as { - mainEntity: Array<{ name: string }> - } - }) - - expect(visibleQuestions.map((question) => question.trim())).toEqual( - faqPage.mainEntity.map((question) => question.name) - ) - }) -}) diff --git a/apps/website/scripts/generate-supported-model-urls.test.ts b/apps/website/scripts/generate-supported-model-urls.test.ts new file mode 100644 index 00000000000..5b1983ddd44 --- /dev/null +++ b/apps/website/scripts/generate-supported-model-urls.test.ts @@ -0,0 +1,75 @@ +import { describe, expect, it } from 'vitest' + +import { compileSupportedModelUrls } from './generate-supported-model-urls' + +const hubPages = [ + { newSlug: 'wan-2-7-image-to-video', name: 'Wan 2.7 Image-to-Video' }, + { newSlug: 'wan-2-7-video-edit', name: 'Wan 2.7 Video Edit' }, + { newSlug: 'wan-2-7-text-to-video', name: 'Wan 2.7 Text-to-Video' }, + { newSlug: 'seedance-2-0-text-to-video', name: 'Seedance 2.0 Text-to-Video' }, + { + newSlug: 'seedance-2-0-fast-text-to-video', + name: 'Seedance 2.0 Fast Text-to-Video' + }, + { + newSlug: 'kling-2-6-pro-text-to-video-with-audio', + name: 'Kling 2.6 Pro Text-to-Video with Audio' + }, + { + newSlug: 'elevenlabs-text-to-dialogue', + name: 'ElevenLabs Text-to-Dialogue' + }, + { newSlug: 'nano-banana-image-edit', name: 'Nano Banana Image Edit' }, + { newSlug: 'nano-banana-text-to-image', name: 'Nano Banana Text-to-Image' } +] +const providers = ['ElevenLabs', 'Kling'] + +const hubSlugFor = (displayName: string) => + compileSupportedModelUrls( + [{ slug: 'page', displayName }], + hubPages, + providers + )[0][1] + +describe('compileSupportedModelUrls', () => { + it.for([ + ['Wan 2.7', 'wan-2-7-text-to-video'], + ['Nano Banana', 'nano-banana-text-to-image'], + ['Seedance 2.0', 'seedance-2-0-text-to-video'], + ['Seedance 2', 'seedance-2-0-text-to-video'], + ['Kling 2.6', undefined], + ['ElevenLabs', undefined], + ['Wan', undefined], + ['Wan 2.7 Turbo', undefined], + ['wan2.7-vae-bf16', undefined] + ] as const)('sends "%s" to %s', ([displayName, hubSlug]) => { + expect(hubSlugFor(displayName)).toBe(hubSlug) + }) + + it('resolves an alias through its canonical page', () => { + expect( + compileSupportedModelUrls( + [ + { slug: 'wan-27', canonicalSlug: 'wan2-7', displayName: 'Wan 27' }, + { slug: 'wan2-7', displayName: 'Wan 2.7' } + ], + hubPages, + providers + ) + ).toEqual([ + ['wan-27', 'wan-2-7-text-to-video'], + ['wan2-7', 'wan-2-7-text-to-video'] + ]) + }) + + it('keeps frozen rows and slugs no longer in the data', () => { + expect( + compileSupportedModelUrls( + [{ slug: 'wan2-7', displayName: 'Wan 2.7' }], + hubPages, + providers, + [['wan2-7'], ['retired-page']] + ) + ).toEqual([['retired-page'], ['wan2-7']]) + }) +}) diff --git a/apps/website/scripts/generate-supported-model-urls.ts b/apps/website/scripts/generate-supported-model-urls.ts new file mode 100644 index 00000000000..4b35155c077 --- /dev/null +++ b/apps/website/scripts/generate-supported-model-urls.ts @@ -0,0 +1,134 @@ +import { writeFile } from 'node:fs/promises' +import { join } from 'node:path' + +import { websiteRoot } from '@website/paths' +import { modelPageUrls } from '@/config/model-urls' +import { models } from '@/config/models' +import type { SupportedModelUrl } from '@/config/supported-model-urls' +import { supportedModelUrls } from '@/config/supported-model-urls' +import { workshopModels } from '@/config/workshop-browse-content' +import { modelUrlSlug } from './generate-model-url-map' +import { isDirectExecution } from './script-entry-point' + +interface SupportedModel { + readonly slug: string + readonly canonicalSlug?: string + readonly displayName: string +} + +interface HubPage { + readonly newSlug: string + readonly name: string +} + +/** Earlier wins when one model has several task pages. */ +const TASKS_BY_PRIORITY = [ + 'text-to-image', + 'text-to-vector', + 'text-to-video', + 'reference-to-video', + 'text-to-speech', + 'text-to-dialogue', + 'image-to-video', + 'first-last-frame', + 'video-continuation', + 'image-edit', + 'video-edit', + 'video-to-video', + 'audio-to-video' +] as const + +const taskOf = (slug: string) => + TASKS_BY_PRIORITY.find((task) => slug.endsWith(`-${task}`)) + +const sameVersion = (slug: string) => slug.replace(/(\d)-0(?=-|$)/g, '$1') + +const modelKey = (name: string) => sameVersion(modelUrlSlug(name)) + +function hubModelKey({ name }: HubPage): string { + const slug = modelUrlSlug(name) + const task = taskOf(slug) + return sameVersion(task ? slug.slice(0, -task.length - 1) : slug) +} + +const taskRank = (page: HubPage) => { + const task = taskOf(modelUrlSlug(page.name)) + return task ? TASKS_BY_PRIORITY.indexOf(task) : -1 +} + +/** + * The Hub page for the same model, or undefined when there is none. A Hub + * page matches only when its name minus the task is the model's name, so a + * provider page (ElevenLabs) or another version (Kling 2.6 vs Kling 2.6 Pro) + * never matches. + */ +function supportedModelHubSlug( + name: string, + hubPages: readonly HubPage[], + providers: ReadonlySet +): string | undefined { + const key = modelKey(name) + if (providers.has(key)) return undefined + return hubPages + .filter((page) => hubModelKey(page) === key) + .sort( + (a, b) => + taskRank(a) - taskRank(b) || a.newSlug.localeCompare(b.newSlug, 'en') + ) + .at(0)?.newSlug +} + +/** `frozen` rows keep their target; only slugs new to the table are matched. */ +export function compileSupportedModelUrls( + supportedModels: readonly SupportedModel[], + hubPages: readonly HubPage[], + providerNames: readonly string[], + frozen: readonly SupportedModelUrl[] = [] +): SupportedModelUrl[] { + const providers = new Set(providerNames.map(modelKey)) + const bySlug = new Map(supportedModels.map((model) => [model.slug, model])) + const rows = new Map(frozen.map((row) => [row[0], row])) + for (const model of supportedModels) { + if (rows.has(model.slug)) continue + const canonical = bySlug.get(model.canonicalSlug ?? model.slug) ?? model + const hubSlug = supportedModelHubSlug( + canonical.displayName, + hubPages, + providers + ) + rows.set(model.slug, hubSlug ? [model.slug, hubSlug] : [model.slug]) + } + return [...rows.values()].sort((a, b) => a[0].localeCompare(b[0], 'en')) +} + +function renderSupportedModelUrlsModule( + rows: readonly SupportedModelUrl[] +): string { + const line = (row: SupportedModelUrl) => + ` [${row.map((value) => `'${value}'`).join(', ')}]` + return `// Generated by scripts/generate-supported-model-urls.ts. Rows are frozen. +// Every published /p/supported-models/ page, with the /hub/models/ +// page for the same model. A row without one redirects to /hub/models/. +export type SupportedModelUrl = readonly [slug: string, hubSlug?: string] + +export const supportedModelUrls: readonly SupportedModelUrl[] = [ +${rows.map(line).join(',\n')} +] +` +} + +if (isDirectExecution(process.argv[1], import.meta.filename)) { + const rows = compileSupportedModelUrls( + models, + modelPageUrls, + workshopModels.flatMap(({ provider }) => (provider ? [provider] : [])), + supportedModelUrls + ) + await writeFile( + join(websiteRoot, 'src/config/supported-model-urls.ts'), + renderSupportedModelUrlsModule(rows) + ) + console.warn( + `${rows.length} pages, ${rows.filter((row) => row[1]).length} with a Hub page` + ) +} diff --git a/apps/website/src/components/models/ModelHeroSection.vue b/apps/website/src/components/models/ModelHeroSection.vue deleted file mode 100644 index f0729e2ea60..00000000000 --- a/apps/website/src/components/models/ModelHeroSection.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - diff --git a/apps/website/src/config/llms-txt.test.ts b/apps/website/src/config/llms-txt.test.ts index 955b1fc7ece..3c2a3d6b78e 100644 --- a/apps/website/src/config/llms-txt.test.ts +++ b/apps/website/src/config/llms-txt.test.ts @@ -209,9 +209,9 @@ describe('llms.txt', () => { expect(listedButExcluded).toEqual([]) }) - it('uses only literal redirect sources for stale link checks', () => { + it('uses only literal or catch-all redirect sources for stale link checks', () => { const patternedSources = [...vercelRedirectSources].filter((source) => - /[:*(]/.test(source) + /[:*(]/.test(source.replace(/\/:path\*$/, '')) ) expect(patternedSources).toEqual([]) }) diff --git a/apps/website/src/config/model-descriptions.test.ts b/apps/website/src/config/model-descriptions.test.ts deleted file mode 100644 index c253fe158b0..00000000000 --- a/apps/website/src/config/model-descriptions.test.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { describe, expect, it } from 'vitest' - -import { - buildWhatIsDescription, - dirLabels, - isPartnerModel -} from './model-descriptions' -import { models } from './models' - -type Model = (typeof models)[number] - -function mustFind(predicate: (model: Model) => boolean): Model { - const model = models.find(predicate) - if (!model) throw new Error('fixture model missing from registry data') - return model -} - -const partner = mustFind((m) => m.directory === 'partner_nodes') -const open = mustFind((m) => m.directory !== 'partner_nodes') - -describe('isPartnerModel', () => { - it('is true only for partner_nodes models', () => { - expect(isPartnerModel(partner)).toBe(true) - expect(isPartnerModel(open)).toBe(false) - }) -}) - -describe('dirLabels', () => { - it('labels every registry directory', () => { - for (const model of models) { - expect(dirLabels[model.directory]).toBeTruthy() - } - }) -}) - -describe('buildWhatIsDescription', () => { - it('describes partner models as provider-API access, not local weights', () => { - const text = buildWhatIsDescription(partner) - expect(text).toContain('partner nodes') - expect(text).toContain("provider's API") - expect(text).not.toContain('run it locally') - }) - - it('describes open models as locally runnable', () => { - const text = buildWhatIsDescription(open) - expect(text).toContain('run it locally in ComfyUI') - }) - - it('pluralizes the workflow-template count', () => { - expect(buildWhatIsDescription({ ...open, workflowCount: 1 })).toContain( - 'There is 1 community workflow template' - ) - expect(buildWhatIsDescription({ ...open, workflowCount: 3 })).toContain( - 'There are 3 community workflow templates' - ) - }) -}) diff --git a/apps/website/src/config/model-descriptions.ts b/apps/website/src/config/model-descriptions.ts deleted file mode 100644 index a18d94cf01b..00000000000 --- a/apps/website/src/config/model-descriptions.ts +++ /dev/null @@ -1,81 +0,0 @@ -// Shared model-page prose: one source for the HTML page and its markdown twin -// (/p/supported-models/[slug] and /p/supported-models/[slug].md), so the two -// surfaces cannot drift. -import type { models } from './models' - -type Model = (typeof models)[number] - -const dirDescriptions: Record = { - diffusion_models: - 'a diffusion model that generates images or video from text and image prompts', - checkpoints: - 'an all-in-one checkpoint model that bundles a diffusion model, text encoder, and VAE', - loras: - 'a LoRA (Low-Rank Adaptation) that fine-tunes an existing model for a specific style or subject', - controlnet: - 'a ControlNet that steers image generation using structural guides like depth maps, edges, or poses', - clip_vision: - 'a CLIP Vision encoder that converts images into embeddings for conditioning or style transfer', - vae: 'a VAE (Variational Autoencoder) that encodes and decodes latent representations', - text_encoders: - 'a text encoder that converts prompts into embeddings used to guide generation', - audio_encoders: - 'an audio encoder that converts audio into embeddings for audio-conditioned generation', - upscale_models: - 'an upscale model that increases image resolution while preserving or enhancing detail', - latent_upscale_models: - 'a latent upscale model that refines latents at higher resolution before decoding', - style_models: - 'a style model that transfers artistic style onto generated images', - model_patches: - 'a model patch that modifies or extends the behavior of an existing base model', - geometry_estimation: - 'a geometry estimation model that predicts depth, normals, or 3D structure from images', - background_removal: - 'a background removal model that separates subjects from their backgrounds', - detection: - 'a detection model that locates faces, objects, or landmarks in images', - frame_interpolation: - 'a frame interpolation model that synthesizes intermediate frames for smoother video', - optical_flow: - 'an optical flow model that estimates per-pixel motion between video frames', - partner_nodes: - 'a cloud API model accessible through ComfyUI partner nodes without local hardware requirements' -} - -export const dirLabels: Record = { - diffusion_models: 'Diffusion model', - checkpoints: 'Checkpoint', - loras: 'LoRA', - controlnet: 'ControlNet', - clip_vision: 'CLIP Vision encoder', - model_patches: 'Model patch', - vae: 'VAE', - text_encoders: 'Text encoder', - audio_encoders: 'Audio encoder', - latent_upscale_models: 'Latent upscale model', - upscale_models: 'Upscale model', - style_models: 'Style model', - geometry_estimation: 'Geometry estimation model', - background_removal: 'Background removal model', - detection: 'Detection model', - frame_interpolation: 'Frame interpolation model', - optical_flow: 'Optical flow model', - partner_nodes: 'Partner node' -} - -export function isPartnerModel(model: Model): boolean { - return model.directory === 'partner_nodes' -} - -export function buildWhatIsDescription(model: Model): string { - const dirDesc = dirDescriptions[model.directory] ?? 'an AI model' - const access = isPartnerModel(model) - ? `You can run it in ComfyUI through partner nodes — inference runs on the provider's API, so no local weights or GPU are required.` - : `You can run it locally in ComfyUI with full control over every parameter, or access it through Comfy Cloud.` - const templateCount = - model.workflowCount === 1 - ? 'There is 1 community workflow template' - : `There are ${model.workflowCount} community workflow templates` - return `${model.displayName} is ${dirDesc}. ${access} ComfyUI's node-based workflow editor lets you connect ${model.displayName} with ControlNets, LoRAs, upscalers, and custom nodes to build any pipeline you need. ${templateCount} using ${model.displayName} on Comfy Workflows, ready to load and customize.` -} diff --git a/apps/website/src/config/model-llms.test.ts b/apps/website/src/config/model-llms.test.ts deleted file mode 100644 index 7c61813b1ce..00000000000 --- a/apps/website/src/config/model-llms.test.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { describe, expect, it } from 'vitest' - -import { buildModelLlmsLinks } from './model-llms' - -describe('buildModelLlmsLinks', () => { - it('builds the twin path and canonical URL from the site origin', () => { - const links = buildModelLlmsLinks( - 'flux-2-klein-4b', - 'Flux 2 Klein 4b', - new URL('https://example.org') - ) - expect(links.mdPath).toBe('/p/supported-models/flux-2-klein-4b.md') - expect(links.canonicalMdUrl).toBe( - 'https://example.org/p/supported-models/flux-2-klein-4b.md' - ) - }) - - it('falls back to comfy.org when no site is configured', () => { - const links = buildModelLlmsLinks('kling-ai', 'Kling AI', undefined) - expect(links.canonicalMdUrl).toBe( - 'https://comfy.org/p/supported-models/kling-ai.md' - ) - }) - - it('encodes the prompt into both agent URLs', () => { - const links = buildModelLlmsLinks('kling-ai', 'Kling AI', undefined) - for (const url of [links.claudeUrl, links.chatgptUrl]) { - const q = new URL(url).searchParams.get('q') - expect(q).toContain('https://comfy.org/p/supported-models/kling-ai.md') - expect(q).toContain('Kling AI') - expect(q).toContain('pip install comfy-sdk') - expect(q).toContain('npm i @comfyorg/sdk') - } - expect(links.claudeUrl.startsWith('https://claude.ai/new?q=')).toBe(true) - expect(links.chatgptUrl.startsWith('https://chatgpt.com/?q=')).toBe(true) - expect(links.claudeUrl).not.toContain(' ') - }) - - it('round-trips reserved and non-ASCII characters through one intact q param', () => { - const displayName = 'R&D #1 + 模型' - const links = buildModelLlmsLinks('rd-1', displayName, undefined) - for (const url of [links.claudeUrl, links.chatgptUrl]) { - const parsed = new URL(url) - expect([...parsed.searchParams.keys()]).toEqual(['q']) - expect(parsed.searchParams.getAll('q')).toHaveLength(1) - expect(parsed.searchParams.get('q')).toContain(displayName) - } - }) -}) diff --git a/apps/website/src/config/model-llms.ts b/apps/website/src/config/model-llms.ts deleted file mode 100644 index 6f0c11f8438..00000000000 --- a/apps/website/src/config/model-llms.ts +++ /dev/null @@ -1,30 +0,0 @@ -// LLM handoff links for a model page: the markdown-twin URL and the prefilled -// open-in-agent links the LLMs menu renders. Kept out of Astro frontmatter so -// the construction is unit-testable. - -export interface ModelLlmsLinks { - /** Site-relative path of the markdown twin, used for href and fetch. */ - mdPath: string - /** Canonical absolute URL of the twin, used inside agent prompts. */ - canonicalMdUrl: string - claudeUrl: string - chatgptUrl: string -} - -export function buildModelLlmsLinks( - slug: string, - displayName: string, - site: URL | undefined -): ModelLlmsLinks { - const mdPath = `/p/supported-models/${slug}.md` - const canonicalMdUrl = new URL(mdPath, site ?? 'https://comfy.org').href - const prompt = encodeURIComponent( - `Read ${canonicalMdUrl} and help me run ${displayName} in ComfyUI: explain the inputs, get me to a first output, and show how to call it from my own code with the Comfy SDK (Python: pip install comfy-sdk, TypeScript: npm i @comfyorg/sdk — docs: https://docs.comfy.org/development/api-development/sdks).` - ) - return { - mdPath, - canonicalMdUrl, - claudeUrl: `https://claude.ai/new?q=${prompt}`, - chatgptUrl: `https://chatgpt.com/?q=${prompt}` - } -} diff --git a/apps/website/src/config/model-pricing.test.ts b/apps/website/src/config/model-pricing.test.ts deleted file mode 100644 index 33111ba12ec..00000000000 --- a/apps/website/src/config/model-pricing.test.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { describe, expect, it } from 'vitest' - -import { PRICING_URL, buildPricingFact } from './model-pricing' - -describe('buildPricingFact', () => { - it('deep-links a mapped partner model to its provider section', () => { - expect(buildPricingFact('wan-api', true)).toContain(`${PRICING_URL}#wan`) - expect(buildPricingFact('grok-imagine', true)).toContain( - `${PRICING_URL}#xai` - ) - }) - - it('falls back to the table root for unmapped partner models', () => { - const fact = buildPricingFact('stability-ai', true) - expect(fact).toContain(PRICING_URL) - expect(fact).not.toContain('#') - }) - - it('points open-source models at the Cloud GPU rate and notes local is free', () => { - const fact = buildPricingFact('flux-1-dev', false) - expect(fact).toContain(`${PRICING_URL}#cloud-gpu`) - expect(fact).toContain('free to run locally') - }) -}) diff --git a/apps/website/src/config/model-pricing.ts b/apps/website/src/config/model-pricing.ts deleted file mode 100644 index f39cf0f8b75..00000000000 --- a/apps/website/src/config/model-pricing.ts +++ /dev/null @@ -1,46 +0,0 @@ -// Published-pricing links for model twins. Partner models deep-link to their -// provider's section of the docs pricing table; open-source models meter as -// Cloud GPU time. Links only — the rates live in the docs and change there. - -export const PRICING_URL = - 'https://docs.comfy.org/tutorials/partner-nodes/pricing' - -// Registry slug → section id on the pricing page (verified against the live -// page's heading ids). stability-ai is intentionally absent: the pricing page -// has no Stability section yet, so it falls back to the table root. -const partnerPricingAnchors: Record = { - 'bria-ai': 'bria', - 'flux-api': 'bfl', - 'gemini-image': 'google', - 'grok-imagine': 'xai', - 'hailuo-minimax': 'minimax', - 'hunyuan-3d': 'tencent', - ideogram: 'ideogram', - 'kling-ai': 'kling', - 'ltxv-api': 'lightricks', - 'luma-dream-machine': 'luma', - 'magnific-ai': 'magnific', - 'meshy-ai': 'meshy', - 'nano-banana': 'google', - 'openai-dall-e': 'openai', - pixverse: 'pixverse', - recraft: 'recraft', - 'rodin-3d': 'rodin-3d', - runway: 'runway', - 'seedance-bytedance': 'bytedance', - 'topaz-labs': 'topaz', - 'tripo-3d': 'tripo', - 'veo-2': 'google', - vidu: 'vidu', - 'wan-api': 'wan', - wavespeed: 'wavespeed' -} - -export function buildPricingFact(slug: string, isPartner: boolean): string { - if (!isPartner) { - return `Pricing: free to run locally on your own hardware; on Comfy Cloud it meters as GPU time at the published Cloud GPU rate: ${PRICING_URL}#cloud-gpu` - } - const anchor = partnerPricingAnchors[slug] - const url = anchor ? `${PRICING_URL}#${anchor}` : PRICING_URL - return `Pricing: published per-run credit rates for these partner nodes: ${url}` -} diff --git a/apps/website/src/config/redirects.test.ts b/apps/website/src/config/redirects.test.ts index 2ff54f7d8b7..af6d74b717d 100644 --- a/apps/website/src/config/redirects.test.ts +++ b/apps/website/src/config/redirects.test.ts @@ -9,7 +9,6 @@ import { modelsBuildRoutes } from '@/integrations/workshop-release-gate' import { routeOf } from '@/utils/hreflangRoutes' import { hubAppSlugs, hubModelAliases, hubModelSlugs } from './hub-models' import { modelPageUrls } from './model-urls' -import { models } from './models' import { modelsUrlKind } from './models-url-registry' import { astroRedirects, @@ -18,6 +17,7 @@ import { toVercelRedirects } from './redirects' import { getRoutes } from './routes' +import { supportedModelUrls } from './supported-model-urls' const pagesDir = join(websiteRoot, 'src', 'pages') @@ -36,10 +36,7 @@ const builtPages = new Set([ ...modelsBuildRoutes(true) .map(({ pattern }) => pattern) .filter((pattern) => !pattern.includes('[')) - .map((pattern) => `${pattern}/`), - ...models - .filter((model) => !model.canonicalSlug) - .map((model) => `/p/supported-models/${model.slug}/`) + .map((pattern) => `${pattern}/`) ]) const pageExistsAt = (pathname: string) => builtPages.has(pathname) @@ -56,6 +53,8 @@ const vercelConfig = VercelConfigSchema.parse( const VERCEL_ROUTE_LIMIT = 2048 +const SUPPORTED_MODELS_PATTERN = '/p/supported-models/:path*' + const withoutSlash = (path: string) => path.replace(/\/$/, '') const en = getRoutes('en') @@ -98,7 +97,11 @@ describe('the redirect list', () => { it('writes sources as literal paths without a trailing slash', () => { expect( - sources.filter((source) => !/^(\/[A-Za-z0-9._-]+)+$/.test(source)) + sources.filter( + (source) => + source !== SUPPORTED_MODELS_PATTERN && + !/^(\/[A-Za-z0-9._-]+)+$/.test(source) + ) ).toEqual([]) }) @@ -140,9 +143,10 @@ describe('generated Vercel rules', () => { { source: '/cloud/enterprise', destination: en.enterprise }, { source: '/zh-CN/affiliates', destination: '/affiliates/' }, { - source: '/p/supported-models/t5xxl-fp8-e4m3fn-scaled', - destination: '/p/supported-models/t5xxl-fp16/' - } + source: '/p/supported-models/wan2-7', + destination: '/hub/models/wan-2-7-text-to-video/' + }, + { source: SUPPORTED_MODELS_PATTERN, destination: '/hub/models/' } ])( 'send $source and $source/ to $destination permanently', ({ source, destination }) => { @@ -225,21 +229,25 @@ describe('generated Vercel rules', () => { }) describe('Astro redirects', () => { - it('cover every internal row whose slash form redirects, except old Models addresses', () => { - const isOldModelsAddress = (source: string) => - source === '/models' || source.startsWith('/models/') + it('cover every internal row whose slash form redirects, except retired addresses', () => { + const isRetiredAddress = (source: string) => + ['/models', '/p/supported-models'].some( + (root) => + source === root || + source.startsWith(`${root}/`) || + source.startsWith(`${root}.`) + ) expect(Object.keys(astroRedirects)).toEqual( siteRedirects .filter( ({ source, destination, slashFormIsPageBecause }) => isInternalDestination(destination) && slashFormIsPageBecause === undefined && - !isOldModelsAddress(source) + !isRetiredAddress(source) ) .map(({ source }) => source) ) - const aliasCount = models.filter((model) => model.canonicalSlug).length - expect(Object.keys(astroRedirects)).toHaveLength(18 + aliasCount) + expect(Object.keys(astroRedirects)).toHaveLength(18) expect(astroRedirects['/minimax']).toEqual({ status: 307, destination: '/minimax-h3/' @@ -286,6 +294,42 @@ describe('old Models addresses', () => { }) }) +describe('retired supported-model addresses', () => { + const vercelRedirects = toVercelRedirects(siteRedirects) + const matches = (source: string, path: string) => + source.includes(':path*') + ? new RegExp(`^${source.replace('/:path*', '(?:/[^/]+)*')}$`).test(path) + : source === path + const firstMatch = (path: string) => + vercelRedirects.find(({ source }) => matches(source, path)) + const expected = new Map([ + ...supportedModelUrls.map( + ([slug, hubSlug]) => + [ + `/p/supported-models/${slug}`, + hubSlug ? `/hub/models/${hubSlug}/` : '/hub/models/' + ] as const + ), + ...['', '.md', '/llms.txt', '/qwen-3-8b-fp8mixed.md', '/stability-ai'].map( + (suffix) => [`/p/supported-models${suffix}`, '/hub/models/'] as const + ) + ]) + const paths = [...expected.keys()].flatMap((path) => [path, `${path}/`]) + + it('each reach their Hub page, or the catalogue, permanently in one hop', () => { + const wrong = paths.filter((path) => { + const row = firstMatch(path) + return ( + !row?.permanent || + row.destination !== expected.get(path.replace(/\/$/, '')) || + firstMatch(row.destination) !== undefined || + !['model', 'hub'].includes(modelsUrlKind(row.destination) ?? '') + ) + }) + expect(wrong).toEqual([]) + }) +}) + function sourcePattern(source: string): RegExp { const pattern = source .replace(/\[\.\.\.[^\]]+\]|:[\w]+[*+]/g, '.*') diff --git a/apps/website/src/config/redirects.ts b/apps/website/src/config/redirects.ts index a36812b8e52..ebe0316a2be 100644 --- a/apps/website/src/config/redirects.ts +++ b/apps/website/src/config/redirects.ts @@ -1,6 +1,5 @@ import type { RedirectConfig } from 'astro' -import { models } from './models' import { HUB_MODELS_PATH, hubAppHref, @@ -11,9 +10,13 @@ import { hubWorkflowHref, hubWorkflowSlugs } from './hub-models' +import { supportedModelUrls } from './supported-model-urls' interface SiteRedirect { - /** A literal path with no trailing slash; both slash forms redirect. */ + /** + * A literal path, or a `:path*` catch-all, with no trailing slash; both + * slash forms redirect. + */ readonly source: `/${string}` /** An internal destination ends in `/`, the form every page canonicalizes to. */ readonly destination: string @@ -32,23 +35,33 @@ interface VercelRedirect { const MINIMAX_TEMPORARY_BECAUSE = '/minimax/ is a live namespace (the license pages sit under it); the page owner signs off before both locales go permanent together' -const modelAliasRedirects = models.flatMap(({ slug, canonicalSlug }) => - canonicalSlug - ? [ - { - source: `/p/supported-models/${slug}`, - destination: `/p/supported-models/${canonicalSlug}/` - } as const - ] - : [] -) - const HUB_ROUTER_PENDING = 'switch to permanent once comfy-router#46 is confirmed live on prod; a 308 is cached by browsers and cannot be retracted' const HUB_APPS_ROUTER_PENDING = 'switch to permanent once comfy-router sends /hub/apps/ to this site on prod; a 308 is cached by browsers and cannot be retracted' +const SUPPORTED_MODELS_PATH = '/p/supported-models' + +// The pattern row must stay last: Vercel answers with the first match. +const supportedModelRedirects: readonly SiteRedirect[] = [ + ...supportedModelUrls.flatMap(([slug, hubSlug]) => + hubSlug + ? [ + { + source: `${SUPPORTED_MODELS_PATH}/${slug}` as const, + destination: hubModelPath(hubSlug) + } + ] + : [] + ), + { source: `${SUPPORTED_MODELS_PATH}.md`, destination: `${HUB_MODELS_PATH}/` }, + { + source: `${SUPPORTED_MODELS_PATH}/:path*`, + destination: `${HUB_MODELS_PATH}/` + } +] + // Literal rows only: hub pages fetch /models//page.json, so a /models/:path* catch-all would break them. const hubModelRedirects: readonly SiteRedirect[] = [ { @@ -137,8 +150,8 @@ export const siteRedirects: readonly SiteRedirect[] = [ // Affiliates exists in English only. { source: '/zh-CN/affiliates', destination: '/affiliates/' }, { source: '/zh-CN/affiliates/terms', destination: '/affiliates/terms/' }, - ...modelAliasRedirects, - ...hubModelRedirects + ...hubModelRedirects, + ...supportedModelRedirects ] export function isInternalDestination(destination: string): boolean { @@ -147,8 +160,15 @@ export function isInternalDestination(destination: string): boolean { const isPermanent = (row: SiteRedirect) => row.temporaryBecause === undefined -const isOldModelsAddress = ({ source }: SiteRedirect) => - source === '/models' || source.startsWith('/models/') +const RETIRED_ROOTS = ['/models', SUPPORTED_MODELS_PATH] + +const isRetiredAddress = ({ source }: SiteRedirect) => + RETIRED_ROOTS.some( + (root) => + source === root || + source.startsWith(`${root}/`) || + source.startsWith(`${root}.`) + ) const redirectsSlashForm = (row: SiteRedirect) => row.slashFormIsPageBecause === undefined @@ -172,8 +192,9 @@ export function toVercelRedirects( * Astro renders each entry as a meta-refresh stub so `astro preview` and the * e2e suite see the redirects; on Vercel the `vercel.json` rule answers first. * Astro cannot redirect off-site, and a stub for `/x` is the same file as a - * page at `/x/`, so those rows live in `vercel.json` only. The old Models - * addresses are left out too, so the build ships no stub pages under /models. + * page at `/x/`, so those rows live in `vercel.json` only. The retired /models + * and /p/supported-models addresses are left out too, so the build ships no + * stub pages under them. */ export const astroRedirects: Record = Object.fromEntries( @@ -182,7 +203,7 @@ export const astroRedirects: Record = (row) => isInternalDestination(row.destination) && redirectsSlashForm(row) && - !isOldModelsAddress(row) + !isRetiredAddress(row) ) .map((row) => [ row.source, diff --git a/apps/website/src/config/supported-model-urls.ts b/apps/website/src/config/supported-model-urls.ts new file mode 100644 index 00000000000..0788e29e204 --- /dev/null +++ b/apps/website/src/config/supported-model-urls.ts @@ -0,0 +1,401 @@ +// Generated by scripts/generate-supported-model-urls.ts. Rows are frozen. +// Every published /p/supported-models/ page, with the /hub/models/ +// page for the same model. A row without one redirects to /hub/models/. +export type SupportedModelUrl = readonly [slug: string, hubSlug?: string] + +export const supportedModelUrls: readonly SupportedModelUrl[] = [ + ['4x-ultrasharp'], + ['ace-1-5-vae'], + ['ace-step-1-5-turbo-aio'], + ['ace-step-v1-3-5b'], + ['acestep-v1-5-turbo'], + ['acestep-v1-5-xl-base-bf16'], + ['acestep-v1-5-xl-sft-bf16'], + ['acestep-v1-5-xl-turbo-bf16'], + ['ae'], + ['anima-base-v1-0'], + ['anima-lllite-any-test-like-v2'], + ['anima-lllite-depth-1'], + ['anima-lllite-inpainting-v2'], + ['anima-preview3-base'], + ['anima-turbo-lora-v0-2'], + ['anthropic-claude'], + ['beeble'], + ['birefnet'], + ['boogu-image-edit-fp8-scaled'], + ['boogu-image-edit-int8-convrot'], + ['boogu-image-turbo-fp8-scaled'], + ['bria-ai'], + ['byt5-small-glyphxl-fp16'], + ['capybara-v0-1'], + ['causal-forcing-framewise'], + ['chroma-radiance-x0'], + ['chroma1-hd-fp8mixed'], + ['chrono-edit-14b-fp16'], + ['chronoedit-distill-lora'], + ['clip-g-hidream'], + ['clip-l'], + ['clip-l-hidream'], + ['clip-vision-g'], + ['clip-vision-h'], + ['clip-vit-h-14-laion2b-s32b-b79k'], + ['cogvideox-vae'], + ['depth-anything-3-mono-large'], + ['dino-v3-l-naf-fp32'], + ['dino-v3-vit-h'], + ['elevenlabs'], + ['ernie-image'], + ['ernie-image-prompt-enhancer'], + ['ernie-image-turbo'], + ['film-net-fp16'], + ['firered-image-edit-1-0-lightning-8steps-v1-0'], + ['firered-image-edit-1-1-transformer'], + ['flux'], + ['flux-1-fill-dev-onereward-transformer-fp8'], + ['flux-2-api'], + ['flux-2-klein-4b'], + ['flux-2-klein-4b-fp8'], + ['flux-2-klein-9b'], + ['flux-2-klein-9b-fp8'], + ['flux-2-klein-9b-kv-fp8'], + ['flux-2-klein-base-4b'], + ['flux-2-klein-base-4b-fp8'], + ['flux-2-klein-base-9b-fp8'], + ['flux-2-turbo-lora-comfyui'], + ['flux-api'], + ['flux1-canny-dev'], + ['flux1-depth-dev-lora'], + ['flux1-dev'], + ['flux1-dev-fp8'], + ['flux1-dev-kontext-fp8-scaled'], + ['flux1-fill-dev'], + ['flux1-krea-dev-fp8-scaled'], + ['flux1-redux-dev'], + ['flux1-schnell'], + ['flux1-schnell-fp8'], + ['flux2-dev-fp8mixed'], + ['flux2-vae'], + ['flux2turbocomfyv2'], + ['full-encoder-small-decoder'], + ['gemini-image'], + ['gemma-2-2b-it-elm-bf16'], + ['gemma-2-2b-it-elm-fp8-scaled'], + ['gemma-3-12b-it'], + ['gemma-3-12b-it-abliterated-lora-rank64-bf16'], + ['gemma-3-12b-it-fp4-mixed'], + ['gemma-3-12b-it-fp8-scaled'], + ['gemma-3-4b-it-bf16'], + ['gemma4-12b-with-proj-ltx-2-5-comfy-int8-convrot'], + ['gemma4-e2b-it-int8-convrot'], + ['gemma4-e4b-it-fp8-scaled'], + ['gpt-oss-20b-nvfp4'], + ['grok-image'], + ['grok-imagine'], + ['gummycandy-qwen'], + ['happyhorse1'], + ['heygen'], + ['hidream-e1-1-bf16'], + ['hidream-e1-full-bf16'], + ['hidream-i1-dev-fp8'], + ['hidream-i1-fast-fp8'], + ['hidream-i1-full-fp8'], + ['hidream-o1-image-bf16'], + ['hidream-o1-image-dev-fp8-scaled'], + ['humo-17b-fp8-e4m3fn'], + ['hunyuan-3d'], + ['hunyuan-3d-v2-1'], + ['hunyuan-video-t2v-720p-bf16'], + ['hunyuan-video-vae-bf16'], + ['hunyuan3d-dit-v2-fp16'], + ['hunyuan3d-dit-v2-mv-fp16'], + ['hunyuan3d-dit-v2-mv-turbo-fp16'], + ['hunyuanvideo1-5-1080p-sr-distilled-fp16'], + ['hunyuanvideo1-5-720p-i2v-fp16'], + ['hunyuanvideo1-5-720p-t2v-fp16'], + ['hunyuanvideo15-latent-upsampler-1080p'], + ['hunyuanvideo15-vae-fp16'], + ['ideogram'], + ['ideogram4-fp8-scaled'], + ['ideogram4-int8-convrot'], + ['ideogram4-unconditional-fp8-scaled'], + ['ideogram4-unconditional-int8-convrot'], + ['illustration-1-0-qwen-image'], + ['jina-clip-v2-bf16'], + ['joyai-image-edit-int8-convrot'], + ['juggernaut-xl-v9-rundiffusionphoto-v2'], + ['juggernautxl-v9rdphoto2lightning'], + ['kandinsky5lite-i2v-5s'], + ['kandinsky5lite-t2i'], + ['kandinsky5lite-t2v-sft-5s'], + ['kling-2-6'], + ['kling-ai'], + ['kling-o3', 'kling-o3-text-to-video'], + ['krea-2'], + ['krea2-darkbrush'], + ['krea2-style-reference'], + ['krea2-turbo-fp8-scaled'], + ['krea2-turbo-int8-convrot'], + ['lens-bf16'], + ['lens-turbo-bf16'], + ['lightx2v-14b-t2v-cfg-step-distill-lora-adaptive-rank-quantile-0-15-bf16'], + ['lightx2v-i2v-14b-480p-cfg-step-distill-rank64-bf16'], + ['lightx2v-t2v-14b-cfg-step-distill-v2-lora-rank64-bf16'], + ['llama-3-1-8b-instruct-fp8-scaled'], + ['llava-llama3-fp8-scaled'], + ['longcat-image-bf16'], + ['longcat-image-edit-bf16'], + ['lotus-depth-d-v1-1'], + ['ltx-2'], + ['ltx-2-19b-dev'], + ['ltx-2-19b-dev-fp8'], + ['ltx-2-19b-distilled'], + ['ltx-2-19b-distilled-lora-384'], + ['ltx-2-19b-distilled-transformer-only-bf16'], + ['ltx-2-19b-embeddings-connector-distill-bf16'], + ['ltx-2-19b-ic-lora-canny-control'], + ['ltx-2-19b-ic-lora-depth-control'], + ['ltx-2-19b-ic-lora-pose-control'], + ['ltx-2-19b-lora-camera-control-dolly-left'], + ['ltx-2-3-22b-dev'], + ['ltx-2-3-22b-dev-fp8'], + ['ltx-2-3-22b-dev-transformer-only-bf16'], + ['ltx-2-3-22b-distilled-1-1-lora-dynamic-fro09-avg-rank-111-bf16'], + ['ltx-2-3-22b-distilled-fp8'], + ['ltx-2-3-22b-distilled-lora-384'], + ['ltx-2-3-22b-distilled-lora-384-1-1'], + ['ltx-2-3-22b-ic-lora-ingredients-0-9'], + ['ltx-2-3-22b-ic-lora-outpaint'], + ['ltx-2-3-22b-ic-lora-union-control-ref0-5'], + ['ltx-2-3-googlyeyes'], + ['ltx-2-3-id-lora-talkvid-3k'], + ['ltx-2-3-spatial-upscaler-x2-1-1'], + ['ltx-2-3-text-projection-bf16'], + ['ltx-2-5-22b-distilled-transformer-comfy-int8-convrot'], + ['ltx-2-5-audio-vae-bf16'], + ['ltx-2-5-latent-spatial-upscaler-x2-bf16-1-0'], + ['ltx-2-5-video-vae-bf16'], + ['ltx-2-spatial-upscaler-x2-1-0'], + ['ltx-video-2b-v0-9'], + ['ltx-video-2b-v0-9-5'], + ['ltx2-3-transition'], + ['ltx2-squish'], + ['ltx23-obscura-remova'], + ['luma-dream-machine'], + ['mage-flow-edit-int8-convrot'], + ['mage-flow-edit-turbo-int8-convrot'], + ['mage-flow-int8-convrot'], + ['mage-flow-vae-bf16'], + ['magnific-ai'], + ['mediapipe-face-fp32'], + ['meshy-7'], + ['meshy-ai'], + ['minimax'], + ['minimax-h3-audio-vae-fp32'], + ['minimax-h3-fl2v-turbo-8step-v1-0-comfyui-bf16'], + ['minimax-h3-fl2va-pruned-int8-convrot'], + ['minimax-h3-ref2v-turbo-4step-v0-1-comfyui-bf16'], + ['minimax-h3-ref2va-pruned-int8-convrot'], + ['minimax-h3-video-vae-fp16'], + ['minimax-music3-dav'], + ['minimax-music3-dit-fp16'], + ['minimax-music3-text-encoder-pruned-int8-convrot'], + ['ministral-3-3b'], + ['mistral-3-small-flux2-bf16'], + ['mistral-3-small-flux2-fp8'], + ['moge-2-vitl-normal-fp16'], + ['nano-banana', 'nano-banana-text-to-image'], + ['nano-banana-2', 'nano-banana-2-text-to-image'], + ['netayumev35-pretrained-all-in-one'], + ['newbie-image-exp0-1-bf16'], + ['omnigen2-fp16'], + ['openai-dall-e'], + ['openrouter'], + ['ovis-2-5'], + ['ovis-image-bf16'], + ['pid-flux1-1024-to-4096-4step-bf16'], + ['pixal3d-int8-convrot'], + ['pixel-art-style-z-image-turbo'], + ['pixeldit-1300m-1024px-bf16'], + ['pixverse'], + ['quiver'], + ['qwen-0-6b-ace15'], + ['qwen-1-7b-ace15'], + ['qwen-2-5-vl-7b'], + ['qwen-2-5-vl-7b-fp8-scaled'], + ['qwen-2-5-vl-fp16'], + ['qwen-3'], + ['qwen-3-06b-base'], + ['qwen-3-4b'], + ['qwen-3-4b-fp8-mixed'], + ['qwen-3-8b'], + ['qwen-3-8b-fp8mixed'], + ['qwen-360-diffusion-2512-int8-bf16-v2'], + ['qwen-4b-ace15'], + ['qwen-edit-2509-multiple-angles'], + ['qwen-edit-action-v1'], + ['qwen-image-2512-bf16'], + ['qwen-image-2512-fp8-e4m3fn'], + ['qwen-image-2512-fun-controlnet-union-2602'], + ['qwen-image-2512-lightning-4steps-v1-0-fp32'], + ['qwen-image-canny-diffsynth-controlnet'], + ['qwen-image-edit-2509-anything2realalpha'], + ['qwen-image-edit-2509-fp8-e4m3fn'], + ['qwen-image-edit-2509-fusion'], + ['qwen-image-edit-2509-light-migration'], + ['qwen-image-edit-2509-lightning-4steps-v1-0-bf16'], + ['qwen-image-edit-2509-lightning-8steps-v1-0-bf16'], + ['qwen-image-edit-2509-relight'], + ['qwen-image-edit-2511-bf16'], + ['qwen-image-edit-2511-fp8mixed'], + ['qwen-image-edit-2511-int8-convrot'], + ['qwen-image-edit-2511-lightning-4steps-v1-0-bf16'], + ['qwen-image-edit-2511-multiple-angles-lora'], + ['qwen-image-edit-2511-systms-infl8'], + ['qwen-image-edit-fp8-e4m3fn'], + ['qwen-image-edit-lightning-4steps-v1-0-bf16'], + ['qwen-image-fp8-e4m3fn'], + ['qwen-image-instantx-controlnet-inpainting'], + ['qwen-image-instantx-controlnet-union'], + ['qwen-image-layered-bf16'], + ['qwen-image-layered-control-bf16'], + ['qwen-image-layered-vae'], + ['qwen-image-lightning-4steps-v1-0'], + ['qwen-image-lightning-8steps-v1-0'], + ['qwen-image-union-diffsynth-lora'], + ['qwen-image-vae'], + ['qwen3-5-2b-bf16'], + ['qwen3-5-4b-bf16'], + ['qwen3vl-32b-minimax-h3-nvfp4-awq'], + ['qwen3vl-4b-bf16'], + ['qwen3vl-4b-fp8-scaled'], + ['qwen3vl-8b-fp8-scaled'], + ['qwen3vl-8b-joyimage-edit-int8-convrot'], + ['raft-large-c-t-skht-v2-ff5fadd5'], + ['realesrgan-x4plus'], + ['realismbystableyogi-v4lcm'], + ['recraft'], + ['removal-timestep-alpha-2-1740'], + ['rodin-3d'], + ['rt-detr-v4-x-hgnet-fp16'], + ['rt-detr-v4-x-hgnet-fp32'], + ['runway'], + ['sam-3d-body-dinov3-bf16'], + ['sam3-1-multiplex-fp16'], + ['sd-xl-base-1-0'], + ['sd-xl-refiner-1-0'], + ['sd-xl-turbo-1-0-fp16'], + ['sd3-5-large-controlnet-blur'], + ['sd3-5-large-controlnet-canny'], + ['sd3-5-large-controlnet-depth'], + ['sd3-5-large-fp8-scaled'], + ['sdpose-wholebody-fp16'], + ['sdxl-better-freckles'], + ['sdxl-skin-realism-acne-skin-details-imperfections'], + ['seedance-2', 'seedance-2-0-text-to-video'], + ['seedance-2-0', 'seedance-2-0-text-to-video'], + ['seedance-bytedance'], + ['seedvr2-3b-int8-convrot'], + ['seedvr2-7b-int8-convrot'], + ['seedvr2-ema-vae-fp16'], + ['sigclip-vision-patch14-384'], + ['sonilo'], + ['stable-audio-3-medium'], + ['stable-audio-3-medium-base'], + ['stable-audio-open-1-0'], + ['supir-v0q-fp16'], + ['svd-xt'], + ['sync'], + ['t5-base'], + ['t5gemma-b-b-ul2'], + ['t5xxl-fp16'], + ['t5xxl-fp8-e4m3fn-scaled'], + ['topaz-labs'], + ['trellis-2-int8-convrot'], + ['trellis-2-shape-vae-bf16'], + ['trellis-2-texture-vae-bf16'], + ['tripo-3d'], + ['triposplat-fp16'], + ['triposplat-vae-decoder-fp16'], + ['umt5-xxl-enc-bf16'], + ['umt5-xxl-fp16'], + ['umt5-xxl-fp8-e4m3fn-scaled'], + ['uso-flux1-dit-lora-v1'], + ['uso-flux1-projector-v1'], + ['vae-ft-mse-840000-ema-pruned'], + ['veo-2'], + ['veo-3', 'veo-3-text-to-video'], + ['vidu'], + ['void-pass1'], + ['void-pass2'], + ['wan-2-1-vae'], + ['wan-3-0', 'wan-3-0-text-to-video'], + ['wan-alpha-2-1-rgba-lora'], + ['wan-alpha-2-1-vae-alpha-channel'], + ['wan-alpha-2-1-vae-rgb-channel'], + ['wan-animate-2-distill-int8-convrot'], + ['wan-animate-2-int8-convrot'], + ['wan-api'], + ['wan2-1-14b-scail-2-fp16'], + ['wan2-1-14b-scail-2-int8-convrot'], + ['wan2-1-flf2v-720p-14b-fp16'], + ['wan2-1-fun-camera-v1-1-1-3b-bf16'], + ['wan2-1-fun-camera-v1-1-14b-bf16'], + ['wan2-1-fun-control-1-3b-bf16'], + ['wan2-1-fun-inp-1-3b-bf16'], + ['wan2-1-i2v-14b-480p-fp8-e4m3fn-scaled-kj'], + ['wan2-1-i2v-480p-14b-fp16'], + ['wan2-1-i2v-ati-14b-fp8-e4m3fn'], + ['wan2-1-infinitetalk-multi-fp16'], + ['wan2-1-scail-2-dpo-lora-bf16'], + ['wan2-1-t2v-1-3b-fp16'], + ['wan2-1-t2v-14b-fp8-scaled'], + ['wan2-1-vace-1-3b-fp16'], + ['wan2-1-vace-14b-fp16'], + ['wan2-1-vace-module-14b-bf16'], + ['wan2-1-vae-bf16'], + ['wan2-2-animate-14b-fp8-e4m3fn-scaled-kj'], + ['wan2-2-bernini-r-high-noise-fp8-scaled'], + ['wan2-2-bernini-r-low-noise-fp8-scaled'], + ['wan2-2-dancer-14b-global-fp8-scaled'], + ['wan2-2-dancer-14b-local-fp8-scaled'], + ['wan2-2-fun-camera-high-noise-14b-fp8-scaled'], + ['wan2-2-fun-camera-low-noise-14b-fp8-scaled'], + ['wan2-2-fun-control-5b-bf16'], + ['wan2-2-fun-control-high-noise-14b-fp8-scaled'], + ['wan2-2-fun-control-low-noise-14b-fp8-scaled'], + ['wan2-2-fun-inpaint-5b-bf16'], + ['wan2-2-fun-inpaint-high-noise-14b-fp8-scaled'], + ['wan2-2-fun-inpaint-low-noise-14b-fp8-scaled'], + ['wan2-2-i2v-a14b-high-noise-lora-rank64-lightx2v-4step-1022'], + ['wan2-2-i2v-a14b-low-noise-lora-rank64-lightx2v-4step-1022'], + ['wan2-2-i2v-high-noise-14b-fp8-scaled'], + ['wan2-2-i2v-lightx2v-4steps-lora-v1-high-noise'], + ['wan2-2-i2v-lightx2v-4steps-lora-v1-low-noise'], + ['wan2-2-i2v-low-noise-14b-fp8-scaled'], + ['wan2-2-s2v-14b-fp8-scaled'], + ['wan2-2-t2v-high-noise-14b-fp8-scaled'], + ['wan2-2-t2v-lightx2v-4steps-lora-v1-1-high-noise'], + ['wan2-2-t2v-lightx2v-4steps-lora-v1-1-low-noise'], + ['wan2-2-t2v-low-noise-14b-fp8-scaled'], + ['wan2-2-ti2v-5b-fp16'], + ['wan2-2-vae'], + ['wan2-6', 'wan-2-6-text-to-video'], + ['wan2-7', 'wan-2-7-text-to-video'], + ['wan21-causvid-14b-t2v-lora-rank32'], + ['wan21-causvid-14b-t2v-lora-rank32-v2'], + ['wan21-causvid-bidirect2-t2v-1-3b-lora-rank32'], + ['wan21-t2v-14b-lightx2v-cfg-step-distill-lora-rank32'], + ['wan21-wanmove-fp8-scaled-e4m3fn-kj'], + ['wananimate-relight-lora-fp16'], + ['wav2vec2-chinese-base-fp16'], + ['wav2vec2-large-english-fp16'], + ['wavespeed'], + ['whisper-large-v3-fp16'], + ['wuli-qwen-image-2512-turbo-lora-2steps-v1-0-bf16'], + ['z-image-bf16'], + ['z-image-int8-convrot'], + ['z-image-turbo-bf16'], + ['z-image-turbo-fun-controlnet-union'], + ['z-image-turbo-int8-convrot'], + ['zimage-grainscape-ultrareal'] +] diff --git a/apps/website/src/lib/llms-txt.test.ts b/apps/website/src/lib/llms-txt.test.ts index 62a1c95bf7f..5dd9d50f822 100644 --- a/apps/website/src/lib/llms-txt.test.ts +++ b/apps/website/src/lib/llms-txt.test.ts @@ -93,6 +93,18 @@ describe('findRedirectedLinks', () => { ) }) + it.for([ + ['https://comfy.org/old/', true], + ['https://comfy.org/old/page/', true], + ['https://comfy.org/older/', false] + ] as const)('matches %s against a catch-all source: %s', ([url, stale]) => { + const links = [{ title: 'Old', url, description: '' }] + + expect(findRedirectedLinks(links, new Set(['/old/:path*']))).toEqual( + stale ? links : [] + ) + }) + it('ignores external links even if their path matches a redirect source', () => { const links = [ { title: 'Docs', url: 'https://docs.comfy.org/pricing', description: '' } diff --git a/apps/website/src/lib/llms-txt.ts b/apps/website/src/lib/llms-txt.ts index 2dd8cfe3f71..43bf2b6bcef 100644 --- a/apps/website/src/lib/llms-txt.ts +++ b/apps/website/src/lib/llms-txt.ts @@ -41,9 +41,17 @@ export function internalLinks( .map(({ link, url }) => ({ path: normalizePath(url.pathname), link })) } +const CATCH_ALL = '/:path*' + +const matchesSource = (path: string, source: string) => + source.endsWith(CATCH_ALL) + ? path === source.slice(0, -CATCH_ALL.length) || + path.startsWith(source.slice(0, -CATCH_ALL.length + 1)) + : path === source + /** * llms.txt links whose path is itself a redirect source (e.g. a Vercel edge - * redirect). Linking a redirect source instead of its destination means an + * redirect, a literal or a `/:path*` catch-all). Linking a redirect source instead of its destination means an * agent following the link pays an extra hop, and the description sitting * next to it describes whatever page the redirect used to point at. */ @@ -52,7 +60,9 @@ export function findRedirectedLinks( redirectSources: ReadonlySet ): LlmsTxtLink[] { return internalLinks(links) - .filter(({ path }) => redirectSources.has(path)) + .filter(({ path }) => + [...redirectSources].some((source) => matchesSource(path, source)) + ) .map(({ link }) => link) } diff --git a/apps/website/src/pages/p/supported-models/[slug].astro b/apps/website/src/pages/p/supported-models/[slug].astro deleted file mode 100644 index 63a7250dd18..00000000000 --- a/apps/website/src/pages/p/supported-models/[slug].astro +++ /dev/null @@ -1,240 +0,0 @@ ---- -import type { GetStaticPaths } from 'astro' -import BaseLayout from '@/layouts/BaseLayout.astro' -import FAQSplit01 from '@/components/blocks/FAQSplit01.vue' -import ModelHeroSection from '@/components/models/ModelHeroSection.vue' -import { models, getModelBySlug } from '@/config/models' -import { buildModelLlmsLinks } from '@/config/model-llms' -import { - absoluteUrl, - jsonLdId, - pageContext, - softwareApplicationNode -} from '@/utils/jsonLd' -import { buildModelFaqs, modelFaqJsonLd } from '@/utils/modelFaq' -import { getPageDescription } from '@/utils/modelSeoCopy' - -export const getStaticPaths: GetStaticPaths = () => { - return models - .filter((model) => !model.canonicalSlug) - .map((model) => ({ params: { slug: model.slug } })) -} - -const { slug } = Astro.params -const model = getModelBySlug(slug as string)! - -const { displayName } = model - -// fal-style LLMs surface: markdown twin + agent handoff links. -const llms = buildModelLlmsLinks(model.slug, displayName, Astro.site) - -const pageTitle = `${displayName} in ComfyUI` -const pageDescription = getPageDescription(model) - -const { siteUrl, locale, url } = pageContext( - Astro.site, - Astro.url.pathname, - Astro.currentLocale -) -const softwareId = jsonLdId(url, 'software') -const software = softwareApplicationNode({ - siteUrl, - id: softwareId, - name: displayName, - url, - applicationCategory: 'MultimediaApplication', - operatingSystem: 'Any' -}) -const faqs = buildModelFaqs(model, locale) -const whatIsDescription = faqs[0].answer -const faqPage = modelFaqJsonLd(faqs, jsonLdId(url, 'faq')) - -// Backlink the leading "{displayName}" in the What-is paragraph to the -// model's own site when configured (e.g. MiniMax -> design.minimax.io), -// without touching the JSON-LD/FAQ-accordion copies of the same string. -const whatIsBacklinkUrl = - model.whatIsBacklinkUrl && whatIsDescription.startsWith(displayName) - ? model.whatIsBacklinkUrl - : undefined -const whatIsRest = whatIsBacklinkUrl - ? whatIsDescription.slice(displayName.length) - : whatIsDescription ---- - - - - - - -
-

- {Astro.locals.t('models.whatIs.heading', { name: displayName })} -

-

- {whatIsBacklinkUrl ? ( - <> - - {displayName} - - {whatIsRest} - - ) : ( - whatIsDescription - )} -

- {model.docsUrl && - {Astro.locals.t('models.whatIs.tutorialLink')} - } -
- -
- {/* TODO: workflow gallery — pulls from hub API */} -
- -
- {/* TODO: shared HowComfyWorks component */} -
- - -
- - diff --git a/apps/website/src/pages/p/supported-models/[slug].md.ts b/apps/website/src/pages/p/supported-models/[slug].md.ts deleted file mode 100644 index 1828205009f..00000000000 --- a/apps/website/src/pages/p/supported-models/[slug].md.ts +++ /dev/null @@ -1,85 +0,0 @@ -// Per-model markdown twin: every model page has a .md sibling at the same URL, -// e.g. /p/supported-models/flux-1-dev.md, for agents and the LLMs menu. -// Content mirrors the HTML page via the shared model-descriptions module. -import type { APIRoute } from 'astro' - -import { - buildWhatIsDescription, - dirLabels, - isPartnerModel -} from '@/config/model-descriptions' -import { buildPricingFact } from '@/config/model-pricing' -import { models } from '@/config/models' - -export function getStaticPaths() { - // canonicalSlug entries are 301 aliases of another page — no twin for those. - return models - .filter((model) => !model.canonicalSlug) - .map((model) => ({ params: { slug: model.slug }, props: { model } })) -} - -type Model = (typeof models)[number] - -export const GET: APIRoute = ({ props, site }) => { - const model = props.model as Model - const base = site ?? 'https://comfy.org' - const pageUrl = new URL(`/p/supported-models/${model.slug}/`, base).href - const workflowsUrl = model.hubSlug - ? `https://comfy.org/workflows/model/${model.hubSlug}/` - : 'https://comfy.org/workflows/' - - const description = buildWhatIsDescription(model) - const summary = description.split('. ')[0] - - const lines = [ - '---', - `title: ${JSON.stringify(`${model.displayName} in ComfyUI`)}`, - `description: ${JSON.stringify(summary.endsWith('.') ? summary : `${summary}.`)}`, - `canonical: ${pageUrl}`, - 'lang: en', - `index: ${new URL('/llms.txt', base).href}`, - '---', - '', - `# ${model.displayName} in ComfyUI`, - '', - description, - '', - '## Facts', - '', - `- Type: ${dirLabels[model.directory] ?? model.directory}`, - `- ${buildPricingFact(model.slug, isPartnerModel(model))}`, - `- Community workflow templates: ${model.workflowCount}`, - ...(model.huggingFaceUrl ? [`- Weights: ${model.huggingFaceUrl}`] : []), - ...(model.docsUrl ? [`- Tutorial: ${model.docsUrl}`] : []), - ...(model.blogUrl ? [`- Release notes: ${model.blogUrl}`] : []), - '', - `## How to run ${model.displayName}`, - '', - ...(isPartnerModel(model) - ? [ - "1. In ComfyUI through partner nodes — inference runs on the provider's API, no local weights or GPU required: https://comfy.org/download/", - '2. On Comfy Cloud — the same graph, hosted end to end: https://cloud.comfy.org' - ] - : [ - '1. Locally in ComfyUI — open source, free on your own hardware: https://comfy.org/download/', - '2. On Comfy Cloud — hosted GPUs, every parameter still exposed: https://cloud.comfy.org' - ]), - `3. Start from a community workflow template and adjust it node by node: ${workflowsUrl}`, - '4. From your own application with the Comfy SDKs (Python and TypeScript, beta): https://docs.comfy.org/development/api-development/sdks.md', - ...(isPartnerModel(model) - ? [ - '5. From a terminal or a coding agent with Comfy CLI; `comfy generate list` shows the partner models your CLI version can call: https://docs.comfy.org/agent-tools/cli.md' - ] - : [ - '5. From a terminal or a coding agent with Comfy CLI, which runs workflows on Comfy Cloud or a local ComfyUI: https://docs.comfy.org/agent-tools/cli.md' - ]), - '6. From Claude Code, Cursor, or Codex over Comfy MCP at https://cloud.comfy.org/mcp: https://docs.comfy.org/agent-tools/mcp.md', - '', - `This page as HTML: ${pageUrl}`, - `Full model catalog: ${new URL('/p/supported-models/llms.txt', base).href}` - ] - - return new Response(lines.join('\n') + '\n', { - headers: { 'Content-Type': 'text/markdown; charset=utf-8' } - }) -} diff --git a/apps/website/src/pages/p/supported-models/_llms.txt.test.ts b/apps/website/src/pages/p/supported-models/_llms.txt.test.ts deleted file mode 100644 index 28804892a5e..00000000000 --- a/apps/website/src/pages/p/supported-models/_llms.txt.test.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { describe, expect, it } from 'vitest' - -import { models } from '@/config/models' -import { GET } from './llms.txt' - -function render(site?: URL) { - return GET({ site } as unknown as Parameters[0]) as Response -} - -describe('llms.txt catalog', () => { - it('serves plain text with a markdown-twin link per registry model', async () => { - const res = render(new URL('https://example.org')) - expect(res.headers.get('Content-Type')).toContain('text/plain') - const body = await res.text() - for (const model of models.filter((m) => !m.canonicalSlug).slice(0, 5)) { - expect(body).toContain( - `[${model.displayName}](https://example.org/p/supported-models/${model.slug}.md)` - ) - } - }) - - it('excludes 301 alias entries', async () => { - const body = await render().text() - for (const alias of models.filter((m) => m.canonicalSlug)) { - expect(body).not.toContain(`/p/supported-models/${alias.slug}.md`) - } - }) - - it('lists launch pages as HTML pages, never as markdown twins', async () => { - const body = await render().text() - const launchSection = body.split('## Latest model launches')[1] ?? '' - const launchLines = launchSection - .split('## Run them')[0] - .split('\n') - .filter((line) => line.startsWith('- ')) - expect(launchLines.length).toBeGreaterThan(0) - for (const line of launchLines) { - expect(line).toContain('launch page') - expect(line).not.toContain('.md') - } - expect(body).toContain('without twins') - }) - - it('falls back to comfy.org when no site is configured', async () => { - const body = await render().text() - expect(body).toContain('https://comfy.org/p/supported-models/') - }) -}) diff --git a/apps/website/src/pages/p/supported-models/_slug.md.test.ts b/apps/website/src/pages/p/supported-models/_slug.md.test.ts deleted file mode 100644 index 34ffa322cda..00000000000 --- a/apps/website/src/pages/p/supported-models/_slug.md.test.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { describe, expect, it } from 'vitest' - -import { PRICING_URL } from '@/config/model-pricing' -import { models } from '@/config/models' -import { GET, getStaticPaths } from './[slug].md' - -type Model = (typeof models)[number] - -function mustFind(predicate: (model: Model) => boolean): Model { - const model = models.find(predicate) - if (!model) throw new Error('fixture model missing from registry data') - return model -} - -const partner = mustFind( - (m) => m.directory === 'partner_nodes' && !m.canonicalSlug -) -const open = mustFind( - (m) => m.directory !== 'partner_nodes' && !m.canonicalSlug -) - -function render(model: Model, site?: URL) { - return GET({ props: { model }, site } as unknown as Parameters< - typeof GET - >[0]) as Response -} - -describe('getStaticPaths', () => { - it('generates a path per model and skips 301 aliases', () => { - const slugs = new Set(getStaticPaths().map((p) => p.params.slug)) - expect(slugs.has(partner.slug)).toBe(true) - expect(slugs.has(open.slug)).toBe(true) - for (const alias of models.filter((m) => m.canonicalSlug)) { - expect(slugs.has(alias.slug)).toBe(false) - } - }) -}) - -describe('GET', () => { - it('serves markdown with the model heading on the site origin', async () => { - const res = render(open, new URL('https://example.org')) - expect(res.headers.get('Content-Type')).toContain('text/markdown') - const body = await res.text() - expect(body).toContain(`# ${open.displayName} in ComfyUI`) - expect(body).toContain( - `https://example.org/p/supported-models/${open.slug}` - ) - }) - - it('leads with front matter and ends with the agent run paths', async () => { - const body = await render(open, new URL('https://example.org')).text() - expect(body.startsWith('---\ntitle: "')).toBe(true) - expect(body).toContain( - `canonical: https://example.org/p/supported-models/${open.slug}/\nlang: en\nindex: https://example.org/llms.txt\n---` - ) - expect(body).toContain('https://docs.comfy.org/agent-tools/cli.md') - expect(body).toContain('https://cloud.comfy.org/mcp') - }) - - it('falls back to comfy.org when no site is configured', async () => { - const body = await render(open).text() - expect(body).toContain(`https://comfy.org/p/supported-models/${open.slug}`) - }) - - it('gives partner models the provider-API run path and pricing section', async () => { - const body = await render(partner).text() - expect(body).toContain('through partner nodes') - expect(body).not.toContain('Locally in ComfyUI') - expect(body).toContain(PRICING_URL) - expect(body).not.toContain('#cloud-gpu') - }) - - it('gives open models the local run path and Cloud GPU pricing', async () => { - const body = await render(open).text() - expect(body).toContain('Locally in ComfyUI') - expect(body).toContain(`${PRICING_URL}#cloud-gpu`) - }) -}) diff --git a/apps/website/src/pages/p/supported-models/index.astro b/apps/website/src/pages/p/supported-models/index.astro deleted file mode 100644 index 767ef854e28..00000000000 --- a/apps/website/src/pages/p/supported-models/index.astro +++ /dev/null @@ -1,96 +0,0 @@ ---- -import BaseLayout from '@/layouts/BaseLayout.astro' -import { models } from '@/config/models' -import { - absoluteUrl, - itemListNode, - jsonLdId, - pageContext -} from '@/utils/jsonLd' - -const canonicalModels = models.filter((model) => !model.canonicalSlug) - -const title = Astro.locals.t('models.index.title') -const subtitle = Astro.locals.t('models.index.subtitle') - -const { url } = pageContext(Astro.site, Astro.url.pathname, Astro.currentLocale) -const modelList = itemListNode( - url, - title, - canonicalModels.map((model) => ({ - url: absoluteUrl(Astro.site, `/p/supported-models/${model.slug}`) - })) -) - -const dirLabel: Record = { - diffusion_models: 'Diffusion', - checkpoints: 'Checkpoint', - loras: 'LoRA', - controlnet: 'ControlNet', - clip_vision: 'CLIP Vision', - model_patches: 'Patch', - vae: 'VAE', - text_encoders: 'Text Encoder', - audio_encoders: 'Audio Encoder', - latent_upscale_models: 'Latent Upscale', - upscale_models: 'Upscale', - style_models: 'Style', - partner_nodes: 'Partner Node' -} ---- - - -
-
-

- {Astro.locals.t('models.hero.eyebrow')} -

-

- {title} -

-

- {subtitle} -

-
- - -
-
diff --git a/apps/website/src/pages/p/supported-models/llms.txt.ts b/apps/website/src/pages/p/supported-models/llms.txt.ts deleted file mode 100644 index a98c0b6cc0d..00000000000 --- a/apps/website/src/pages/p/supported-models/llms.txt.ts +++ /dev/null @@ -1,64 +0,0 @@ -// llms.txt for the supported-models section: a machine-readable catalog of -// every model page, each pointing at its markdown twin. -import type { APIRoute } from 'astro' - -import { dirLabels } from '@/config/model-descriptions' -import { models } from '@/config/models' -import { getRoutes } from '@/config/routes' - -export const GET: APIRoute = ({ site }) => { - const base = site ?? 'https://comfy.org' - - const lines = [ - '# Supported models in ComfyUI', - '', - "> Every model on this list runs in ComfyUI. Open models run locally on your own hardware or on Comfy Cloud; partner models run through partner nodes with inference on the provider's API. Pages under Models have a markdown twin at the same URL plus `.md`; the Latest model launches links are HTML launch pages without twins.", - '', - '## Models', - '' - ] - - for (const model of models) { - if (model.canonicalSlug) continue - const mdUrl = new URL(`/p/supported-models/${model.slug}.md`, base).href - const label = dirLabels[model.directory] ?? model.directory - const templates = `${model.workflowCount} workflow template${model.workflowCount === 1 ? '' : 's'}` - lines.push(`- [${model.displayName}](${mdUrl}): ${label}, ${templates}`) - } - - // Recent releases live on dedicated launch pages before their file-level - // registry entries exist — list them so the catalog covers the newest models. - const routes = getRoutes('en') - const launchPages: Array<[string, string]> = [ - ['FLUX 3', routes.flux3], - ['MiniMax H3', routes.minimax], - ['MiniMax Music 3', routes.minimaxMusic3], - ['Seedance 2.5', routes.seedance], - ['ChatGPT Images 2.5', routes.chatgptImage25], - ['Qwen-Image 2.1', routes.qwenImage21], - ['Wan 3.0', routes.wan3], - ['Wan Animate 2', routes.wanAnimate2], - ['LTX 2.5', routes.ltx] - ] - lines.push('', '## Latest model launches', '') - for (const [name, path] of launchPages) { - lines.push(`- [${name}](${new URL(path, base).href}): launch page`) - } - - lines.push( - '', - '## Run them', - '', - '- [ComfyUI, open source](https://comfy.org/download/): free on your own hardware (open models; partner models call the provider API)', - '- [Comfy Cloud](https://cloud.comfy.org): hosted GPUs, same graph, every parameter', - '- [Workflow templates](https://comfy.org/workflows/): community workflows, ready to load', - '- [Comfy SDKs](https://docs.comfy.org/development/api-development/sdks.md): run workflows from Python or TypeScript (beta)', - '- [Comfy CLI](https://docs.comfy.org/agent-tools/cli.md): run workflows and partner models from a terminal or a coding agent', - '- [Comfy MCP](https://docs.comfy.org/agent-tools/mcp.md): drive ComfyUI from Claude Code, Cursor, or Codex; the hosted server is https://cloud.comfy.org/mcp', - `- [Site index](${new URL('/llms.txt', base).href}): every Comfy surface, for agents` - ) - - return new Response(lines.join('\n') + '\n', { - headers: { 'Content-Type': 'text/plain; charset=utf-8' } - }) -} diff --git a/apps/website/src/utils/modelFaq.test.ts b/apps/website/src/utils/modelFaq.test.ts deleted file mode 100644 index 6168a89f6b6..00000000000 --- a/apps/website/src/utils/modelFaq.test.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { describe, expect, it } from 'vitest' -import type { Model } from '@/config/models' -import { buildModelFaqs, modelFaqJsonLd } from './modelFaq' - -const localModel: Model = { - slug: 'local-model', - name: 'local_model', - displayName: 'Local Model', - directory: 'diffusion_models', - huggingFaceUrl: 'https://huggingface.co/local', - docsUrl: 'https://docs.comfy.org/local', - featured: false, - workflowCount: 1 -} - -const cloudModel: Model = { - ...localModel, - slug: 'cloud-model', - name: 'cloud_model', - displayName: 'Cloud Model', - directory: 'partner_nodes', - huggingFaceUrl: '', - docsUrl: undefined, - workflowCount: 3 -} - -describe('model FAQs', () => { - it('uses the visible FAQ array unchanged in JSON-LD', () => { - const faqs = buildModelFaqs(localModel) - const jsonLd = modelFaqJsonLd(faqs, 'https://comfy.org/model#faq') - - expect(jsonLd.mainEntity).toEqual( - faqs.map((faq) => ({ - '@type': 'Question', - name: faq.question, - acceptedAnswer: { '@type': 'Answer', text: faq.answer } - })) - ) - }) - - it('uses singular workflow copy with docs', () => { - const faqs = buildModelFaqs(localModel) - - expect(faqs[1].answer).toContain('the community workflow template') - expect(faqs[1].answer).not.toContain('templates') - expect(faqs[2].answer).toContain('There is 1 community workflow template') - }) - - it('uses plural cloud-only copy without claiming local inference', () => { - const faqs = buildModelFaqs(cloudModel) - - expect(faqs[1].answer).toContain('3 community workflow templates') - expect(faqs[2].answer).toContain('There are 3') - expect(faqs[3].answer).toContain('exclusively on Comfy Cloud') - expect(faqs[3].answer).not.toContain('local inference') - }) - - it('localizes questions, descriptions, and cloud-only pricing', () => { - const faqs = buildModelFaqs(cloudModel, 'zh-CN') - - expect(faqs[0].question).toBe('什么是 Cloud Model?') - expect(faqs[0].answer).toContain('云端 API 模型') - expect(faqs[1].question).toBe('如何在 ComfyUI 中使用 Cloud Model?') - expect(faqs[3].answer).toContain('仅在 Comfy Cloud 上运行') - expect( - faqs.flatMap((faq) => [faq.question, faq.answer]).join(' ') - ).not.toMatch(/\{\w+\}/) - }) -}) diff --git a/apps/website/src/utils/modelFaq.ts b/apps/website/src/utils/modelFaq.ts deleted file mode 100644 index a011015fb30..00000000000 --- a/apps/website/src/utils/modelFaq.ts +++ /dev/null @@ -1,110 +0,0 @@ -import type { Model } from '@/config/models' -import { translationsFor } from '@/i18n/translations' -import type { Locale, TranslationKey } from '@/i18n/translations' -import type { JsonLdNode } from './jsonLd' -import { getFaqPricingAnswer, getWhatIsDescription } from './modelSeoCopy' - -export interface ModelFaq { - readonly id: string - readonly question: string - readonly answer: string -} - -// Values are `| undefined` because `directory` is a generated string asserted to -// ModelDirectory without runtime validation, so a new upstream directory reaches -// this lookup as a miss. Keys stay exhaustive: Record still requires every known -// directory to be listed. -const dirDescriptionKeys: Record< - Model['directory'], - TranslationKey | undefined -> = { - diffusion_models: 'models.dirDescription.diffusion_models', - checkpoints: 'models.dirDescription.checkpoints', - loras: 'models.dirDescription.loras', - controlnet: 'models.dirDescription.controlnet', - clip_vision: 'models.dirDescription.clip_vision', - vae: 'models.dirDescription.vae', - text_encoders: 'models.dirDescription.text_encoders', - audio_encoders: 'models.dirDescription.audio_encoders', - upscale_models: 'models.dirDescription.upscale_models', - latent_upscale_models: 'models.dirDescription.latent_upscale_models', - style_models: 'models.dirDescription.style_models', - model_patches: 'models.dirDescription.model_patches', - partner_nodes: 'models.dirDescription.partner_nodes', - geometry_estimation: 'models.dirDescription.geometry_estimation', - background_removal: 'models.dirDescription.background_removal', - detection: 'models.dirDescription.detection', - frame_interpolation: 'models.dirDescription.frame_interpolation', - optical_flow: 'models.dirDescription.optical_flow' -} - -export function buildModelFaqs( - model: Model, - locale: Locale = 'en' -): readonly ModelFaq[] { - const { t } = translationsFor(locale) - const values = { name: model.displayName, count: model.workflowCount } - const templates = t( - model.workflowCount === 1 - ? 'models.faq.templates.singular' - : 'models.faq.templates.plural', - values - ) - const howToUse = t( - model.docsUrl - ? 'models.faq.howToUse.withDocs' - : 'models.faq.howToUse.withoutDocs', - { ...values, templates, url: model.docsUrl ?? '' } - ) - - return [ - { - id: 'what-is', - question: t('models.faq.whatIs.question', values), - answer: getWhatIsDescription( - model, - t( - dirDescriptionKeys[model.directory] ?? - 'models.dirDescription.default', - {} - ), - locale - ) - }, - { - id: 'how-to-use', - question: t('models.faq.howToUse.question', values), - answer: howToUse - }, - { - id: 'workflow-count', - question: t('models.faq.workflowCount.question', values), - answer: t( - model.workflowCount === 1 - ? 'models.faq.workflowCount.singular' - : 'models.faq.workflowCount.plural', - values - ) - }, - { - id: 'is-free', - question: t('models.faq.isFree.question', values), - answer: getFaqPricingAnswer(model, locale) - } - ] -} - -export function modelFaqJsonLd( - faqs: readonly ModelFaq[], - id: string -): JsonLdNode { - return { - '@type': 'FAQPage', - '@id': id, - mainEntity: faqs.map((faq) => ({ - '@type': 'Question', - name: faq.question, - acceptedAnswer: { '@type': 'Answer', text: faq.answer } - })) - } -} diff --git a/apps/website/src/utils/modelSeoCopy.test.ts b/apps/website/src/utils/modelSeoCopy.test.ts deleted file mode 100644 index 1c6cf851880..00000000000 --- a/apps/website/src/utils/modelSeoCopy.test.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { describe, it, expect } from 'vitest' -import { - getWhatIsDescription, - getPageDescription, - getFaqPricingAnswer -} from './modelSeoCopy' -import type { Model } from '@/config/models' - -describe('modelSeoCopy', () => { - const localModel: Model = { - slug: 'local-model', - name: 'local_model', - displayName: 'Local Model', - directory: 'diffusion_models', - huggingFaceUrl: 'https://huggingface.co/local', - featured: false, - workflowCount: 10 - } - - const partnerWithHF: Model = { - slug: 'partner-hf', - name: 'partner_hf', - displayName: 'Partner HF', - directory: 'partner_nodes', - huggingFaceUrl: 'https://huggingface.co/partner', - featured: false, - workflowCount: 5 - } - - const partnerCloudOnly: Model = { - slug: 'partner-cloud', - name: 'partner_cloud', - displayName: 'Partner Cloud', - directory: 'partner_nodes', - huggingFaceUrl: '', - featured: false, - workflowCount: 42 - } - - const standardCloudApi: Model = { - slug: 'standard-api', - name: 'standard_api', - displayName: 'Standard API', - directory: 'diffusion_models', - huggingFaceUrl: '', - featured: false, - workflowCount: 15 - } - - describe('getWhatIsDescription', () => { - it('returns local inference copy for standard models', () => { - const desc = getWhatIsDescription(localModel, 'a diffusion model') - expect(desc).toContain('run it locally in ComfyUI with full control') - }) - - it('returns local inference copy for partner models with HF URLs', () => { - const desc = getWhatIsDescription(partnerWithHF, 'a partner model') - expect(desc).toContain('run it locally in ComfyUI with full control') - }) - - it('returns cloud-only copy for partner models without HF URLs', () => { - const desc = getWhatIsDescription(partnerCloudOnly, 'a cloud model') - expect(desc).not.toContain('run it locally') - expect(desc).toContain('access it through Comfy Cloud') - }) - }) - - describe('getPageDescription', () => { - it('returns local inference copy for standard models', () => { - const desc = getPageDescription(localModel) - expect(desc).toContain('full parameter control') - expect(desc).toContain('free local inference') - }) - - it('returns cloud-only copy for partner models without HF URLs', () => { - const desc = getPageDescription(partnerCloudOnly) - expect(desc).not.toContain('full parameter control') - expect(desc).not.toContain('free local inference') - }) - }) - - describe('getFaqPricingAnswer', () => { - it('returns standard open source copy for local models', () => { - const ans = getFaqPricingAnswer(localModel) - expect(ans).toContain('ComfyUI is free and open source') - expect(ans).toContain('weights are available to download') - expect(ans).toContain( - 'local inference on your own hardware is always free' - ) - }) - - it('returns API copy for partner models with HF URLs', () => { - const ans = getFaqPricingAnswer(partnerWithHF) - expect(ans).toContain('ComfyUI is free and open source') - expect(ans).toContain('weights are available to download') - }) - - it('returns cloud-only copy for partner models without HF URLs', () => { - const ans = getFaqPricingAnswer(partnerCloudOnly) - expect(ans).toContain('exclusively on Comfy Cloud') - expect(ans).toContain('Pay-per-compute pricing applies') - expect(ans).not.toContain('local inference') - }) - - it('returns cloud-only copy for standard models without HF URLs', () => { - const ans = getFaqPricingAnswer(standardCloudApi) - expect(ans).toContain('exclusively on Comfy Cloud') - expect(ans).not.toContain('local inference') - }) - }) -}) diff --git a/apps/website/src/utils/modelSeoCopy.ts b/apps/website/src/utils/modelSeoCopy.ts deleted file mode 100644 index 88c53136e19..00000000000 --- a/apps/website/src/utils/modelSeoCopy.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type { Model } from '@/config/models' -import { translationsFor } from '@/i18n/translations' -import type { Locale } from '@/i18n/translations' - -function isCloudOnly(model: Model): boolean { - return !model.huggingFaceUrl -} - -export function getWhatIsDescription( - model: Model, - dirDesc: string, - locale: Locale = 'en' -): string { - const { t } = translationsFor(locale) - return t( - isCloudOnly(model) - ? 'models.faq.whatIs.cloudAnswer' - : 'models.faq.whatIs.localAnswer', - { - name: model.displayName, - description: dirDesc, - count: model.workflowCount - } - ) -} - -export function getPageDescription(model: Model): string { - if (isCloudOnly(model)) { - return `Run ${model.displayName} in ComfyUI. ${model.workflowCount} community workflow templates and step-by-step tutorials.` - } - return `Run ${model.displayName} in ComfyUI with full parameter control. ${model.workflowCount} community workflow templates, step-by-step tutorials, and free local inference.` -} - -export function getFaqPricingAnswer( - model: Model, - locale: Locale = 'en' -): string { - const { t } = translationsFor(locale) - return t( - isCloudOnly(model) - ? 'models.faq.isFree.cloudAnswer' - : 'models.faq.isFree.localAnswer', - { name: model.displayName } - ) -} diff --git a/apps/website/vercel.json b/apps/website/vercel.json index b78b51713a0..9f6f650810c 100644 --- a/apps/website/vercel.json +++ b/apps/website/vercel.json @@ -287,126 +287,6 @@ "destination": "/affiliates/terms/", "permanent": true }, - { - "source": "/p/supported-models/t5xxl-fp8-e4m3fn-scaled", - "destination": "/p/supported-models/t5xxl-fp16/", - "permanent": true - }, - { - "source": "/p/supported-models/t5xxl-fp8-e4m3fn-scaled/", - "destination": "/p/supported-models/t5xxl-fp16/", - "permanent": true - }, - { - "source": "/p/supported-models/gemma-3-12b-it", - "destination": "/p/supported-models/gemma-3-12b-it-fp4-mixed/", - "permanent": true - }, - { - "source": "/p/supported-models/gemma-3-12b-it/", - "destination": "/p/supported-models/gemma-3-12b-it-fp4-mixed/", - "permanent": true - }, - { - "source": "/p/supported-models/umt5-xxl-fp16", - "destination": "/p/supported-models/umt5-xxl-fp8-e4m3fn-scaled/", - "permanent": true - }, - { - "source": "/p/supported-models/umt5-xxl-fp16/", - "destination": "/p/supported-models/umt5-xxl-fp8-e4m3fn-scaled/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen-2-5-vl-7b", - "destination": "/p/supported-models/qwen-2-5-vl-7b-fp8-scaled/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen-2-5-vl-7b/", - "destination": "/p/supported-models/qwen-2-5-vl-7b-fp8-scaled/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen3vl-4b-bf16", - "destination": "/p/supported-models/qwen3vl-4b-fp8-scaled/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen3vl-4b-bf16/", - "destination": "/p/supported-models/qwen3vl-4b-fp8-scaled/", - "permanent": true - }, - { - "source": "/p/supported-models/mistral-3-small-flux2-fp8", - "destination": "/p/supported-models/mistral-3-small-flux2-bf16/", - "permanent": true - }, - { - "source": "/p/supported-models/mistral-3-small-flux2-fp8/", - "destination": "/p/supported-models/mistral-3-small-flux2-bf16/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen-image-edit-2511-fp8mixed", - "destination": "/p/supported-models/qwen-image-edit-2511-bf16/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen-image-edit-2511-fp8mixed/", - "destination": "/p/supported-models/qwen-image-edit-2511-bf16/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen-3-8b", - "destination": "/p/supported-models/qwen-3-8b-fp8mixed/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen-3-8b/", - "destination": "/p/supported-models/qwen-3-8b-fp8mixed/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen-image-2512-bf16", - "destination": "/p/supported-models/qwen-image-2512-fp8-e4m3fn/", - "permanent": true - }, - { - "source": "/p/supported-models/qwen-image-2512-bf16/", - "destination": "/p/supported-models/qwen-image-2512-fp8-e4m3fn/", - "permanent": true - }, - { - "source": "/p/supported-models/gemma-2-2b-it-elm-fp8-scaled", - "destination": "/p/supported-models/gemma-2-2b-it-elm-bf16/", - "permanent": true - }, - { - "source": "/p/supported-models/gemma-2-2b-it-elm-fp8-scaled/", - "destination": "/p/supported-models/gemma-2-2b-it-elm-bf16/", - "permanent": true - }, - { - "source": "/p/supported-models/gemma-3-12b-it-fp8-scaled", - "destination": "/p/supported-models/gemma-3-12b-it-fp4-mixed/", - "permanent": true - }, - { - "source": "/p/supported-models/gemma-3-12b-it-fp8-scaled/", - "destination": "/p/supported-models/gemma-3-12b-it-fp4-mixed/", - "permanent": true - }, - { - "source": "/p/supported-models/grok-image", - "destination": "/p/supported-models/grok-imagine/", - "permanent": true - }, - { - "source": "/p/supported-models/grok-image/", - "destination": "/p/supported-models/grok-imagine/", - "permanent": true - }, { "source": "/models", "destination": "/hub/models/", @@ -4336,6 +4216,116 @@ "source": "/models/apps/reshoot/", "destination": "/hub/apps/reshoot/", "permanent": false + }, + { + "source": "/p/supported-models/kling-o3", + "destination": "/hub/models/kling-o3-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/kling-o3/", + "destination": "/hub/models/kling-o3-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/nano-banana", + "destination": "/hub/models/nano-banana-text-to-image/", + "permanent": true + }, + { + "source": "/p/supported-models/nano-banana/", + "destination": "/hub/models/nano-banana-text-to-image/", + "permanent": true + }, + { + "source": "/p/supported-models/nano-banana-2", + "destination": "/hub/models/nano-banana-2-text-to-image/", + "permanent": true + }, + { + "source": "/p/supported-models/nano-banana-2/", + "destination": "/hub/models/nano-banana-2-text-to-image/", + "permanent": true + }, + { + "source": "/p/supported-models/seedance-2", + "destination": "/hub/models/seedance-2-0-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/seedance-2/", + "destination": "/hub/models/seedance-2-0-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/seedance-2-0", + "destination": "/hub/models/seedance-2-0-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/seedance-2-0/", + "destination": "/hub/models/seedance-2-0-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/veo-3", + "destination": "/hub/models/veo-3-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/veo-3/", + "destination": "/hub/models/veo-3-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/wan-3-0", + "destination": "/hub/models/wan-3-0-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/wan-3-0/", + "destination": "/hub/models/wan-3-0-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/wan2-6", + "destination": "/hub/models/wan-2-6-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/wan2-6/", + "destination": "/hub/models/wan-2-6-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/wan2-7", + "destination": "/hub/models/wan-2-7-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models/wan2-7/", + "destination": "/hub/models/wan-2-7-text-to-video/", + "permanent": true + }, + { + "source": "/p/supported-models.md", + "destination": "/hub/models/", + "permanent": true + }, + { + "source": "/p/supported-models.md/", + "destination": "/hub/models/", + "permanent": true + }, + { + "source": "/p/supported-models/:path*", + "destination": "/hub/models/", + "permanent": true + }, + { + "source": "/p/supported-models/:path*/", + "destination": "/hub/models/", + "permanent": true } ] } From 81488bb69c4933d84e669992ef5cacad20bcf1b1 Mon Sep 17 00:00:00 2001 From: Maanil Verma Date: Mon, 5 Oct 2026 19:34:08 +0530 Subject: [PATCH 2/2] refactor(website): remove the supported-models pages and links to them The pages, their markdown twins and llms.txt now redirect, so drop them from the build, point the launch-page breadcrumbs, drops card, showcase CTA and llms.txt at /hub/models/, and remove the footer and nav entries that duplicated the catalogue link. Delete the modules only those pages used. --- apps/website/e2e/canonical-redirects.spec.ts | 12 --- apps/website/e2e/flux-3.spec.ts | 2 +- apps/website/e2e/gemini-omni.spec.ts | 2 +- apps/website/e2e/ltx-2.5.spec.ts | 2 +- apps/website/e2e/minimax-h3.spec.ts | 2 +- apps/website/e2e/seedance.spec.ts | 2 +- apps/website/e2e/wan-3.0.spec.ts | 7 +- apps/website/e2e/wan-animate-2.spec.ts | 2 +- apps/website/public/llms.txt | 8 +- .../scripts/generate-model-url-map.test.ts | 2 +- .../src/components/common/SiteFooter.vue | 4 - .../components/models/ModelsShowcase.astro | 2 +- apps/website/src/config/indexing.test.ts | 12 --- apps/website/src/config/indexing.ts | 12 --- apps/website/src/config/models.ts | 4 - apps/website/src/config/routes.test.ts | 10 +-- apps/website/src/config/routes.ts | 5 -- apps/website/src/data/drops.ts | 2 +- apps/website/src/data/mainNavigation.ts | 4 - .../src/integrations/markdown-twins.ts | 6 +- apps/website/src/lib/hreflang.test.ts | 2 - apps/website/src/lib/section-index.test.ts | 23 ------ apps/website/src/lib/section-index.ts | 10 +-- apps/website/src/locales/en/main.json | 74 ------------------- apps/website/src/locales/zh-CN/main.json | 74 ------------------- apps/website/src/pages/zh-CN/models.astro | 2 +- .../model-launch/ModelLaunchPage.astro | 2 +- 27 files changed, 26 insertions(+), 263 deletions(-) diff --git a/apps/website/e2e/canonical-redirects.spec.ts b/apps/website/e2e/canonical-redirects.spec.ts index 6abdfbf7f53..46c7bc804d0 100644 --- a/apps/website/e2e/canonical-redirects.spec.ts +++ b/apps/website/e2e/canonical-redirects.spec.ts @@ -29,18 +29,6 @@ test.describe('canonical redirects', () => { ) }) - test('builds a model alias redirect with its canonical URL', () => { - const redirectPage = readFileSync( - 'dist/p/supported-models/t5xxl-fp8-e4m3fn-scaled/index.html', - 'utf8' - ) - - expect(redirectPage).toContain('url=/p/supported-models/t5xxl-fp16/') - expect(redirectPage).toContain( - 'rel="canonical" href="https://comfy.org/p/supported-models/t5xxl-fp16/"' - ) - }) - test('builds each model page at /hub/models and no page at its old address', () => { expect( readFileSync( diff --git a/apps/website/e2e/flux-3.spec.ts b/apps/website/e2e/flux-3.spec.ts index 22bc7cc0802..549428de303 100644 --- a/apps/website/e2e/flux-3.spec.ts +++ b/apps/website/e2e/flux-3.spec.ts @@ -12,7 +12,7 @@ const RUN_OPTIONS_HEADING = t('flux3.runOptions.heading', {}, { locale: 'en' }) const CTA_HEADING = t('flux3.cta.heading', {}, { locale: 'en' }) const FAQ_COUNT = flux3Page.faq?.items.length ?? 0 const CARD_COUNT = flux3Page.gallery?.cards.length ?? 0 -const MODELS_ROUTE = getRoutes('en').models +const MODELS_ROUTE = getRoutes('en').workshop test.describe('Flux 3 page @smoke', () => { test.beforeEach(async ({ page }) => { diff --git a/apps/website/e2e/gemini-omni.spec.ts b/apps/website/e2e/gemini-omni.spec.ts index 5b1f26731ef..695228358bb 100644 --- a/apps/website/e2e/gemini-omni.spec.ts +++ b/apps/website/e2e/gemini-omni.spec.ts @@ -17,7 +17,7 @@ const STEPS_CTA = t('geminiOmni.steps.secondaryCta', {}, { locale: 'en' }) const REVIEWS_HEADING = t('geminiOmni.reviews.heading', {}, { locale: 'en' }) const HIGHLIGHT_CTA = t('geminiOmni.reviews.highlightCta', {}, { locale: 'en' }) const COPY_PROMPT = t('modelLaunch.copyPrompt', {}, { locale: 'en' }) -const MODELS_ROUTE = getRoutes('en').models +const MODELS_ROUTE = getRoutes('en').workshop const MCP_ROUTE = getRoutes('en').mcp const FIRST_REVIEW = creatorReviews[0] diff --git a/apps/website/e2e/ltx-2.5.spec.ts b/apps/website/e2e/ltx-2.5.spec.ts index 4f6eac174e9..f59b12bb330 100644 --- a/apps/website/e2e/ltx-2.5.spec.ts +++ b/apps/website/e2e/ltx-2.5.spec.ts @@ -13,7 +13,7 @@ const PATH = '/ltx-2.5' const ZH_PATH = '/zh-CN/ltx-2.5' const HERO_TITLE = t('ltx.hero.title', {}, { locale: 'en' }) const MODELS_HEADING = t('ltx.models.heading', {}, { locale: 'en' }) -const MODELS_ROUTE = getRoutes('en').models +const MODELS_ROUTE = getRoutes('en').workshop const REVIEWS_HEADING = t('ltx.reviews.heading', {}, { locale: 'en' }) const HIGHLIGHT_CTA = t('ltx.reviews.highlightCta', {}, { locale: 'en' }) const MCP_ROUTE = getRoutes('en').mcp diff --git a/apps/website/e2e/minimax-h3.spec.ts b/apps/website/e2e/minimax-h3.spec.ts index b8144512b20..34f7d07c5a7 100644 --- a/apps/website/e2e/minimax-h3.spec.ts +++ b/apps/website/e2e/minimax-h3.spec.ts @@ -13,7 +13,7 @@ const HERO_TITLE = t('minimax.hero.titleModel', {}, { locale: 'en' }) + t('minimax.hero.titleRest', {}, { locale: 'en' }) const MODELS_HEADING = t('minimax.models.heading', {}, { locale: 'en' }) -const MODELS_ROUTE = getRoutes('en').models +const MODELS_ROUTE = getRoutes('en').workshop const CTA_HEADING = t('minimax.cta.heading', {}, { locale: 'en' }) const CTA_PRIMARY = t('minimax.cta.primaryCta', {}, { locale: 'en' }) const CLOUD_URL = externalLinks.cloud diff --git a/apps/website/e2e/seedance.spec.ts b/apps/website/e2e/seedance.spec.ts index 79a0445df57..58736e37a96 100644 --- a/apps/website/e2e/seedance.spec.ts +++ b/apps/website/e2e/seedance.spec.ts @@ -11,7 +11,7 @@ import { waitForIsland } from './fixtures/islands' const PATH = '/seedance-2.5' const HERO_TITLE = t('seedance.hero.title', {}, { locale: 'en' }) const MODELS_HEADING = t('seedance.models.heading', {}, { locale: 'en' }) -const MODELS_ROUTE = getRoutes('en').models +const MODELS_ROUTE = getRoutes('en').workshop const STEPS_HEADING = t('seedance.steps.heading', {}, { locale: 'en' }) const STEPS_SECONDARY = t('seedance.steps.secondaryCta', {}, { locale: 'en' }) const STEPS_PRIMARY = t('seedance.steps.primaryCta', {}, { locale: 'en' }) diff --git a/apps/website/e2e/wan-3.0.spec.ts b/apps/website/e2e/wan-3.0.spec.ts index 91e1f486ad3..a6ac0ae956b 100644 --- a/apps/website/e2e/wan-3.0.spec.ts +++ b/apps/website/e2e/wan-3.0.spec.ts @@ -14,7 +14,7 @@ const HERO_SECONDARY_CTA = t('wan3.hero.secondaryCta') const FAQ_HEADING = t('wan3.faq.heading') const RUN_OPTIONS_HEADING = t('wan3.runOptions.heading') const REVIEWS_HEADING = t('wan3.reviews.heading') -const MODELS_ROUTE = getRoutes('en').models +const MODELS_ROUTE = getRoutes('en').workshop const WAN3_TEMPLATE = 'https://cloud.comfy.org/?template=api_wan3_0_t2v' // Counts are the launch requirement rather than a snapshot of the config: @@ -182,7 +182,10 @@ test.describe('Wan 3.0 launch page — zh-CN', () => { .getByRole('link', { name: t('models.breadcrumb.models', {}, { locale: 'zh-CN' }) }) - await expect(modelsCrumb).toHaveAttribute('href', getRoutes('zh-CN').models) + await expect(modelsCrumb).toHaveAttribute( + 'href', + getRoutes('zh-CN').workshop + ) const footerLink = page .locator('footer') diff --git a/apps/website/e2e/wan-animate-2.spec.ts b/apps/website/e2e/wan-animate-2.spec.ts index 7a0f5a707fc..a5875d3d3d5 100644 --- a/apps/website/e2e/wan-animate-2.spec.ts +++ b/apps/website/e2e/wan-animate-2.spec.ts @@ -11,7 +11,7 @@ const PATH = '/wan-animate-2' const ZH_PATH = '/zh-CN/wan-animate-2' const HERO_TITLE = t('wanAnimate2.hero.title', {}, { locale: 'en' }) const HERO_PRIMARY = t('wanAnimate2.hero.primaryCta', {}, { locale: 'en' }) -const MODELS_ROUTE = getRoutes('en').models +const MODELS_ROUTE = getRoutes('en').workshop const STEPS_HEADING = t('wanAnimate2.steps.heading', {}, { locale: 'en' }) const REVIEWS_HEADING = t('wanAnimate2.reviews.heading', {}, { locale: 'en' }) const HIGHLIGHT_CTA = t( diff --git a/apps/website/public/llms.txt b/apps/website/public/llms.txt index dc3d14057eb..d6eb6cb5f75 100644 --- a/apps/website/public/llms.txt +++ b/apps/website/public/llms.txt @@ -18,7 +18,7 @@ What people build with it: VFX shot work (clean plates, sky replacement, de-agin Studios, brands, and schools building with Comfy include Series Entertainment, Moment Factory, Ubisoft La Forge, Groove Jones, Svedka with Silverside AI, and the Open Story Movement. Carnegie Mellon, USC, NTU, and UAL's Creative Computing Institute teach with ComfyUI. Use cases concentrate in VFX and animation, advertising and creative studios, gaming, and eCommerce and fashion. -Languages: comfy.org is published in English and Simplified Chinese, with a Japanese home page at https://comfy.org/ja/. Nearly every page has a twin under /zh-CN/ (for example https://comfy.org/zh-CN/cli/); the affiliate pages, the enterprise MSA, the terms of service, and the supported-models directory are English only. Comfy Workflows is published in 11 languages (English, 简体中文, 繁體中文, Español, Français, 日本語, 한국어, Português, Русский, العربية, and Türkçe). The docs are published in English, Chinese, Japanese, and Korean. +Languages: comfy.org is published in English and Simplified Chinese, with a Japanese home page at https://comfy.org/ja/. Nearly every page has a twin under /zh-CN/ (for example https://comfy.org/zh-CN/cli/); the affiliate pages, the enterprise MSA, the terms of service, and the model catalog are English only. Comfy Workflows is published in 11 languages (English, 简体中文, 繁體中文, Español, Français, 日本語, 한국어, Português, Русский, العربية, and Türkçe). The docs are published in English, Chinese, Japanese, and Korean. ## Names and spelling @@ -46,7 +46,7 @@ Languages: comfy.org is published in English and Simplified Chinese, with a Japa - Over MCP: `claude mcp add --transport http comfy-cloud https://cloud.comfy.org/mcp` for Claude Code, or `codex mcp add comfy-cloud --url https://cloud.comfy.org/mcp` for Codex. Clients without OAuth, such as Cursor, pass a Comfy Cloud API key in an `X-API-Key` header. - API keys are created in the browser at https://platform.comfy.org/profile/api-keys, start with `comfyui-`, and are shown once. Store them in `COMFY_API_KEY`. - Generation on Comfy Cloud spends the account's credits. Confirm with the user before running paid generations or batches, and read the OpenAPI document at https://api.comfy.org/openapi before choosing an API operation. -- The model catalog changes weekly. Check https://comfy.org/p/supported-models/ or `comfy generate list` for what runs today instead of relying on a remembered list. +- The model catalog changes weekly. Check https://comfy.org/hub/models/ or `comfy generate list` for what runs today instead of relying on a remembered list. ## Notes for AI systems @@ -59,7 +59,6 @@ Languages: comfy.org is published in English and Simplified Chinese, with a Japa - [Docs index for agents](https://docs.comfy.org/llms.txt): Machine-readable index of the full documentation. - [Docs full text for agents](https://docs.comfy.org/llms-full.txt): The complete documentation as one markdown file. -- [Model catalog for agents](https://comfy.org/p/supported-models/llms.txt): Machine-readable index of every supported-model page; each page also has a markdown twin at its URL plus `.md`. - [Docs homepage as markdown](https://docs.comfy.org/index.md): Append `.md` to any docs URL for its markdown twin. - [Developer Platform for agents](https://platform.comfy.org/llms.txt): What platform.comfy.org is for and which of its pages need a browser. - [Comfy API OpenAPI document](https://api.comfy.org/openapi): OpenAPI specification for api.comfy.org. @@ -94,8 +93,7 @@ Languages: comfy.org is published in English and Simplified Chinese, with a Japa ## Models -- [Supported Models](https://comfy.org/p/supported-models/): Directory of 380+ models that run in ComfyUI: image, video, audio, 3D, and utility models, each with its own page. Machine-readable catalog at https://comfy.org/p/supported-models/llms.txt. -- [Models Overview](https://comfy.org/hub/models/): Hosted AI models you can try in the browser and call through the Comfy API, with a page per model. For the full list of models that run in ComfyUI, see Supported Models above. +- [Models Overview](https://comfy.org/hub/models/): Hosted AI models you can try in the browser and call through the Comfy API, with a page per model. - [ChatGPT Images 2.5 (OpenAI, image model)](https://comfy.org/chatgpt-image-2.5/): Generate new images, edit existing visuals, and direct results with reference images in repeatable ComfyUI workflows through Partner Nodes. - [Qwen-Image 2.1 (Alibaba Qwen, image model)](https://comfy.org/qwen-image-2.1/): Open-weights 7B image model that generates and edits in one checkpoint, with native 2K output, RGBA transparency, and accurate English and Chinese text rendering. - [Flux 3 (Black Forest Labs, video model)](https://comfy.org/flux-3/): Multimodal model: video with native audio, up to 20 seconds per generation, from text, image, video, or keyframes. diff --git a/apps/website/scripts/generate-model-url-map.test.ts b/apps/website/scripts/generate-model-url-map.test.ts index 302ce45fdb8..61bf1ae0aca 100644 --- a/apps/website/scripts/generate-model-url-map.test.ts +++ b/apps/website/scripts/generate-model-url-map.test.ts @@ -142,7 +142,7 @@ describe('model URL map', () => { matchesRoute(pattern, `/hub/models/${slug}/`) ) ) - expect(patterns).toContain('/p/supported-models/[slug]') + expect(patterns).toContain('/learning/[slug]') expect(collisions).toEqual([]) }) }) diff --git a/apps/website/src/components/common/SiteFooter.vue b/apps/website/src/components/common/SiteFooter.vue index e61e901abff..fc365d8fc53 100644 --- a/apps/website/src/components/common/SiteFooter.vue +++ b/apps/website/src/components/common/SiteFooter.vue @@ -67,10 +67,6 @@ const topColumns: { title: string; links: FooterLink[] }[] = [ label: t('footer.modelCatalogue'), href: routes.workshop }, - { - label: t('nav.supportedModels'), - href: routes.models - }, { label: t('footer.minimaxH3'), href: routes.minimax diff --git a/apps/website/src/components/models/ModelsShowcase.astro b/apps/website/src/components/models/ModelsShowcase.astro index cd18a016035..f2c599e51e5 100644 --- a/apps/website/src/components/models/ModelsShowcase.astro +++ b/apps/website/src/components/models/ModelsShowcase.astro @@ -7,7 +7,7 @@ import ProductShowcaseSection from '@/components/home/ProductShowcaseSection.vue diff --git a/apps/website/src/config/indexing.test.ts b/apps/website/src/config/indexing.test.ts index aebe9414ae3..34436b01bf8 100644 --- a/apps/website/src/config/indexing.test.ts +++ b/apps/website/src/config/indexing.test.ts @@ -104,24 +104,12 @@ describe('indexing policy', () => { '/agent/', '/zh-CN/agent', '/zh-CN/agent/', - '/p/supported-models/grok-imagine', '/demos/image-to-video' ])('keeps %s indexable', (pathname) => { expect(isNoindexPathname(pathname)).toBe(false) expect(isExcludedFromSitemap(`https://comfy.org${pathname}`)).toBe(false) }) - it('derives model redirect exclusions from canonical model metadata', () => { - expect( - isExcludedFromSitemap('https://comfy.org/p/supported-models/qwen-3-8b/') - ).toBe(true) - expect( - isExcludedFromSitemap( - 'https://comfy.org/zh-CN/p/supported-models/grok-image/' - ) - ).toBe(true) - }) - it.for([ { vercelEnv: 'production', override: undefined, indexable: true }, { vercelEnv: undefined, override: '1', indexable: true }, diff --git a/apps/website/src/config/indexing.ts b/apps/website/src/config/indexing.ts index cc760ce2db1..bc4f9b4b6c6 100644 --- a/apps/website/src/config/indexing.ts +++ b/apps/website/src/config/indexing.ts @@ -3,7 +3,6 @@ import { hubAppHref, hubAppSlugs } from './hub-models' import { LOCALE_CODES, LOCALES } from './locales' import type { ModelPageLaunch } from './model-page-launch' import { launchedModelPages, launchedWorkflowPages } from './model-page-launch' -import { models } from './models' import { modelsUrlKind, modelsUrlPaths } from './models-url-registry' import { workshopModels } from './workshop-browse-content' import { isLegacyWorkshopRoute, isWorkshopRoute } from './workshop-release' @@ -40,16 +39,6 @@ const NOINDEX_PATHNAMES = new Set([ '/comfy-agent' ]) -const MODEL_REDIRECT_PATHNAMES = new Set( - models - .filter((model) => model.canonicalSlug !== undefined) - .flatMap((model) => - ALL_LOCALE_PREFIXES.map( - (prefix) => `${prefix}/p/supported-models/${model.slug}` - ) - ) -) - function normalizePathname(pathname: string): string { return pathname.replace(/\/$/, '') } @@ -125,7 +114,6 @@ export function isExcludedFromSitemap( return ( isNoindexPathname(pathname) || isLegacyWorkshopRoute(pathname) || - MODEL_REDIRECT_PATHNAMES.has(pathname) || (isWorkshopRoute(pathname) && !isIndexableModelPage(pathname, launched, workflowsLaunched)) ) diff --git a/apps/website/src/config/models.ts b/apps/website/src/config/models.ts index 13aaebfbdc9..319c4d156a1 100644 --- a/apps/website/src/config/models.ts +++ b/apps/website/src/config/models.ts @@ -81,7 +81,3 @@ for (const model of models) { ) } } - -export function getModelBySlug(slug: string): Model | undefined { - return models.find((m) => m.slug === slug) -} diff --git a/apps/website/src/config/routes.test.ts b/apps/website/src/config/routes.test.ts index db6f45aa216..61030d8fce3 100644 --- a/apps/website/src/config/routes.test.ts +++ b/apps/website/src/config/routes.test.ts @@ -17,9 +17,9 @@ describe('localizeHref', () => { { href: '/#features', locale: 'ja', expected: '/ja/#features' }, { href: '/about#team', locale: 'ja', expected: '/about#team' }, { - href: '/p/supported-models/grok-imagine', + href: '/hub/models/veo-3-text-to-video', locale: 'zh-CN', - expected: '/p/supported-models/grok-imagine' + expected: '/hub/models/veo-3-text-to-video' }, { href: '/terms-of-service#scope', @@ -113,12 +113,6 @@ describe('getRoutes', () => { }) }) -describe('getRoutes models', () => { - it('serves the models catalog at its canonical path for zh-CN', () => { - expect(getRoutes('zh-CN').models).toBe('/p/supported-models/') - }) -}) - describe('getRoutes minimaxLicenseProfessionalRequest', () => { it('serves the license request page at its canonical path for en', () => { expect(getRoutes('en').minimaxLicenseProfessionalRequest).toBe( diff --git a/apps/website/src/config/routes.ts b/apps/website/src/config/routes.ts index 248a519c99f..be4e8aeaf2b 100644 --- a/apps/website/src/config/routes.ts +++ b/apps/website/src/config/routes.ts @@ -30,7 +30,6 @@ const baseRoutes = { affiliates: '/affiliates/', affiliateTerms: '/affiliates/terms/', contact: '/contact/', - models: '/p/supported-models/', mcp: '/mcp/', agent: '/agent/', platform: '/platform/', @@ -80,9 +79,6 @@ type Routes = Readonly> // Customer Agreement template), same reasoning. See the comment header // in src/pages/enterprise-msa.astro. // -// models: the supported-models catalog only exists at /p/supported-models; -// there is no //p/supported-models page, so a prefixed link 404s. -// // minimaxLicenseProfessionalRequest: embeds an English-only HubSpot intake // form, so no localized variant exists. See the comment header in // src/pages/minimax/license/professional-request.astro. @@ -99,7 +95,6 @@ const LOCALE_INVARIANT_ROUTE_KEYS = new Set([ 'affiliateTerms', 'termsOfService', 'enterpriseMsa', - 'models', 'minimaxLicenseProfessionalRequest', 'workshop', 'hubWorkflows', diff --git a/apps/website/src/data/drops.ts b/apps/website/src/data/drops.ts index f44710051fa..948df757cba 100644 --- a/apps/website/src/data/drops.ts +++ b/apps/website/src/data/drops.ts @@ -259,7 +259,7 @@ export const drops: readonly Drop[] = [ }, cta: { label: EXPLORE, - href: { en: '/p/supported-models/', 'zh-CN': '/p/supported-models/' } + href: { en: '/hub/models/', 'zh-CN': '/hub/models/' } } }, { diff --git a/apps/website/src/data/mainNavigation.ts b/apps/website/src/data/mainNavigation.ts index be646c9c038..cd927f13766 100644 --- a/apps/website/src/data/mainNavigation.ts +++ b/apps/website/src/data/mainNavigation.ts @@ -139,10 +139,6 @@ export function getMainNavigation( label: t('nav.launches'), href: routes.launches }, - { - label: t('nav.supportedModels'), - href: routes.models - }, { label: t('nav.docs'), href: externalLinks.docs, diff --git a/apps/website/src/integrations/markdown-twins.ts b/apps/website/src/integrations/markdown-twins.ts index 17e60602385..9dc89ecaa1e 100644 --- a/apps/website/src/integrations/markdown-twins.ts +++ b/apps/website/src/integrations/markdown-twins.ts @@ -111,9 +111,9 @@ export async function writeMarkdownTwins( continue } if (await exists(target)) { - // A page endpoint (e.g. supported-models' [slug].md.ts) already wrote - // this twin. It is a real, current twin — section indexes and - // llms-full.txt must still include it, just not regenerate it here. + // A page endpoint already wrote this twin. It is a real, current twin: + // section indexes and llms-full.txt must still include it, just not + // regenerate it here. // Checked ahead of readBuiltPage: a page can ship a markdown twin with // no HTML counterpart at all, and that twin is still real content. report.existing.push(twinPath) diff --git a/apps/website/src/lib/hreflang.test.ts b/apps/website/src/lib/hreflang.test.ts index e61345360ca..c986837ce4c 100644 --- a/apps/website/src/lib/hreflang.test.ts +++ b/apps/website/src/lib/hreflang.test.ts @@ -96,8 +96,6 @@ describe('hreflangAlternates', () => { '/enterprise-msa/', '/terms-of-service/', '/zh-CN/terms-of-service/', - '/p/supported-models/', - '/p/supported-models/flux-1-dev/', '/comfy-agent/', '/404' ])('emits nothing for %s without indexable translations', (pathname) => { diff --git a/apps/website/src/lib/section-index.test.ts b/apps/website/src/lib/section-index.test.ts index 67f574a09eb..3040c0b41d7 100644 --- a/apps/website/src/lib/section-index.test.ts +++ b/apps/website/src/lib/section-index.test.ts @@ -100,29 +100,6 @@ describe('writeFullText', () => { expect(full).not.toContain('CLI 中文') expect(full).not.toContain('# 404') }) - - it('leaves the supported-models directory to its own catalog', async () => { - const root = await seed() - await mkdir(join(root, 'p', 'supported-models'), { recursive: true }) - await writeFile( - join(root, 'p', 'supported-models.md'), - twin('Supported Models', 'Directory.', '# Supported Models') - ) - await writeFile( - join(root, 'p', 'supported-models', 'flux.md'), - twin('Flux in ComfyUI', 'Model.', '# Flux in ComfyUI') - ) - - await writeFullText(root, [ - ...twins, - '/p/supported-models.md', - '/p/supported-models/flux.md' - ]) - - const full = await readFile(join(root, 'llms-full.txt'), 'utf8') - expect(full).not.toContain('Flux in ComfyUI') - expect(full).not.toContain('# Supported Models') - }) }) describe('twins with missing or malformed front matter', () => { diff --git a/apps/website/src/lib/section-index.ts b/apps/website/src/lib/section-index.ts index 7580e37ddb6..5b45e6559d6 100644 --- a/apps/website/src/lib/section-index.ts +++ b/apps/website/src/lib/section-index.ts @@ -128,13 +128,7 @@ export async function writeFullText( site = 'https://comfy.org' ): Promise { const english = twinPaths - .filter( - (path) => - !path.startsWith('/zh-CN/') && - path !== '/404.md' && - path !== '/p/supported-models.md' && - !path.startsWith('/p/supported-models/') - ) + .filter((path) => !path.startsWith('/zh-CN/') && path !== '/404.md') .sort((a, b) => a === '/index.md' ? -1 : b === '/index.md' ? 1 : a.localeCompare(b) ) @@ -144,7 +138,7 @@ export async function writeFullText( const header = [ '# Comfy: full site text', '', - `> Every English page on comfy.org as markdown, in one file, except the supported-models directory, which has its own catalog at https://comfy.org/p/supported-models/llms.txt. The curated index is ${SITE_INDEX_URL}; each page below starts with its canonical URL.`, + `> Every English page on comfy.org as markdown, in one file. The curated index is ${SITE_INDEX_URL}; each page below starts with its canonical URL.`, '' ].join('\n') const parts = twins.map((twin) => { diff --git a/apps/website/src/locales/en/main.json b/apps/website/src/locales/en/main.json index 49c3c8421d7..b98de341722 100644 --- a/apps/website/src/locales/en/main.json +++ b/apps/website/src/locales/en/main.json @@ -2373,7 +2373,6 @@ "badgeBeta": "BETA", "badgeComingSoon": "COMING SOON", "mcpServer": "Comfy MCP", - "supportedModels": "Supported Models", "colFeatures": "Features", "colPrograms": "Programs", "colConnect": "Connect", @@ -3346,79 +3345,6 @@ "next": "Next" }, "models": { - "hero": { - "eyebrow": "AI Model", - "primaryCta": "TRY IN COMFY", - "secondaryCta": "DOWNLOAD MODEL", - "cloudCta": "RUN ON CLOUD", - "tutorialCta": "VIEW TUTORIAL", - "blogLink": "Read blog post", - "workflowCount": "{count} workflows use this model" - }, - "whatIs": { - "heading": "What is {name}?", - "tutorialLink": "Read the full tutorial →" - }, - "llms": { - "button": "LLMs", - "copy": "Copy page as Markdown", - "view": "View as Markdown", - "catalog": "llms.txt — model catalog", - "openClaude": "Open in Claude", - "openChatgpt": "Open in ChatGPT" - }, - "faq": { - "heading": "Frequently Asked Questions", - "whatIs": { - "question": "What is {name}?", - "localAnswer": "{name} is {description}. You can run it locally in ComfyUI with full control over every parameter, or access it through Comfy Cloud. ComfyUI's node-based workflow editor lets you connect {name} with ControlNets, LoRAs, upscalers, and custom nodes to build any pipeline you need. There are {count} community workflow templates using {name} on Comfy Workflows, ready to load and customize.", - "cloudAnswer": "{name} is {description}. You can access it through Comfy Cloud. ComfyUI's node-based workflow editor lets you connect {name} with ControlNets, LoRAs, upscalers, and custom nodes to build any pipeline you need. There are {count} community workflow templates using {name} on Comfy Workflows, ready to load and customize." - }, - "howToUse": { - "question": "How do I use {name} in ComfyUI?", - "withDocs": "Follow the step-by-step tutorial at {url}. You can also load {templates} directly in ComfyUI.", - "withoutDocs": "Open ComfyUI and browse {templates}. Load one as a starting point, then customize the nodes and parameters to fit your use case." - }, - "templates": { - "singular": "the community workflow template that uses {name}", - "plural": "any of the {count} community workflow templates that use {name}" - }, - "workflowCount": { - "question": "How many ComfyUI workflows use {name}?", - "singular": "There is {count} community workflow template that uses {name} on Comfy Workflows. It is ready to run in ComfyUI and can be customized to suit your project.", - "plural": "There are {count} community workflow templates that use {name} on Comfy Workflows. Each template is ready to run in ComfyUI and can be customized to suit your project." - }, - "isFree": { - "question": "Is {name} free to use in ComfyUI?", - "localAnswer": "ComfyUI is free and open source. {name} weights are available to download from Hugging Face. You only pay for compute when running on Comfy Cloud; local inference on your own hardware is always free.", - "cloudAnswer": "This model runs exclusively on Comfy Cloud. Pay-per-compute pricing applies - see comfy.org/pricing" - } - }, - "dirDescription": { - "diffusion_models": "a diffusion model that generates images or video from text and image prompts", - "checkpoints": "an all-in-one checkpoint model that bundles a diffusion model, text encoder, and VAE", - "loras": "a LoRA (Low-Rank Adaptation) that fine-tunes an existing model for a specific style or subject", - "controlnet": "a ControlNet that steers image generation using structural guides like depth maps, edges, or poses", - "clip_vision": "a CLIP Vision encoder that converts images into embeddings for conditioning or style transfer", - "vae": "a VAE (Variational Autoencoder) that encodes and decodes latent representations", - "text_encoders": "a text encoder that converts prompts into embeddings used to guide generation", - "audio_encoders": "an audio encoder that converts audio into embeddings for audio-conditioned generation", - "geometry_estimation": "a geometry estimation model that predicts depth, surface normals, or 3D structure from images", - "background_removal": "a background removal model that separates subjects from their backgrounds with a clean matte", - "detection": "a detection model that locates objects, faces, or regions in an image for downstream nodes", - "frame_interpolation": "a frame interpolation model that generates in-between frames for smoother, higher-FPS video", - "optical_flow": "an optical flow model that estimates per-pixel motion between frames for video processing", - "upscale_models": "an upscale model that increases image resolution while preserving or enhancing detail", - "latent_upscale_models": "a latent upscale model that refines latents at higher resolution before decoding", - "style_models": "a style model that transfers artistic style onto generated images", - "model_patches": "a model patch that modifies or extends the behavior of an existing base model", - "partner_nodes": "a cloud API model accessible through ComfyUI partner nodes without local hardware requirements", - "default": "an AI model" - }, - "index": { - "title": "Supported Models", - "subtitle": "Run the world's leading AI models in ComfyUI" - }, "breadcrumb": { "models": "Supported Models" }, diff --git a/apps/website/src/locales/zh-CN/main.json b/apps/website/src/locales/zh-CN/main.json index 75f6fae12b1..03a3f07ab2d 100644 --- a/apps/website/src/locales/zh-CN/main.json +++ b/apps/website/src/locales/zh-CN/main.json @@ -2750,67 +2750,6 @@ "breadcrumb": { "models": "支持的模型" }, - "dirDescription": { - "audio_encoders": "一个将音频转换为嵌入向量、用于音频条件生成的音频编码器", - "background_removal": "一个将主体从背景中干净分离出来的背景移除模型", - "checkpoints": "一个集扩散模型、文本编码器和 VAE 于一体的全能 checkpoint 模型", - "clip_vision": "一个将图像转换为嵌入向量、用于条件控制或风格迁移的 CLIP Vision 编码器", - "controlnet": "一个通过深度图、边缘或姿态等结构化引导来控制图像生成的 ControlNet", - "default": "一个 AI 模型", - "detection": "一个在图像中定位物体、人脸或区域并供下游节点使用的检测模型", - "diffusion_models": "一个根据文本和图像提示生成图像或视频的扩散模型", - "frame_interpolation": "一个生成中间帧以获得更流畅、更高帧率视频的插帧模型", - "geometry_estimation": "一个从图像预测深度、表面法线或三维结构的几何估计模型", - "latent_upscale_models": "一个在解码前以更高分辨率优化潜在特征的潜空间放大模型", - "loras": "一个用于针对特定风格或主题微调现有模型的 LoRA(低秩适应)", - "model_patches": "一个修改或扩展现有基础模型行为的模型补丁", - "optical_flow": "一个估计帧间逐像素运动、用于视频处理的光流模型", - "partner_nodes": "一个无需本地硬件、可通过 ComfyUI 合作伙伴节点访问的云端 API 模型", - "style_models": "一个将艺术风格迁移到生成图像上的风格模型", - "text_encoders": "一个将提示词转换为嵌入向量、用于指导生成的文本编码器", - "upscale_models": "一个在提升图像分辨率的同时保留或增强细节的放大模型", - "vae": "一个用于编码和解码潜在表示的 VAE(变分自编码器)" - }, - "faq": { - "heading": "常见问题", - "howToUse": { - "question": "如何在 ComfyUI 中使用 {name}?", - "withDocs": "按照 {url} 上的分步教程操作。您也可以直接在 ComfyUI 中加载{templates}。", - "withoutDocs": "打开 ComfyUI,浏览{templates}。加载其中一个作为起点,然后自定义节点和参数以满足您的需求。" - }, - "isFree": { - "cloudAnswer": "此模型仅在 Comfy Cloud 上运行。按算力用量付费,详情请参阅 comfy.org/pricing。", - "localAnswer": "ComfyUI 是免费且开源的。{name} 的权重文件可从 Hugging Face 下载。仅在 Comfy Cloud 上运行时才需要为算力付费;在您自己的硬件上进行本地推理始终是免费的。", - "question": "在 ComfyUI 中使用 {name} 是免费的吗?" - }, - "templates": { - "plural": "{count} 个使用 {name} 的社区工作流模板", - "singular": "使用 {name} 的社区工作流模板" - }, - "whatIs": { - "cloudAnswer": "{name} 是{description}。您可以通过 Comfy Cloud 访问它。ComfyUI 基于节点的工作流编辑器可以让您将 {name} 与 ControlNet、LoRA、放大模型和自定义节点连接起来,构建您需要的任何工作流程。Comfy Workflows 上有 {count} 个使用 {name} 的社区工作流模板,可随时加载和自定义。", - "localAnswer": "{name} 是{description}。您可以在 ComfyUI 中本地运行它,完全掌控每一个参数,也可以通过 Comfy Cloud 访问它。ComfyUI 基于节点的工作流编辑器可以让您将 {name} 与 ControlNet、LoRA、放大模型和自定义节点连接起来,构建您需要的任何工作流程。Comfy Workflows 上有 {count} 个使用 {name} 的社区工作流模板,可随时加载和自定义。", - "question": "什么是 {name}?" - }, - "workflowCount": { - "plural": "Comfy Workflows 上有 {count} 个使用 {name} 的社区工作流模板。每个模板都可以在 ComfyUI 中直接运行,并可根据您的项目进行自定义。", - "question": "有多少个 ComfyUI 工作流使用 {name}?", - "singular": "Comfy Workflows 上有 {count} 个使用 {name} 的社区工作流模板。该模板可以在 ComfyUI 中直接运行,并可根据您的项目进行自定义。" - } - }, - "hero": { - "blogLink": "阅读博客文章", - "cloudCta": "云端运行", - "eyebrow": "AI 模型", - "primaryCta": "在 Comfy 中试用", - "secondaryCta": "下载模型", - "tutorialCta": "查看教程", - "workflowCount": "{count} 个工作流使用此模型" - }, - "index": { - "subtitle": "在 ComfyUI 中运行世界领先的 AI 模型", - "title": "支持的模型" - }, "list": { "card": { "workflows": "{count} 个工作流" @@ -2829,14 +2768,6 @@ "heroTitleBefore": "", "label": "模型" }, - "llms": { - "button": "LLMs", - "catalog": "llms.txt — 模型目录", - "copy": "复制本页 Markdown", - "openChatgpt": "在 ChatGPT 中打开", - "openClaude": "在 Claude 中打开", - "view": "查看 Markdown 版" - }, "showcase": { "card": { "grokImagine": "Grok Imagine", @@ -2850,10 +2781,6 @@ "label": "AI 模型", "subtitle": "新模型发布后会第一时间上线。" }, - "whatIs": { - "heading": "什么是 {name}?", - "tutorialLink": "阅读完整教程 →" - }, "hub": { "meta": { "title": "ComfyUI 模型:运行 AI 图像、视频和音频模型 - Comfy", @@ -2940,7 +2867,6 @@ "roleOwner": "所有者", "signIn": "登录", "signOut": "退出登录", - "supportedModels": "支持的模型", "switchWorkspace": "切换工作区", "toggleMenu": "切换菜单", "upgrade": "升级", diff --git a/apps/website/src/pages/zh-CN/models.astro b/apps/website/src/pages/zh-CN/models.astro index 36e272bea09..585db578e03 100644 --- a/apps/website/src/pages/zh-CN/models.astro +++ b/apps/website/src/pages/zh-CN/models.astro @@ -13,7 +13,7 @@ import ProductShowcaseSection from '@/components/home/ProductShowcaseSection.vue diff --git a/apps/website/src/templates/model-launch/ModelLaunchPage.astro b/apps/website/src/templates/model-launch/ModelLaunchPage.astro index 1ea8e182a5b..5aea179f771 100644 --- a/apps/website/src/templates/model-launch/ModelLaunchPage.astro +++ b/apps/website/src/templates/model-launch/ModelLaunchPage.astro @@ -35,7 +35,7 @@ const crumbs = [ { label: t('breadcrumb.home'), href: routes.home }, { label: t('models.breadcrumb.models'), - href: routes.models + href: routes.workshop }, { label: t(page.breadcrumbLabelKey) } ]