Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

feat(create): LU Cloud end image and reference images in Animate where the server offers them (B38, W6-API)

purple992ce1e94d03
diff --git a/src/api/__tests__/animate-takes-an-end-image-and-references.test.ts b/src/api/__tests__/animate-takes-an-end-image-and-references.test.ts
index 5d127585..17a0ca63 100644
--- a/src/api/__tests__/animate-takes-an-end-image-and-references.test.ts
+++ b/src/api/__tests__/animate-takes-an-end-image-and-references.test.ts
@@ -1,5 +1,5 @@
/**
- * B38 (Discord 29.10.2026 .molot, 30.10.2026 thirdorbital): Animate took one
+ * B38 (Discord 29.10. and 30.10.2026): Animate took one
* picture. Asked for: several references where the model takes them, and a
* start AND an end image (FL2V). Read off ComfyUI master b5a43215 and the
* Comfy-Org templates video_wan2_2_14B_flf2v, wan2.1_flf2v_720_f16,
diff --git a/src/api/__tests__/create-takes-reference-images.test.ts b/src/api/__tests__/create-takes-reference-images.test.ts
index f7d443a6..2bb18cf4 100644
--- a/src/api/__tests__/create-takes-reference-images.test.ts
+++ b/src/api/__tests__/create-takes-reference-images.test.ts
@@ -1,5 +1,5 @@
/**
- * B45 (Discord 30.10.2026, boromirofgeo): reference images in Create, text to
+ * B45 (Discord 30.10.2026): reference images in Create, text to
* image, not Edit, for style, pose and camera angle, above all with Krea 2.
* Each family reads them the way its official Comfy-Org template does
* (workflow_templates abb9cf64, ComfyUI master b5a43215):
diff --git a/src/components/create/experimental/FrameRefs.tsx b/src/components/create/experimental/FrameRefs.tsx
index 0802be69..1a4af316 100644
--- a/src/components/create/experimental/FrameRefs.tsx
+++ b/src/components/create/experimental/FrameRefs.tsx
@@ -12,7 +12,8 @@ import {
CREATE_REFERENCE_MODELS, LOCAL_END_FRAME_MODELS, createReferenceLine, createReferenceSupport,
laneVideoModel, localEndFrame, type CreateReferenceKind,
} from '../../../lib/frame-refs'
-import { studioPickFor, studioReadsEndImage } from '../../../lib/render/create-studio'
+import { cloudTakesEndImage, createRunModel } from '../../../lib/render/create-studio'
+import { animatePickerModels, useCloudCatalogStore } from '../../../stores/cloudCatalogStore'
import { laneImageModel } from '../../../lib/image-engines'
import { imageRefWords, withImageRef } from '../../../lib/image-ref-names'
import { loadImageRef } from './loadImage'
@@ -22,18 +23,29 @@ import { cn } from '../ui/cn'
const TILE = 'w-16 h-16 rounded-lg shrink-0'
/** The cloud line where the Studio model on Animate starts from one image. */
-// The Animate picker of LU Cloud lists the server catalogue's video models,
-// and the render worker hands an end image only to Studio models (Mac run,
-// 30.10.2026). So in the cloud this line is what Animate shows today.
+// A server from before W6 (30.10.2026) has no `end_image` in its catalogue
+// and dropped an end image without a word, so then no cloud model offers one.
export const CLOUD_END_FRAME_MODELS = 'The LU Cloud video models here start from one image. An end image works on your own ComfyUI with Wan 2.2 14B i2v, Wan 2.1 FLF2V and MiniMax H3.'
+/** The cloud line for a model without an end image: the Animate models that
+ * take one, by name, where the catalogue marks them. */
+export function cloudEndFrameHint(models: readonly { label: string; end_image?: boolean }[]): string {
+ const names = [...new Set(models.filter((m) => m.end_image === true).map((m) => m.label))]
+ if (names.length === 0) return CLOUD_END_FRAME_MODELS
+ return `This model starts from one image. These also end on your image: ${names.join(', ')}.`
+}
+
/** Does the Animate model on screen take an end image? */
export function useEndImageSupport(): { supported: boolean; hint: string } {
const backend = useCreateStore((s) => s.backend)
- const cloudModel = useCreateStore((s) => studioPickFor('animate', s))
+ // The model the Animate run really uses (classic or Studio), as the run
+ // resolves it. The server's catalogue says whether it takes an end image.
+ // Re-read when the catalogue arrives or changes.
+ useCloudCatalogStore((c) => c.models)
+ const cloudModel = useCreateStore((s) => createRunModel('animate', { image: s.cloudImageModel, video: s.cloudVideoModel, op: s.cloudOpModel }))
const localModel = useCreateStore((s) => laneVideoModel(s.videoModelList, s.videoModel, 'animate'))
if (backend === 'cloud') {
- return studioReadsEndImage(cloudModel) ? { supported: true, hint: '' } : { supported: false, hint: CLOUD_END_FRAME_MODELS }
+ return cloudTakesEndImage(cloudModel) ? { supported: true, hint: '' } : { supported: false, hint: cloudEndFrameHint(animatePickerModels()) }
}
// The Mac's own video engine takes one start image.
if (isMlxImageHost()) return { supported: false, hint: `The video engine of this Mac starts from one image. ${LOCAL_END_FRAME_MODELS}` }
diff --git a/src/components/create/experimental/__tests__/end-image-and-image-references-show-where-they-work.test.tsx b/src/components/create/experimental/__tests__/end-image-and-image-references-show-where-they-work.test.tsx
index 736be2db..7811fbec 100644
--- a/src/components/create/experimental/__tests__/end-image-and-image-references-show-where-they-work.test.tsx
+++ b/src/components/create/experimental/__tests__/end-image-and-image-references-show-where-they-work.test.tsx
@@ -10,15 +10,17 @@
import { describe, expect, it, beforeEach, vi } from 'vitest'
import { cleanup, render, screen } from '@testing-library/react'
-// The cloud catalog is not loaded in a unit test, so the Animate pick is the
-// stored one (the real resolution is studioPickFor's own tests).
+// The Animate pick is the stored one here (the real resolution, which needs
+// the whole catalogue, is createRunModel's own tests).
vi.mock('../../../../lib/render/create-studio', async (importOriginal) => {
const actual = await importOriginal<typeof import('../../../../lib/render/create-studio')>()
- return { ...actual, studioPickFor: (_: string, s: { cloudVideoModel: string }) => s.cloudVideoModel || undefined }
+ return { ...actual, createRunModel: (_: string, p: { video: string }) => p.video }
})
import { EndImageSlot, ImageReferenceStrip } from '../FrameRefs'
import { ReferenceStrip } from '../ReferenceStrip'
import { useCreateStore } from '../../../../stores/createStore'
+import { useCloudCatalogStore } from '../../../../stores/cloudCatalogStore'
+import { neuerServer } from '../../../../lib/render/__tests__/fixtures/test-catalogs'
const PIC = { filename: 'p.png', url: 'data:image/png;base64,p', width: 8, height: 8 }
const A14B = 'wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors'
@@ -57,16 +59,27 @@ describe('Animate: end image', () => {
expect(screen.getByTestId('end-image-slot').querySelector('[data-not-sent="true"]')).toBeTruthy()
expect(screen.getByTestId('end-image-line').textContent).toContain('not sent')
})
- // Wan 3.0 is a Studio model with last_image; a catalogue model such as
- // seedance-2.5-spicy (what the Animate picker lists) has none.
- it('LU Cloud: a Studio model with last_image takes one, a catalogue model does not', () => {
+ // W6-API (30.10.2026): the server's catalogue marks the models that take an
+ // end image. Without the field (a server from before W6) none is offered.
+ it('LU Cloud: a model the catalogue marks takes one, the others name those', () => {
+ useCloudCatalogStore.setState({ models: neuerServer().map((m) => (m.id === 'seedance-2.5-spicy' || m.id === 'wan-3.0' ? { ...m, end_image: true } : m)) })
animateWith(A14B, 'wan')
- useCreateStore.setState({ backend: 'cloud', cloudVideoModel: 'wan-3.0' })
+ useCreateStore.setState({ backend: 'cloud', cloudVideoModel: 'seedance-2.5-spicy' })
render(<EndImageSlot />)
expect(screen.getByTestId('end-image-add')).toBeTruthy()
cleanup()
- useCreateStore.setState({ cloudVideoModel: 'seedance-2.5-spicy' })
+ useCreateStore.setState({ cloudVideoModel: 'wan-2.2-fast' })
render(<EndImageSlot />)
+ const line = screen.getByTestId('end-image-unsupported').textContent ?? ''
+ expect(line).toContain('These also end on your image:')
+ expect(line).toContain('Seedance 2.5 Uncensored')
+ })
+ it('LU Cloud before W6: no model offers one, the line says where it works', () => {
+ useCloudCatalogStore.setState({ models: neuerServer() })
+ animateWith(A14B, 'wan')
+ useCreateStore.setState({ backend: 'cloud', cloudVideoModel: 'seedance-2.5-spicy' })
+ render(<EndImageSlot />)
+ expect(screen.queryByTestId('end-image-add')).toBeNull()
expect(screen.getByTestId('end-image-unsupported').textContent).toContain('The LU Cloud video models here start from one image.')
})
it('a removed start image takes the end image with it', () => {
diff --git a/src/hooks/__tests__/useCloudCreate-endbild.test.ts b/src/hooks/__tests__/useCloudCreate-endbild.test.ts
index eacbb436..8613de0f 100644
--- a/src/hooks/__tests__/useCloudCreate-endbild.test.ts
+++ b/src/hooks/__tests__/useCloudCreate-endbild.test.ts
@@ -1,5 +1,5 @@
/**
- * B38 (Discord 30.10.2026, thirdorbital): Animate in LU Cloud mit Start- UND
+ * B38 (Discord 30.10.2026): Animate in LU Cloud mit Start- UND
* Endbild. Die Studio-Modelle mit last_image im Anbieter-Schema (Wan 3.0,
* Seedance 2.5, LTX 2.5, MiniMax H3) bekommen das Endbild als
* last_image_path, eigener Upload. Ein Modell ohne dieses Feld bekommt es nie.
@@ -115,35 +115,81 @@ beforeEach(() => {
const ENDE = { filename: 'z.png', url: 'data:image/png;base64,ZZ', width: 512, height: 512 }
-describe('Animate mit Endbild', () => {
- it('Wan 3.0 bekommt Start- und Endbild, das Endbild als eigener Upload', async () => {
+// W6-API (30.10.2026): the catalogue marks the models that take an end image.
+const ENDBILD = new Set(['wan-2.2-720p', 'seedance-2.5-spicy', 'wan-3.0', 'seedance-2.5', 'minimax-h3', 'ltx-2.5-i2v'])
+const w6 = () => useCloudCatalogStore.setState({ models: neuerServer().map((m) => (ENDBILD.has(m.id) ? { ...m, end_image: true } : m)) })
+
+describe('Animate mit Endbild (W6-Server)', () => {
+ it('ein klassisches Modell mit end_image bekommt das Endbild als last_image_path', async () => {
+ w6()
+ const s = useCreateStore.getState()
+ s.setIntent('animate'); s.setCloudVideoModel('seedance-2.5-spicy')
+ useCreateStore.setState({ source: BILD, endImage: ENDE })
+ await useCloudCreate().generate()
+ expect(useCreateStore.getState().error).toBeNull()
+ expect(submitted[0].model).toBe('seedance-2.5-spicy')
+ expect(submitted[0].params.op).toBe('animate')
+ expect(submitted[0].params.source_path).toBe('user-1/staged-source-1.png')
+ expect(submitted[0].params.last_image_path).toBe('user-1/staged-source-2.png')
+ })
+
+ it('ein klassisches Modell ohne end_image bekommt keins (wan-2.2-fast)', async () => {
+ w6()
+ const s = useCreateStore.getState()
+ s.setIntent('animate'); s.setCloudVideoModel('wan-2.2-fast')
+ useCreateStore.setState({ source: BILD, endImage: ENDE })
+ await useCloudCreate().generate()
+ expect(submitted[0].params.last_image_path).toBeUndefined()
+ expect(hochgeladen).toHaveLength(1)
+ })
+
+ it('ein Server von vor W6 (kein Feld) bekommt nie ein Endbild, er wuerde es still verwerfen', async () => {
+ const s = useCreateStore.getState()
+ s.setIntent('animate'); s.setCloudVideoModel('seedance-2.5-spicy')
+ useCreateStore.setState({ source: BILD, endImage: ENDE })
+ await useCloudCreate().generate()
+ expect(submitted[0].params.last_image_path).toBeUndefined()
+ })
+
+ it('Studio: Wan 3.0 bekommt Start- und Endbild, die Preisbestaetigung kennt es', async () => {
+ w6()
const s = useCreateStore.getState()
s.setIntent('animate'); s.setCloudVideoModel('wan-3.0')
useCreateStore.setState({ source: BILD, endImage: ENDE })
await useCloudCreate().generate()
expect(useCreateStore.getState().error).toBeNull()
expect(submitted[0].model).toBe('wan-3.0')
+ expect(submitted[0].params.op).toBe('studio')
expect(submitted[0].params.source_path).toBe('user-1/staged-source-1.png')
expect(submitted[0].params.last_image_path).toBe('user-1/staged-source-2.png')
- expect(hochgeladen).toHaveLength(2)
- // Die bestaetigte Zahl kennt das Endbild auch.
expect((hoisted.quote.mock.calls[0][2] as { last_image_path?: string }).last_image_path).toBe('user-1/staged-source-2.png')
})
- it('ohne Endbild bleibt es beim Startbild (Rueckfall-Waechter)', async () => {
+ it('Studio ohne end_image im Katalog: kein Endbild', async () => {
const s = useCreateStore.getState()
s.setIntent('animate'); s.setCloudVideoModel('wan-3.0')
- useCreateStore.setState({ source: BILD, endImage: null })
+ useCreateStore.setState({ source: BILD, endImage: ENDE })
await useCloudCreate().generate()
expect(submitted[0].params.last_image_path).toBeUndefined()
- expect(hochgeladen).toHaveLength(1)
})
it('ein Referenzmodell ohne last_image bekommt kein Endbild', async () => {
+ w6()
const s = useCreateStore.getState()
s.setIntent('animate'); s.setCloudVideoModel('minimax-h3-ref')
useCreateStore.setState({ source: BILD, endImage: ENDE, references: [] })
await useCloudCreate().generate()
expect(submitted[0].params.last_image_path).toBeUndefined()
})
+
+ it('die Absage des Servers (end_image_unsupported) steht so, wie er sie schreibt', async () => {
+ w6()
+ const jobs = await import('../../api/cloud/jobs')
+ vi.mocked(jobs.submitCloudJob).mockRejectedValueOnce(new hoisted.FakeCloudJobError('wan-2.2-fast takes no end image. Models that end on your image: wan-2.2-720p.', 400, { code: 'end_image_unsupported' }))
+ const s = useCreateStore.getState()
+ s.setIntent('animate'); s.setCloudVideoModel('seedance-2.5-spicy')
+ useCreateStore.setState({ source: BILD, endImage: ENDE })
+ await useCloudCreate().generate()
+ expect(useCreateStore.getState().error).toContain('takes no end image. Models that end on your image: wan-2.2-720p.')
+ })
})
diff --git a/src/hooks/useCloudCreate.ts b/src/hooks/useCloudCreate.ts
index 492303c0..7c8ae65e 100644
--- a/src/hooks/useCloudCreate.ts
+++ b/src/hooks/useCloudCreate.ts
@@ -36,7 +36,7 @@ import { contentPolicySnapshot, loadContentPolicy } from './useContentPolicy'
import { effectiveContentPolicy } from '../lib/content-policy-cap'
import { signalCreditsExhausted } from '../lib/credits-exhausted'
import { resolveRunSeed } from '../lib/run-seed'
-import { intentRoles, intentRequiredInputs, isStudioModel, resolveIntentPick, studioExtraPhotoSlots } from '../lib/render/create-studio'
+import { intentRoles, intentRequiredInputs, isStudioModel, resolveIntentPick, studioExtraPhotoSlots, cloudTakesEndImage } from '../lib/render/create-studio'
import { bumpSeed, runImageCount } from '../lib/render/image-count'
import { STUDIO_MODELS, studioFields } from '../lib/render/studio-contract'
import { modelLabel } from '../lib/render/preset-models'
@@ -545,12 +545,19 @@ export function useCloudCreate(opts: { onQuotaChange?: () => void } = {}) {
}
if (!reads.includes('source_path')) delete params.source_path
// B38: an end image for a Studio model that reads one
- // (last_image_path). The Stage shows the slot only for those.
- if (intent === 'animate' && s.endImage && reads.includes('last_image_path')) {
+ // (last_image_path) and that the server's catalogue marks
+ // (W6-API `end_image`). The Stage shows the slot only for those.
+ if (intent === 'animate' && s.endImage && reads.includes('last_image_path') && cloudTakesEndImage(studioModel)) {
if (ac.signal.aborted) return
s.setProgress(7, 'Uploading the end image…')
params.last_image_path = await uploadInput(dataUrlToBlob(s.endImage.url), 'source', ...uploadEnds(ac))
}
+ } else if (op === 'animate' && s.endImage && cloudTakesEndImage(model)) {
+ // B38: a classic Animate model the catalogue marks (W6-API
+ // `end_image`): the end image rides along as last_image_path.
+ if (ac.signal.aborted) return
+ s.setProgress(7, 'Uploading the end image…')
+ params.last_image_path = await uploadInput(dataUrlToBlob(s.endImage.url), 'source', ...uploadEnds(ac))
}
}
if ((op === 'edit' && !editIsMaskless) || op === 'eraser') {
diff --git a/src/lib/render/__tests__/server-reference-cap.test.ts b/src/lib/render/__tests__/server-reference-cap.test.ts
new file mode 100644
index 00000000..db5c076f
--- /dev/null
+++ b/src/lib/render/__tests__/server-reference-cap.test.ts
@@ -0,0 +1,38 @@
+/**
+ * W6-API (30.10.2026): the catalogue names how many pictures the server takes
+ * for a Studio reference model (`reference_images`, the start image counted).
+ * The reference strip never offers more than that, and without the field it
+ * stays at the provider schema, as before.
+ *
+ * Run: npx vitest run src/lib/render/__tests__/server-reference-cap.test.ts
+ */
+import { describe, expect, it } from 'vitest'
+import { useCloudCatalogStore } from '../../../stores/cloudCatalogStore'
+import { neuerServer } from './fixtures/test-catalogs'
+import { cloudReferenceCap, cloudTakesEndImage, studioExtraPhotoSlots } from '../create-studio'
+
+const withField = (id: string, extra: Record<string, unknown>) =>
+ useCloudCatalogStore.setState({ models: neuerServer().map((m) => (m.id === id ? { ...m, ...extra } : m)) })
+
+describe('the server names the cap', () => {
+ it('three pictures in all leave two further slots', () => {
+ withField('wan-3.0-ref', { reference_images: 3 })
+ expect(cloudReferenceCap('wan-3.0-ref')).toBe(3)
+ expect(studioExtraPhotoSlots('wan-3.0-ref')).toBe(2)
+ })
+ it('a larger server cap never lifts the app limit of five photos', () => {
+ withField('wan-3.0-ref', { reference_images: 10 })
+ expect(studioExtraPhotoSlots('wan-3.0-ref')).toBe(4)
+ })
+ it('without the field the strip is as before', () => {
+ useCloudCatalogStore.setState({ models: neuerServer() })
+ expect(cloudReferenceCap('wan-3.0-ref')).toBe(0)
+ expect(studioExtraPhotoSlots('wan-3.0-ref')).toBe(4)
+ })
+ it('end_image is read from the catalogue only', () => {
+ useCloudCatalogStore.setState({ models: neuerServer() })
+ expect(cloudTakesEndImage('wan-3.0')).toBe(false)
+ withField('wan-3.0', { end_image: true })
+ expect(cloudTakesEndImage('wan-3.0')).toBe(true)
+ })
+})
diff --git a/src/lib/render/cloud-models.ts b/src/lib/render/cloud-models.ts
index 75a7b460..b9d7d476 100644
--- a/src/lib/render/cloud-models.ts
+++ b/src/lib/render/cloud-models.ts
@@ -63,6 +63,15 @@ export interface CloudModel {
/** Video: renders image-to-video (the "Animate Image" intent). Absent = yes;
* set false on a t2v-only model to keep it out of the Animate picker. */
i2v?: boolean
+ /** Animate (B38, W6-API 30.10.2026): the model reads an end image
+ * (`params.last_image_path`). Absent on a server from before W6, which
+ * took an end image and dropped it, so the app offers none there. */
+ end_image?: boolean
+ /** W6-API: the model reads a picture list (`params.image_paths`), at most
+ * this many, the start image counted. Studio reference models only. */
+ reference_images?: number
+ /** W6-API: a Studio model that belongs in the Animate picker. */
+ animate?: boolean
/** C2: the provider ships this endpoint with its own filter off, so it
* produces adult output when the account's content policy allows it (the
* server decides that). Drives the
diff --git a/src/lib/render/create-studio.ts b/src/lib/render/create-studio.ts
index 44e47578..a1427cdf 100644
--- a/src/lib/render/create-studio.ts
+++ b/src/lib/render/create-studio.ts
@@ -12,7 +12,7 @@
import { STUDIO_MODELS, studioBaseCredits, studioFields, studioPreviewCredits, studioSchema } from './studio-contract'
import { presetModels, requiredRoleInputs, type PresetModel, type StepRole } from './preset-models'
-import { defaultCloudModel, modelForOp, opPickerModels, resolveCharacterModel, resolveOpPick } from '../../stores/cloudCatalogStore'
+import { cloudModelById, defaultCloudModel, modelForOp, opPickerModels, resolveCharacterModel, resolveOpPick } from '../../stores/cloudCatalogStore'
import { intentToJob, type CreateIntentLike } from './cloud-jobs'
// Desktop port (P2, checked again in P9): the web's CreateIntent already
@@ -184,6 +184,20 @@ export function studioPhotoCap(model: string): number {
return Math.min(studioSchema(model).properties?.[field]?.maxItems ?? 1, MAX_STUDIO_PHOTOS)
}
+/** B38 (W6-API 30.10.2026): nimmt der Server fuer dieses Animate-Modell ein
+ * Endbild an? Nur das Katalogfeld `end_image` zaehlt. Ein Server von vor W6
+ * nahm ein Endbild an und verwarf es still, darum ohne Feld kein Endbild. */
+export function cloudTakesEndImage(model: string | null | undefined): boolean {
+ return !!model && cloudModelById(model)?.end_image === true
+}
+
+/** W6-API: wie viele Bilder (das Startbild eingerechnet) der Server fuer
+ * dieses Modell als Bilderliste annimmt. 0 ohne Katalogfeld. */
+export function cloudReferenceCap(model: string | null | undefined): number {
+ const n = model ? cloudModelById(model)?.reference_images : undefined
+ return typeof n === 'number' && n > 0 ? Math.floor(n) : 0
+}
+
/** Liest dieses Studio-Modell ein Endbild (last_image_path)? Animate bietet
* dann neben dem Startbild ein zweites Feld an (B38, Discord 30.10.2026). */
export function studioReadsEndImage(model: string | null | undefined): boolean {
@@ -194,7 +208,10 @@ export function studioReadsEndImage(model: string | null | undefined): boolean {
/** Wie viele WEITERE Fotos neben dem Standbild die Referenzleiste fuer dieses
* Modell anbietet. */
export function studioExtraPhotoSlots(model: string): number {
- return Math.max(0, studioPhotoCap(model) - 1)
+ // W6-API: where the catalogue names how many pictures the server takes,
+ // never more than that.
+ const server = cloudReferenceCap(model)
+ return Math.max(0, (server ? Math.min(studioPhotoCap(model), server) : studioPhotoCap(model)) - 1)
}
/** Das Studio-Modell, das Bearbeiten oder Animate gerade fahren wuerde, wenn es