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.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
sync(cloud): align desktop cloud catalog + contract with the WaveSpeed backend
Davidad18180000b0
diff --git a/src/api/cloud/__tests__/cloud-client.test.ts b/src/api/cloud/__tests__/cloud-client.test.tsindex e0b7d1d5..12579b52 100644--- a/src/api/cloud/__tests__/cloud-client.test.ts+++ b/src/api/cloud/__tests__/cloud-client.test.ts@@ -85,14 +85,14 @@ describe('jobs wrappers', () => {fetchMock.mockResolvedValue(jsonRes({ id: 'j1', quota: { cost: 5, used: 10, limit: 800 } }, 202))const out = await submitCloudJob({kind: 'image',- model: 'sdxl-base-1.0',+ model: 'flux-schnell',prompt: 'a lighthouse',params: { op: 'generate' },})expect(out.id).toBe('j1')const [url, init] = fetchMock.mock.calls[0] as [string, RequestInit]expect(url).toBe(`${CLOUD_BASE}/api/jobs`)- expect(JSON.parse(String(init.body)).model).toBe('sdxl-base-1.0')+ expect(JSON.parse(String(init.body)).model).toBe('flux-schnell')})it('uploadInput sends multipart form-data with the role and returns the path', async () => {diff --git a/src/api/cloud/jobs.ts b/src/api/cloud/jobs.tsindex d0cd66fa..14074581 100644--- a/src/api/cloud/jobs.ts+++ b/src/api/cloud/jobs.ts@@ -20,6 +20,8 @@ export interface CloudJobParams {grow_mask_by?: numbersource_path?: stringmask_path?: string+ source_url?: string // video enhance: URL of the clip to upscale+ target_resolution?: string // upscale target (image 2k|4k|8k, video 720p|1080p|2k|4k)}export interface CloudJobSubmit {diff --git a/src/lib/render/cloud-jobs.ts b/src/lib/render/cloud-jobs.tsindex 7127b24a..d6c2b898 100644--- a/src/lib/render/cloud-jobs.ts+++ b/src/lib/render/cloud-jobs.ts@@ -1,11 +1,13 @@-// Desktop port: types + intent mapping only. The hosted render queue (fetch-// wrappers, upload/submit/poll/cancel) is a lu-labs.ai web feature and stays-// out of the desktop build — CreateContext stubs the cloud axis to null.+// Desktop port: shared render types + intent mapping. The HTTP client (upload/+// submit/poll/cancel against lu-labs.ai) lives in api/cloud/jobs.ts.import type { CreateIntent } from '../../stores/createStore'export type RenderKind = 'image' | 'video'-export type RenderOp = 'generate' | 'edit' | 'removebg' | 'animate'+// 'upscale'/'eraser' are WaveSpeed utility endpoints (super-resolution / masked+// object removal). Wired in the backend; the desktop Create UI surfaces them in+// a follow-up port.+export type RenderOp = 'generate' | 'edit' | 'removebg' | 'animate' | 'upscale' | 'eraser'export interface CloudQuota {tier: stringdiff --git a/src/lib/render/cloud-models.ts b/src/lib/render/cloud-models.tsindex a74e7292..cbf19df9 100644--- a/src/lib/render/cloud-models.ts+++ b/src/lib/render/cloud-models.ts@@ -1,9 +1,8 @@-// The hosted render fleet's model catalog (verbatim from uselu-// apps/web/lib/render/cloud-models.ts — keep in sync). Local backends list-// whatever the user installed; the cloud path renders on the operator's-// ComfyUI images, so the choice set is fixed and versioned here. `file` is-// the checkpoint name the worker's workflow templates load (%MODEL%); `id`-// is the stable slug the UI stores and the API accepts.+// The hosted render fleet's model catalog (keep in sync with uselu+// apps/web/lib/render/cloud-models.ts — the desktop cloud tier submits to the+// same lu-labs.ai backend, so these ids must match what it accepts). The cloud+// path renders on WaveSpeed's hosted endpoints; `file` is unused on the desktop+// (kept only for parity with the web catalog shape).import type { RenderKind } from './cloud-jobs'@@ -15,24 +14,14 @@ export interface CloudModel {}export const CLOUD_MODELS: CloudModel[] = [- {- id: 'qwen-image-2512',- label: 'Qwen Image 2512',- kind: 'image',- file: 'qwen_image_2512_fp8.safetensors',- },- {- id: 'sdxl-base-1.0',- label: 'SDXL 1.0',- kind: 'image',- file: 'sd_xl_base_1.0.safetensors',- },- {- id: 'wan-2.2-a14b',- label: 'Wan 2.2 A14B',- kind: 'video',- file: 'wan2.2_a14b_fp8.safetensors',- },+ { id: 'flux-schnell', label: 'Flux Schnell (fast)', kind: 'image', file: 'flux1-schnell-fp8.safetensors' },+ { id: 'flux-dev', label: 'Flux Dev (quality)', kind: 'image', file: 'flux1-dev-fp8.safetensors' },+ { id: 'flux-1.1-pro', label: 'Flux 1.1 Pro', kind: 'image', file: 'flux1.1-pro.safetensors' },+ { id: 'qwen-image', label: 'Qwen Image', kind: 'image', file: 'qwen_image_fp8.safetensors' },+ { id: 'seedream-v4', label: 'Seedream 4', kind: 'image', file: 'seedream_v4.safetensors' },+ { id: 'hidream', label: 'HiDream', kind: 'image', file: 'hidream_i1_dev.safetensors' },+ { id: 'wan-2.2-720p', label: 'Wan 2.2 720p', kind: 'video', file: 'wan2.2_a14b_fp8.safetensors' },+ { id: 'wan-2.2-fast', label: 'Wan 2.2 Fast', kind: 'video', file: 'wan2.2_5b_fp8.safetensors' },]export function cloudModelsFor(kind: RenderKind): CloudModel[] {