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
feat(catalog): the cloud catalogue is generated from one web commit
purpleb8ebef419661
diff --git a/scripts/studio-snapshot.mjs b/scripts/studio-snapshot.mjsindex bcc03035..dd0311ca 100644--- a/scripts/studio-snapshot.mjs+++ b/scripts/studio-snapshot.mjs@@ -1,6 +1,13 @@-// The catalogue snapshot of the Create tab, taken over from the web checkout.+// The catalogue snapshot of the Create tab, taken over from the web.//-// Three files under src/lib/render hold it: the studio models, the field+// The desktop carries the cloud media catalogue of the web as generated files+// under src/lib/render. Nobody edits them by hand: this script writes them from+// one web commit, and web-catalog-source.json next to them records which+// commit that was and the sha256 of every file it wrote. A test without the+// web (web-catalog-source.test.ts) fails as soon as a file no longer has the+// hash the script gave it.+//+// Three of the files hold the catalogue proper: the studio models, the field// schema of every model, and which schema a classic model reads per variant.// The web keeps them in the words of the service that renders: each model// carries the path it runs on there, and the schemas are filed under those@@ -20,16 +27,29 @@// the name of a file store. The web makes the same two cuts for its own// pages. Fields, types, limits, choices and defaults are not touched.// 3. A `label` carries the app's word for the open models where the web-// carries its own (src/lib/unfiltered-mark.ts on both sides).+// carries its own name word (src/lib/unfiltered-mark.ts on both sides).+//+// Three more files come over as they are: the lengths a clip can be booked+// at, the models taken out of the pickers, and the role lists of the studio+// models (that one with the single import line the desktop needs).//// What the service is paid per run stays in the files as it is.//-// LU_WEB_REPO=<web checkout> node scripts/studio-snapshot.mjs write-// LU_WEB_REPO=<web checkout> node scripts/studio-snapshot.mjs --check compare+// LU_WEB_REPO=<web repo> node scripts/studio-snapshot.mjs --ref <commit> write+// LU_WEB_REPO=<web repo> node scripts/studio-snapshot.mjs --ref <commit> --check compare+//+// With --ref the files are read from that commit with `git show`, so the web+// checkout stays on whatever branch it is on. Without --ref the working tree+// of LU_WEB_REPO is read, and the source records whether it had changes in+// these files. Pass the commit that is live (or the one the release ships+// with), never a branch somebody is still working on.//-// src/lib/render/__tests__/studio-contract.test.ts runs the same transform and-// fails when a file on disk is not what this script writes.-import { readFileSync, writeFileSync } from 'node:fs'+// src/lib/render/__tests__/studio-contract.test.ts runs the same transform+// against LU_WEB_REPO and fails when a file on disk is not what this script+// writes.+import { execFileSync } from 'node:child_process'+import { createHash } from 'node:crypto'+import { existsSync, readFileSync, writeFileSync } from 'node:fs'import { dirname, resolve } from 'node:path'import { fileURLToPath } from 'node:url'import { RULES, findHits } from './check-silent.mjs'@@ -39,8 +59,25 @@ const DESKTOP_DIR = 'src/lib/render'const WEB_DIR = 'apps/web/lib/render'const MARK_FILE = 'lib/unfiltered-mark.ts'+/** The files that carry paths of the service and get rewritten line by line. */export const SNAPSHOT_FILES = ['studio-models.json', 'provider-schemas.json', 'provider-endpoints.json']+/** The files that come over as the web has them, up to the import line in+ * COPY_LINES. */+export const COPIED_FILES = ['video-durations.json', 'retired-models.ts', 'studio-roles.ts']++/** Every file this script writes, in the order the source lists them. */+export const GENERATED_FILES = [...SNAPSHOT_FILES, ...COPIED_FILES]++/** Where the source of the generated files is recorded. */+export const SOURCE_FILE = 'web-catalog-source.json'++/** The one line a copied file changes: the web reads the studio rules from its+ * browser catalogue, the desktop from its own contract file. */+const COPY_LINES = {+ 'studio-roles.ts': ["from './studio-catalog'", "from './studio-contract'"],+}+/** What stands in front of a path instead of the name of the service. */export const HOUSE = 'base'@@ -81,8 +118,17 @@ export function desktopLabels(text, webWord, desktopWord) {return text.split('\n').map((line) => (/^\s*"label": /.test(line) ? line.split(webWord).join(desktopWord) : line)).join('\n')}-/** Throws unless the three texts are a snapshot the app can read: every model- * and every variant finds its schema, no two paths fell onto one key, and no+/** A copied file as the desktop carries it.+ * @param {string} name @param {string} text @returns {string} */+export function copiedText(name, text) {+ const swap = COPY_LINES[name]+ if (!swap) return text+ if (text.split(swap[0]).length !== 2) throw new Error(`studio-snapshot: ${name} of the web does not import ${swap[0]} exactly once`)+ return text.replace(swap[0], swap[1])+}++/** Throws unless the texts are a snapshot the app can read: every model and+ * every variant finds its schema, no two paths fell onto one key, and no* line names the service. The last one fails when a new hint does; then* HINT_CUTS has to learn it.* @param {Record<string, string>} texts @param {number} [sourceKeys] */@@ -101,54 +147,115 @@ export function checkSnapshot(texts, sourceKeys) {if (!schemas[path]) throw new Error(`studio-snapshot: no schema for ${id} ${variant}`)}}- const named = SNAPSHOT_FILES.flatMap((name) => findHits(texts[name], `${DESKTOP_DIR}/${name}`).filter((hit) => hit.rule === 'vendor'))+ const named = Object.keys(texts).flatMap((name) => findHits(texts[name], `${DESKTOP_DIR}/${name}`).filter((hit) => hit.rule === 'vendor'))if (named.length > 0) {throw new Error(`studio-snapshot: the snapshot would still name the service: ${named.slice(0, 5).map((hit) => `${hit.file}:${hit.line}`).join(', ')}`)}}-function markWord(file) {- const found = /export const STATEMENT_MARK_LABEL =\s*\n?\s*(['"])(.*)\1/.exec(readFileSync(file, 'utf8'))- if (!found || !found[2]) throw new Error(`studio-snapshot: no word for the open models in ${file}`)- return found[2]+/** The word a side builds its open model names with. The web has a name word+ * of its own since 12.10.2026 (`STATEMENT_NAME_WORD`), next to the word of+ * its mark; the desktop names and marks with the one word.+ * @param {string} source @param {string} where @returns {string} */+export function markWord(source, where) {+ for (const name of ['STATEMENT_NAME_WORD', 'STATEMENT_MARK_LABEL']) {+ const found = new RegExp(`export const ${name} =\\s*\\n?\\s*(['"])(.*)\\1`).exec(source)+ if (found && found[2]) return found[2]+ }+ throw new Error(`studio-snapshot: no word for the open models in ${where}`)+}++/** Reads files of the web, from a commit or from the working tree.+ * @param {string} webRepo @param {string} [ref] */+export function webReader(webRepo, ref) {+ const git = (...args) => execFileSync('git', ['-C', webRepo, ...args], { encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 })+ if (ref) {+ const commit = git('rev-parse', '--verify', `${ref}^{commit}`).trim()+ return {+ read: (path) => git('show', `${commit}:${path}`),+ origin: () => ({ commit, committed: git('show', '-s', '--format=%cI', commit).trim(), dirty: false }),+ }+ }+ return {+ read: (path) => readFileSync(resolve(webRepo, path), 'utf8'),+ origin: (paths) => {+ if (!existsSync(resolve(webRepo, '.git'))) return { commit: null, committed: null, dirty: true }+ const commit = git('rev-parse', 'HEAD').trim()+ return {+ commit,+ committed: git('show', '-s', '--format=%cI', commit).trim(),+ dirty: git('status', '--porcelain', '--', ...paths).trim() !== '',+ }+ },+ }}-/** The three files as the app carries them, built from a web checkout.- * @param {string} webRepo @param {string} [desktopRoot] @returns {Record<string, string>} */-export function snapshotFromWeb(webRepo, desktopRoot = DESKTOP_ROOT) {- const webWord = markWord(resolve(webRepo, 'apps/web', MARK_FILE))- const desktopWord = markWord(resolve(desktopRoot, 'src', MARK_FILE))+/** Every file as the app carries it, built from the web.+ * @param {string} webRepo @param {string} [desktopRoot] @param {string} [ref]+ * @returns {Record<string, string>} */+export function snapshotFromWeb(webRepo, desktopRoot = DESKTOP_ROOT, ref) {+ const web = webReader(webRepo, ref)+ const webWord = markWord(web.read(`apps/web/${MARK_FILE}`), 'the web')+ const desktopWord = markWord(readFileSync(resolve(desktopRoot, 'src', MARK_FILE), 'utf8'), 'the desktop')/** @type {Record<string, string>} */const texts = {}let sourceKeysfor (const name of SNAPSHOT_FILES) {- const web = readFileSync(resolve(webRepo, WEB_DIR, name), 'utf8')- if (web.split('\n').some((line) => PATH_LINES[name].exec(line)?.[2] === HOUSE)) {+ const text = web.read(`${WEB_DIR}/${name}`)+ if (text.split('\n').some((line) => PATH_LINES[name].exec(line)?.[2] === HOUSE)) {throw new Error(`studio-snapshot: ${name} of the web already has a path under "${HOUSE}/", the step would not be reversible`)}- if (name === 'provider-schemas.json') sourceKeys = Object.keys(JSON.parse(web)).length- const neutral = neutralText(name, web)+ if (name === 'provider-schemas.json') sourceKeys = Object.keys(JSON.parse(text)).length+ const neutral = neutralText(name, text)texts[name] = name === 'studio-models.json' ? desktopLabels(neutral, webWord, desktopWord) : neutral}+ for (const name of COPIED_FILES) texts[name] = copiedText(name, web.read(`${WEB_DIR}/${name}`))checkSnapshot(texts, sourceKeys)return texts}+/** sha256 of a generated file, hex. @param {string} text */+export const hashText = (text) => createHash('sha256').update(text, 'utf8').digest('hex')++/** The record of where the generated files came from.+ * @param {Record<string, string>} texts @param {{ commit: string | null, committed: string | null, dirty: boolean }} origin+ * @param {string | undefined} ref @returns {string} */+export function sourceText(texts, origin, ref) {+ const record = {+ generator: 'scripts/studio-snapshot.mjs',+ note: 'Generated files. Do not edit them by hand: run the generator against the web commit this release ships with.',+ web: { ref: ref ?? null, ...origin },+ files: Object.fromEntries(GENERATED_FILES.map((name) => [name, hashText(texts[name])])),+ }+ return `${JSON.stringify(record, null, 2)}\n`+}+if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {- const webRepo = process.env.LU_WEB_REPO?.trim() || process.argv.slice(2).find((arg) => !arg.startsWith('--'))+ const args = process.argv.slice(2)+ const refAt = args.indexOf('--ref')+ const ref = refAt >= 0 ? args[refAt + 1] : undefined+ if (refAt >= 0 && !ref) {+ process.stderr.write('studio-snapshot: --ref needs a commit.\n')+ process.exit(2)+ }+ const webRepo = process.env.LU_WEB_REPO?.trim() || args.find((arg, i) => !arg.startsWith('--') && i !== refAt + 1)if (!webRepo) {- process.stderr.write('studio-snapshot: set LU_WEB_REPO to the web checkout, or pass its path.\n')+ process.stderr.write('studio-snapshot: set LU_WEB_REPO to the web repository, or pass its path.\n')process.exit(2)}- const check = process.argv.includes('--check')- const texts = snapshotFromWeb(resolve(webRepo))+ const check = args.includes('--check')+ const repo = resolve(webRepo)+ const texts = snapshotFromWeb(repo, DESKTOP_ROOT, ref)+ const origin = webReader(repo, ref).origin([...GENERATED_FILES.map((name) => `${WEB_DIR}/${name}`), `apps/web/${MARK_FILE}`])+ texts[SOURCE_FILE] = sourceText(texts, origin, ref)let differ = 0- for (const name of SNAPSHOT_FILES) {+ for (const name of [...GENERATED_FILES, SOURCE_FILE]) {const file = resolve(DESKTOP_ROOT, DESKTOP_DIR, name)- const same = readFileSync(file, 'utf8') === texts[name]+ const same = existsSync(file) && readFileSync(file, 'utf8') === texts[name]if (!same) differ++if (!same && !check) writeFileSync(file, texts[name])process.stdout.write(`studio-snapshot: ${name} ${same ? 'is up to date' : check ? 'DIFFERS' : 'written'}\n`)}+ process.stdout.write(`studio-snapshot: web ${origin.commit ?? '(no commit)'}${origin.dirty ? ' with local changes' : ''}\n`)process.exit(check && differ ? 1 : 0)}diff --git a/src/lib/render/__tests__/web-catalog-source.test.ts b/src/lib/render/__tests__/web-catalog-source.test.tsnew file mode 100644index 00000000..e55cc292--- /dev/null+++ b/src/lib/render/__tests__/web-catalog-source.test.ts@@ -0,0 +1,56 @@+/**+ * The cloud media catalogue of the desktop is a generated copy of the web's+ * (scripts/studio-snapshot.mjs). This guard runs without the web: it holds+ * every generated file against the sha256 the generator recorded in+ * web-catalog-source.json, together with the web commit it read.+ *+ * A file edited by hand, or a merge that brings in a change to a generated+ * file without running the generator, turns this red. The fix is never to+ * edit the hash: run the generator against the web commit the release ships+ * with (the command stands at the top of the script) and commit what it+ * writes.+ *+ * Whether that commit is still the live one is what the opt-in guards with+ * LU_WEB_REPO answer (studio-contract, katalog-paritaet-web, video-duration),+ * and `node scripts/studio-snapshot.mjs --ref <commit> --check` in the+ * release checklist.+ */+import { describe, expect, it } from 'vitest'+import { readFileSync } from 'node:fs'+import { resolve } from 'node:path'+import { GENERATED_FILES, SOURCE_FILE, checkSnapshot, hashText } from '../../../../scripts/studio-snapshot.mjs'++const DIR = 'src/lib/render'+const read = (name: string) => readFileSync(resolve(DIR, name), 'utf8')++interface Source {+ generator: string+ web: { ref: string | null; commit: string | null; committed: string | null; dirty: boolean }+ files: Record<string, string>+}++const source = JSON.parse(read(SOURCE_FILE)) as Source++describe('the catalogue copy is what the generator wrote', () => {+ it('names one web commit, read clean', () => {+ expect(source.generator).toBe('scripts/studio-snapshot.mjs')+ expect(source.web.commit).toMatch(/^[0-9a-f]{40}$/)+ expect(Number.isNaN(Date.parse(source.web.committed ?? ''))).toBe(false)+ // A working tree with local changes in these files is no source a+ // release can name.+ expect(source.web.dirty).toBe(false)+ })++ it('lists exactly the generated files', () => {+ expect(Object.keys(source.files)).toEqual(GENERATED_FILES)+ })++ it.each(GENERATED_FILES)('%s has the hash the generator recorded', (name) => {+ expect(hashText(read(name)), `${name} differs from what the generator wrote. Run scripts/studio-snapshot.mjs instead of editing it.`)+ .toBe(source.files[name])+ })++ it('the files on disk are a snapshot the app can read', () => {+ expect(() => checkSnapshot(Object.fromEntries(GENERATED_FILES.map((name) => [name, read(name)])))).not.toThrow()+ })+})diff --git a/src/lib/render/provider-endpoints.json b/src/lib/render/provider-endpoints.jsonindex dadb7c11..dc0a8a7d 100644--- a/src/lib/render/provider-endpoints.json+++ b/src/lib/render/provider-endpoints.json@@ -148,6 +148,9 @@"seedance-2.0-fast-spicy": {"i2": "bytedance/seedance-2.0-fast/image-to-video-spicy"},+ "seedance-2.0-mini-spicy": {+ "i2": "bytedance/seedance-2.0-mini/image-to-video-spicy"+ },"vidu-q3-spicy": {"i2": "vidu/q3/image-to-video-spicy"},diff --git a/src/lib/render/provider-schemas.json b/src/lib/render/provider-schemas.jsonindex 26116106..09993888 100644--- a/src/lib/render/provider-schemas.json+++ b/src/lib/render/provider-schemas.json@@ -9428,5 +9428,1818 @@"generate_audio","seed"]+ },+ "base/flux-3-klein-image-distilled/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "1:1",+ "description": "The aspect ratio of the generated image.",+ "enum": [+ "1:1",+ "1:2",+ "2:1",+ "1:3",+ "3:1",+ "2:3",+ "3:2",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "9:21",+ "21:9"+ ],+ "type": "string"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "output_format": {+ "default": "jpeg",+ "description": "The format of the output image.",+ "enum": [+ "jpeg",+ "png",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The positive prompt for the generation. A full scene caption (framing, subject, background, lighting) works best.",+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "Total output resolution tier: 1k (~1 megapixel), 1.5k (~2.4 megapixels) or 2k (~4 megapixels).",+ "enum": [+ "1k",+ "1.5k",+ "2k"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "aspect_ratio",+ "resolution",+ "output_format",+ "seed",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "base/flux-3-klein-image-base/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "1:1",+ "description": "The aspect ratio of the generated image.",+ "enum": [+ "1:1",+ "1:2",+ "2:1",+ "1:3",+ "3:1",+ "2:3",+ "3:2",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "9:21",+ "21:9"+ ],+ "type": "string"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "output_format": {+ "default": "jpeg",+ "description": "The format of the output image.",+ "enum": [+ "jpeg",+ "png",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The positive prompt for the generation. A full scene caption (framing, subject, background, lighting) works best.",+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "Total output resolution tier: 1k (~1 megapixel), 1.5k (~2.4 megapixels) or 2k (~4 megapixels).",+ "enum": [+ "1k",+ "1.5k",+ "2k"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "aspect_ratio",+ "resolution",+ "output_format",+ "seed",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "base/flux-3-klein-image-distilled/edit": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "description": "The output aspect ratio. Defaults to the first reference image.",+ "enum": [+ "1:1",+ "1:2",+ "2:1",+ "1:3",+ "3:1",+ "2:3",+ "3:2",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "9:21",+ "21:9"+ ],+ "type": "string"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "images": {+ "description": "Reference images to edit from (1 to 3 URLs). The first image also sets the output aspect ratio unless aspect_ratio is given.",+ "items": {+ "type": "string"+ },+ "maxItems": 3,+ "minItems": 1,+ "type": "array"+ },+ "output_format": {+ "default": "jpeg",+ "description": "The format of the output image.",+ "enum": [+ "jpeg",+ "png",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The edit instruction describing the desired result. To place or move elements with bounding boxes, refer to the n-th reference as <ref_image_n>.",+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "Total output resolution tier: 1k (~1 megapixel), 1.5k (~2.4 megapixels) or 2k (~4 megapixels).",+ "enum": [+ "1k",+ "1.5k",+ "2k"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "prompt",+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "images",+ "aspect_ratio",+ "resolution",+ "output_format",+ "seed",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "base/krea-v2/turbo": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "1:1",+ "description": "The aspect ratio of the generated image.",+ "enum": [+ "1:1",+ "1:2",+ "2:1",+ "1:3",+ "3:1",+ "2:3",+ "3:2",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "9:21",+ "21:9"+ ],+ "type": "string"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "image": {+ "description": "Optional source image URL. When provided, the model runs image-to-image from it; the output keeps the source aspect ratio.",+ "type": "string"+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "Total output resolution tier: 1k (~1 megapixel) or 2k (~4 megapixels, generated natively).",+ "enum": [+ "1k",+ "2k"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ },+ "strength": {+ "default": 0.8,+ "description": "Image-to-image strength (0-1). Higher values repaint the source image more freely. Only used when `image` is set.",+ "maximum": 1,+ "minimum": 0,+ "type": "number"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "image",+ "aspect_ratio",+ "resolution",+ "strength",+ "seed",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "base/moss-image/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "1:1",+ "description": "The aspect ratio of the generated image.",+ "enum": [+ "1:1",+ "1:2",+ "2:1",+ "1:3",+ "3:1",+ "2:3",+ "3:2",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "9:21",+ "21:9"+ ],+ "type": "string"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "output_format": {+ "default": "jpeg",+ "description": "The format of the output image.",+ "enum": [+ "jpeg",+ "png",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The positive prompt for the generation. Supports long, detailed prompts and Chinese and English text rendering inside the image.",+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "Total output resolution tier: 1k (~1 megapixel), 1.5k (~2.4 megapixels) or 2k (~4 megapixels).",+ "enum": [+ "1k",+ "1.5k",+ "2k"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "aspect_ratio",+ "resolution",+ "output_format",+ "seed",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "elevenlabs/eleven-v4": {+ "additionalProperties": false,+ "properties": {+ "similarity": {+ "default": 0.75,+ "description": "How closely the generated speech follows the selected voice. Higher values increase voice similarity.",+ "maximum": 1,+ "minimum": 0,+ "type": "number",+ "x-ui-component": "slider"+ },+ "stability": {+ "default": 0.5,+ "description": "How consistent the delivery stays. Lower values allow more expressive variation; higher values favor consistency.",+ "maximum": 1,+ "minimum": 0,+ "type": "number",+ "x-ui-component": "slider"+ },+ "text": {+ "description": "Text to convert to speech. Supports expressive audio tags such as [whispering] and [laughing]. Maximum 10,000 characters for this endpoint.",+ "example": "[warmly] Welcome to a new day. Take a deep breath, find your rhythm, and make a little room for something wonderful.",+ "maxLength": 10000,+ "minLength": 1,+ "type": "string",+ "x-rows": 5,+ "x-ui-component": "textarea"+ },+ "voice_id": {+ "default": "Alicia",+ "description": "The voice to use for speech generation. Choose a preset voice name, or enter any ElevenLabs voice ID.",+ "minLength": 1,+ "type": "string",+ "x-placeholder": "Please input your custom voice ID",+ "x-suggestions": [+ "Alicia",+ "Aria",+ "Roger",+ "Sarah",+ "Laura",+ "Charlie",+ "George",+ "Callum",+ "River",+ "Liam",+ "Charlotte",+ "Alice",+ "Matilda",+ "Will",+ "Jessica",+ "Eric",+ "Chris",+ "Brian",+ "Daniel",+ "Lily",+ "Bill",+ "Adam",+ "Bella",+ "Harry",+ "Wyatt",+ "Sawyer",+ "Baxter",+ "Caleb",+ "Finley",+ "Eldrin",+ "Kaelen",+ "Jade",+ "Elara",+ "Lawrence",+ "Florence",+ "Maisie",+ "Elowen",+ "Darian",+ "Talia",+ "Warren",+ "Eddie"+ ],+ "x-ui-component": "command"+ }+ },+ "required": [+ "text",+ "voice_id"+ ],+ "type": "object",+ "x-order-properties": [+ "text",+ "voice_id",+ "stability",+ "similarity"+ ]+ },+ "elevenlabs/eleven-v4-turbo": {+ "additionalProperties": false,+ "properties": {+ "similarity": {+ "default": 0.75,+ "description": "How closely the generated speech follows the selected voice. Higher values increase voice similarity.",+ "maximum": 1,+ "minimum": 0,+ "type": "number",+ "x-ui-component": "slider"+ },+ "stability": {+ "default": 0.5,+ "description": "How consistent the delivery stays. Lower values allow more expressive variation; higher values favor consistency.",+ "maximum": 1,+ "minimum": 0,+ "type": "number",+ "x-ui-component": "slider"+ },+ "text": {+ "description": "Text to convert to speech. Supports expressive audio tags such as [whispering] and [laughing]. Maximum 10,000 characters for this endpoint.",+ "example": "[warmly] Welcome to a new day. Take a deep breath, find your rhythm, and make a little room for something wonderful.",+ "maxLength": 10000,+ "minLength": 1,+ "type": "string",+ "x-rows": 5,+ "x-ui-component": "textarea"+ },+ "voice_id": {+ "default": "Alicia",+ "description": "The voice to use for speech generation. Choose a preset voice name, or enter any ElevenLabs voice ID.",+ "minLength": 1,+ "type": "string",+ "x-placeholder": "Please input your custom voice ID",+ "x-suggestions": [+ "Alicia",+ "Aria",+ "Roger",+ "Sarah",+ "Laura",+ "Charlie",+ "George",+ "Callum",+ "River",+ "Liam",+ "Charlotte",+ "Alice",+ "Matilda",+ "Will",+ "Jessica",+ "Eric",+ "Chris",+ "Brian",+ "Daniel",+ "Lily",+ "Bill",+ "Adam",+ "Bella",+ "Harry",+ "Wyatt",+ "Sawyer",+ "Baxter",+ "Caleb",+ "Finley",+ "Eldrin",+ "Kaelen",+ "Jade",+ "Elara",+ "Lawrence",+ "Florence",+ "Maisie",+ "Elowen",+ "Darian",+ "Talia",+ "Warren",+ "Eddie"+ ],+ "x-ui-component": "command"+ }+ },+ "required": [+ "text",+ "voice_id"+ ],+ "type": "object",+ "x-order-properties": [+ "text",+ "voice_id",+ "stability",+ "similarity"+ ]+ },+ "alibaba/wan-3.0/text-to-video": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "16:9",+ "description": "The aspect ratio of the generated video.",+ "enum": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4"+ ],+ "type": "string"+ },+ "duration": {+ "default": 5,+ "description": "The duration of the generated media in seconds (2-30s).",+ "maximum": 30,+ "minimum": 2,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "enable_prompt_expansion": {+ "default": false,+ "description": "If set to true, the prompt optimizer will be enabled.",+ "type": "boolean"+ },+ "generate_audio": {+ "default": true,+ "description": "Whether to include audio in the generated video.",+ "type": "boolean",+ "x-aliases": [+ "enable_audio"+ ]+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "resolution": {+ "default": "720p",+ "description": "The resolution of the generated video.",+ "enum": [+ "480p",+ "720p",+ "1080p"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "resolution",+ "aspect_ratio",+ "duration",+ "enable_prompt_expansion",+ "generate_audio",+ "seed"+ ]+ },+ "alibaba/wan-3.0-prime/text-to-video": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "16:9",+ "description": "The aspect ratio of the generated video.",+ "enum": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4"+ ],+ "type": "string"+ },+ "duration": {+ "default": 5,+ "description": "The duration of the generated media in seconds (2-30s).",+ "maximum": 30,+ "minimum": 2,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "enable_prompt_expansion": {+ "default": false,+ "description": "If set to true, the prompt optimizer will be enabled.",+ "type": "boolean"+ },+ "generate_audio": {+ "default": true,+ "description": "Whether to include audio in the generated video.",+ "type": "boolean",+ "x-aliases": [+ "enable_audio"+ ]+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "resolution": {+ "default": "720p",+ "description": "The resolution of the generated video.",+ "enum": [+ "480p",+ "720p",+ "1080p"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "resolution",+ "aspect_ratio",+ "duration",+ "enable_prompt_expansion",+ "generate_audio",+ "seed"+ ]+ },+ "base/minimax-h3-singularity/image-to-video": {+ "additionalProperties": false,+ "properties": {+ "duration": {+ "default": 5,+ "description": "Output video duration in seconds.",+ "enum": [+ 3,+ 4,+ 5,+ 6,+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 13,+ 14,+ 15+ ],+ "type": "integer",+ "x-ui-component": "select"+ },+ "image": {+ "description": "First-frame image URL. The output canvas follows this image's aspect ratio.",+ "type": "string"+ },+ "last_image": {+ "description": "Optional last-frame image URL. When provided, the video interpolates from the first frame to this frame.",+ "type": "string"+ },+ "prompt": {+ "description": "Text description of the desired motion, scene, and soundtrack. Audio is generated natively together with the video.",+ "type": "string"+ },+ "resolution": {+ "default": "480p",+ "description": "Output video resolution. 768p is the model's native canvas; 480p is a faster, lower-cost tier; 540p is a mid tier at 1.5x the 480p price. 1080p is the highest-quality full-HD tier at 2x the 768p price (generation takes longer).",+ "enum": [+ "480p",+ "540p",+ "768p",+ "1080p"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "prompt",+ "image"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "image",+ "last_image",+ "resolution",+ "duration",+ "seed"+ ]+ },+ "base/minimax-h3-singularity/reference-to-video": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "16:9",+ "description": "Output aspect ratio.",+ "enum": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4",+ "21:9",+ "9:21"+ ],+ "type": "string"+ },+ "duration": {+ "default": 5,+ "description": "Output video duration in seconds.",+ "enum": [+ 3,+ 4,+ 5,+ 6,+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 13,+ 14,+ 15+ ],+ "type": "integer",+ "x-ui-component": "select"+ },+ "prompt": {+ "description": "Text description of the desired video. Refer to reference inputs as <Picture 1>..<Picture 9>, <Video 1>..<Video 3>, and <Audio 1>..<Audio 3>. Audio is generated natively together with the video.",+ "type": "string"+ },+ "reference_audios": {+ "description": "Standalone reference audio URLs (up to 3, trimmed to 15 seconds each).",+ "items": {+ "type": "string"+ },+ "maxItems": 3,+ "type": "array"+ },+ "reference_images": {+ "description": "Reference image URLs (up to 9). At least one reference input is required.",+ "items": {+ "type": "string"+ },+ "maxItems": 9,+ "type": "array"+ },+ "reference_videos": {+ "description": "Reference video URLs (up to 3, usable at any output resolution). Their soundtracks are used automatically. Total reference video duration is budgeted to 15 seconds; longer inputs are truncated fairly.",+ "items": {+ "type": "string"+ },+ "maxItems": 3,+ "type": "array"+ },+ "resolution": {+ "default": "480p",+ "description": "Output video resolution. 768p is the model's native canvas; 480p is a faster, lower-cost tier; 540p is a mid tier at 1.5x the 480p price. 1080p is the highest-quality full-HD tier at 2x the 768p price (generation takes longer).",+ "enum": [+ "480p",+ "540p",+ "768p",+ "1080p"+ ],+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "reference_images",+ "reference_videos",+ "reference_audios",+ "aspect_ratio",+ "resolution",+ "duration",+ "seed"+ ]+ },+ "bytedance/seedance-2.0-mini/image-to-video-spicy": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "description": "The aspect ratio of the generated video. If not specified, adapts to the input image.",+ "enum": [+ "16:9",+ "9:16",+ "4:3",+ "3:4",+ "1:1",+ "21:9"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "duration": {+ "default": 5,+ "description": "The duration of the generated video in seconds (4-15s).",+ "maximum": 15,+ "minimum": 4,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "generate_audio": {+ "default": true,+ "description": "Whether to generate native audio synchronized with the output video. Defaults to true.",+ "type": "boolean"+ },+ "image": {+ "description": "Start image URL to guide the video generation.",+ "type": "string"+ },+ "last_image": {+ "description": "Last frame image URL for video continuation.",+ "type": "string"+ },+ "prompt": {+ "description": "Describe the scene, action, camera movement, and mood for the video.",+ "type": "string"+ },+ "resolution": {+ "default": "720p",+ "description": "The output video resolution.",+ "enum": [+ "480p",+ "720p",+ "1080p",+ "4k"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ }+ },+ "required": [+ "image"+ ],+ "type": "object",+ "x-order-properties": [+ "image",+ "prompt",+ "last_image",+ "aspect_ratio",+ "resolution",+ "duration",+ "generate_audio",+ "seed"+ ]+ },+ "openai/gpt-image-2/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "1:1",+ "description": "The aspect ratio of the generated image. Defaults to 1:1.",+ "enum": [+ "1:1",+ "1:2",+ "2:1",+ "1:3",+ "3:1",+ "2:3",+ "3:2",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "9:21",+ "21:9"+ ],+ "type": "string",+ "x-placeholder": "Select aspect ratio"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "output_format": {+ "default": "png",+ "description": "The format of the output image.",+ "enum": [+ "png",+ "jpeg",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "quality": {+ "default": "medium",+ "description": "The quality of the generated image. Higher quality costs more.",+ "enum": [+ "low",+ "medium",+ "high"+ ],+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "The resolution of the output image.",+ "enum": [+ "1k",+ "2k",+ "4k"+ ],+ "type": "string"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "aspect_ratio",+ "resolution",+ "quality",+ "output_format",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "openai/gpt-image-2/edit": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "description": "The aspect ratio of the generated image. If not specified, it is determined automatically from the input image.",+ "enum": [+ "1:1",+ "1:2",+ "2:1",+ "1:3",+ "3:1",+ "2:3",+ "3:2",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "9:21",+ "21:9"+ ],+ "type": "string",+ "x-placeholder": "Select aspect ratio"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "images": {+ "description": "List of URLs of input images for editing.",+ "items": {+ "type": "string"+ },+ "maxItems": 16,+ "type": "array"+ },+ "output_format": {+ "default": "png",+ "description": "The format of the output image.",+ "enum": [+ "png",+ "jpeg",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "quality": {+ "default": "medium",+ "description": "The quality of the generated image. Higher quality costs more.",+ "enum": [+ "low",+ "medium",+ "high"+ ],+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "The resolution of the output image.",+ "enum": [+ "1k",+ "2k",+ "4k"+ ],+ "type": "string"+ }+ },+ "required": [+ "prompt",+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "images",+ "aspect_ratio",+ "resolution",+ "quality",+ "output_format",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "google/nano-banana-pro/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "1:1",+ "description": "The aspect ratio of the generated image. Defaults to 1:1.",+ "enum": [+ "1:1",+ "3:2",+ "2:3",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "21:9"+ ],+ "type": "string",+ "x-placeholder": "Select aspect ratio"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "output_format": {+ "default": "png",+ "description": "The format of the output image.",+ "enum": [+ "png",+ "jpeg"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "The resolution of the output image.",+ "enum": [+ "1k",+ "2k",+ "4k"+ ],+ "type": "string"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "aspect_ratio",+ "resolution",+ "output_format",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "google/nano-banana-pro/edit": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "description": "The aspect ratio of the generated image. If not specified, it is determined automatically from the input image.",+ "enum": [+ "1:1",+ "3:2",+ "2:3",+ "3:4",+ "4:3",+ "4:5",+ "5:4",+ "9:16",+ "16:9",+ "21:9"+ ],+ "type": "string",+ "x-placeholder": "Select aspect ratio"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "images": {+ "description": "List of URLs of input images for editing. The maximum number of images is 14.",+ "items": {+ "type": "string"+ },+ "maxItems": 14,+ "type": "array"+ },+ "output_format": {+ "default": "png",+ "description": "The format of the output image.",+ "enum": [+ "png",+ "jpeg"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "resolution": {+ "default": "1k",+ "description": "The resolution of the output image.",+ "enum": [+ "1k",+ "2k",+ "4k"+ ],+ "type": "string"+ }+ },+ "required": [+ "prompt",+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "images",+ "aspect_ratio",+ "resolution",+ "output_format",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "base/flux-2-max/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ },+ "size": {+ "default": "1024*1024",+ "description": "The size of the generated media in pixels (width*height).",+ "maximum": 2048,+ "minimum": 256,+ "type": "string"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "size",+ "seed",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "base/flux-2-max/edit": {+ "additionalProperties": false,+ "properties": {+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "enable_sync_mode": {+ "default": false,+ "description": "If set to `true`, the request attempts to wait for the generated result and return outputs in the same response. If the result is not ready within the sync wait window, the API can return a timeout body while the task continues processing. This option is only available via the API and is supported only by some models.",+ "disabled": true,+ "type": "boolean"+ },+ "images": {+ "description": "List of URLs of input images for editing. The maximum number of images is 3.",+ "items": {+ "type": "string"+ },+ "maxItems": 3,+ "type": "array"+ },+ "prompt": {+ "description": "The positive prompt for the generation.",+ "type": "string"+ },+ "seed": {+ "description": "The random seed to use for the generation. -1 means a random seed will be used.",+ "type": "integer"+ },+ "size": {+ "description": "The size of the generated media in pixels (width*height).",+ "maximum": 2048,+ "minimum": 256,+ "type": "string",+ "x-hidden": true+ }+ },+ "required": [+ "prompt",+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "images",+ "size",+ "seed",+ "enable_sync_mode",+ "enable_base64_output"+ ]+ },+ "midjourney/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "1:1",+ "description": "The aspect ratio of the generated image. Defaults to 1:1.",+ "enum": [+ "1:1",+ "9:16",+ "16:9",+ "4:3",+ "3:4",+ "2:3",+ "3:2",+ "9:21",+ "21:9"+ ],+ "type": "string",+ "x-placeholder": "Select Aspect Ratio",+ "x-ui-component": "select"+ },+ "chaos": {+ "default": 0,+ "description": "Controls variation and unpredictability.",+ "maximum": 100,+ "minimum": 0,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "hd": {+ "default": false,+ "description": "Enable HD generation mode.",+ "type": "boolean"+ },+ "prompt": {+ "description": "Text prompt describing the image to generate.",+ "type": "string"+ },+ "quality": {+ "default": 1,+ "description": "Generation quality setting supported by Midjourney v8.1.",+ "enum": [+ 1,+ 4+ ],+ "type": "integer",+ "x-ui-component": "select"+ },+ "seed": {+ "description": "Random seed. Use -1 for a random seed.",+ "type": "integer"+ },+ "sref": {+ "description": "Optional style reference image URL.",+ "disabled": true,+ "type": "string",+ "x-accept": "image/*",+ "x-ui-component": "uploader"+ },+ "stylize": {+ "default": 0,+ "description": "Controls how strongly Midjourney's aesthetic style influences the result.",+ "maximum": 1000,+ "minimum": 0,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "weird": {+ "default": 0,+ "description": "Adds unconventional or surreal characteristics.",+ "maximum": 3000,+ "minimum": 0,+ "type": "integer",+ "x-ui-component": "slider"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "sref",+ "aspect_ratio",+ "hd",+ "quality",+ "stylize",+ "chaos",+ "weird",+ "seed"+ ]+ },+ "x-ai/grok-imagine-image-quality/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "1:1",+ "description": "The aspect ratio of the generated image. Defaults to 1:1.",+ "enum": [+ "1:1",+ "16:9",+ "9:16",+ "4:3",+ "3:4",+ "3:2",+ "2:3"+ ],+ "type": "string"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "num_images": {+ "default": 1,+ "description": "Number of images to generate. Range: 1-4.",+ "disabled": true,+ "maximum": 4,+ "minimum": 1,+ "type": "integer"+ },+ "output_format": {+ "default": "jpeg",+ "description": "Output image format.",+ "enum": [+ "jpeg",+ "png",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The prompt for image generation or editing.",+ "type": "string",+ "x-rows": 4,+ "x-ui-component": "textarea"+ },+ "resolution": {+ "default": "1k",+ "description": "Output resolution tier.",+ "enum": [+ "1k",+ "2k"+ ],+ "type": "string"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "aspect_ratio",+ "resolution",+ "num_images",+ "output_format",+ "enable_base64_output"+ ]+ },+ "x-ai/grok-imagine-image-quality/edit": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "auto",+ "description": "Aspect ratio of the generated image.",+ "enum": [+ "auto",+ "1:1",+ "16:9",+ "9:16",+ "4:3",+ "3:4",+ "3:2",+ "2:3"+ ],+ "type": "string"+ },+ "enable_base64_output": {+ "default": false,+ "description": "If set to `true`, the prediction's `output` strings are returned as **naked base64** (no `data:<mime>;base64,` prefix). When `false` (default), outputs are returned as URLs pointing to our CDN.",+ "disabled": true,+ "type": "boolean"+ },+ "images": {+ "description": "The images to edit. A maximum of 3 reference images can be uploaded.",+ "items": {+ "type": "string"+ },+ "maxItems": 3,+ "type": "array"+ },+ "num_images": {+ "default": 1,+ "description": "Number of images to generate. Range: 1-4.",+ "disabled": true,+ "maximum": 4,+ "minimum": 1,+ "type": "integer"+ },+ "output_format": {+ "default": "jpeg",+ "description": "Output image format.",+ "enum": [+ "jpeg",+ "png",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "The prompt for image generation or editing.",+ "type": "string",+ "x-rows": 4,+ "x-ui-component": "textarea"+ },+ "resolution": {+ "default": "1k",+ "description": "Output resolution tier.",+ "enum": [+ "1k",+ "2k"+ ],+ "type": "string"+ }+ },+ "required": [+ "prompt",+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "images",+ "aspect_ratio",+ "resolution",+ "num_images",+ "output_format",+ "enable_base64_output"+ ]+ },+ "recraft-ai/recraft-v4.1-pro/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "image_size": {+ "default": "1:1",+ "description": "Output image size preset.",+ "enum": [+ "1:1",+ "16:9",+ "9:16",+ "4:3",+ "3:4"+ ],+ "type": "string",+ "x-ui-component": "select"+ },+ "prompt": {+ "description": "Text prompt for the generated image.",+ "type": "string",+ "x-rows": 4,+ "x-ui-component": "textarea"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "image_size"+ ]+ },+ "kwaivgi/kling-image-o3/text-to-image": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "16:9",+ "description": "The aspect ratio of the generated image. Defaults to 16:9.",+ "enum": [+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4",+ "3:2",+ "2:3",+ "21:9"+ ],+ "type": "string"+ },+ "num_images": {+ "default": 1,+ "description": "Number of images to generate.",+ "disabled": true,+ "maximum": 9,+ "minimum": 1,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "output_format": {+ "default": "png",+ "description": "Output image format.",+ "enum": [+ "png",+ "jpeg",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "Text prompt for image generation.",+ "type": "string",+ "x-ui-component": "textarea"+ },+ "resolution": {+ "default": "1k",+ "description": "Image generation resolution.",+ "enum": [+ "1k",+ "2k",+ "4k"+ ],+ "type": "string"+ }+ },+ "required": [+ "prompt"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "aspect_ratio",+ "resolution",+ "num_images",+ "output_format"+ ]+ },+ "kwaivgi/kling-image-o3/edit": {+ "additionalProperties": false,+ "properties": {+ "aspect_ratio": {+ "default": "auto",+ "description": "Aspect ratio of the generated image.",+ "enum": [+ "auto",+ "16:9",+ "9:16",+ "1:1",+ "4:3",+ "3:4",+ "3:2",+ "2:3",+ "21:9"+ ],+ "type": "string"+ },+ "images": {+ "description": "Reference images (max 10). Refer to them in the prompt as <<<image_1>>>, <<<image_2>>>, etc.",+ "items": {+ "type": "string"+ },+ "maxItems": 10,+ "type": "array"+ },+ "num_images": {+ "default": 1,+ "description": "Number of images to generate.",+ "disabled": true,+ "maximum": 9,+ "minimum": 1,+ "type": "integer",+ "x-ui-component": "slider"+ },+ "output_format": {+ "default": "png",+ "description": "Output image format.",+ "enum": [+ "png",+ "jpeg",+ "webp"+ ],+ "type": "string"+ },+ "prompt": {+ "description": "Text prompt for image generation. Refer to input images as <<<image_1>>>, <<<image_2>>>, etc. in array order.",+ "type": "string",+ "x-ui-component": "textarea"+ },+ "resolution": {+ "default": "1k",+ "description": "Image generation resolution.",+ "enum": [+ "1k",+ "2k",+ "4k"+ ],+ "type": "string"+ }+ },+ "required": [+ "prompt",+ "images"+ ],+ "type": "object",+ "x-order-properties": [+ "prompt",+ "images",+ "aspect_ratio",+ "resolution",+ "num_images",+ "output_format"+ ]}}diff --git a/src/lib/render/retired-models.ts b/src/lib/render/retired-models.tsnew file mode 100644index 00000000..9d2af156--- /dev/null+++ b/src/lib/render/retired-models.ts@@ -0,0 +1,78 @@+// Media models taken out of the pickers (24.10.2026, David's go).+//+// A retired model is not deleted. Its price, its upstream route and its name+// stay where they were, because old runs in the gallery carry its id, a+// shipped desktop app may still have it saved as its pick, and a preset a+// customer saved may name it. What changes:+//+// * no picker, no catalogue route and no preset role lists it any more,+// so nobody picks it new (CLOUD_MODELS and STUDIO_MODELS leave it out);+// * the submit route and the studio quote look it up here first:+// runsAs the run goes to this model instead. Only where the+// successor takes the same input, serves the same op and+// costs no more, so the customer gets the same kind of+// result for the same or less money;+// refused the run is refused with a plain sentence and nothing is+// booked. For a model that failed every recent run: booking+// it only to refund it costs the customer a wait and us the+// upstream charge of a run that never delivers;+// neither the run goes through on the old model, at the old price.+//+// Leaf file without imports, so the browser catalogue (studio-catalog.ts),+// the cloud models and the routes all read the same list.++export interface RetiredMediaModel {+ /** The day it left the pickers. */+ since: string+ /** What to pick instead. Shown to a client that still sends the old id. */+ successor: string+ /** The submit route runs this model instead (same op, same inputs, not+ * dearer). */+ runsAs?: string+ /** The submit route refuses the run instead of booking it. */+ refused?: true+}++export const RETIRED_MEDIA_MODELS: Readonly<Record<string, RetiredMediaModel>> = {+ // Text to image. FLUX 3 Klein is the successor in the picker; a saved pick+ // keeps its old route, because the successor is a studio model with its own+ // options and a classic run cannot be moved onto it.+ hidream: { since: '2026-10-24', successor: 'flux-3-klein' },+ 'hunyuan-image': { since: '2026-10-24', successor: 'flux-3-klein' },+ // Clips. LTX-2 renders text and image to video at the same lengths (5 and+ // 8 s), takes the same trained characters and costs less.+ 'hunyuan-video': { since: '2026-10-24', successor: 'ltx-2', runsAs: 'ltx-2' },+ 'ltx-2.3': { since: '2026-10-24', successor: 'ltx-2', runsAs: 'ltx-2' },+ // Motion and music: the successors are dearer or a different kind of+ // model, so a saved pick keeps its old route.+ 'wan-2.2-animate': { since: '2026-10-24', successor: 'wan-2.2-animate-2' },+ 'ace-step': { since: '2026-10-24', successor: 'ace-step-1.5' },+ // Speech: v4 takes the same text and voice and costs less per character.+ 'eleven-v3': { since: '2026-10-24', successor: 'eleven-v4', runsAs: 'eleven-v4' },+ // Extend. ltx-2-extend timed out on 7 of its last 7 runs, pixverse-extend+ // came back flagged on 5 of 5. The successor is the unfiltered extend under+ // the id the extend picker lists (presetModels('extend'), the studio twin of+ // wan-2.2-spicy-extend): Wan 3.0 Extend filters as well, and a flagged run+ // sent there comes back flagged again (08.11.2026).+ 'ltx-2-extend': { since: '2026-10-24', successor: 'preset-wan-2.2-spicy-extend', refused: true },+ 'pixverse-extend': { since: '2026-10-24', successor: 'preset-wan-2.2-spicy-extend', refused: true },+}++export function retiredMediaModel(id: string): RetiredMediaModel | undefined {+ return Object.prototype.hasOwnProperty.call(RETIRED_MEDIA_MODELS, id) ? RETIRED_MEDIA_MODELS[id] : undefined+}++export function isRetiredMediaModel(id: string): boolean {+ return retiredMediaModel(id) !== undefined+}++/** The id a run of `id` really goes to: the successor where the old model+ * runs as it, else the id itself. */+export function submitModelId(id: string): string {+ return retiredMediaModel(id)?.runsAs ?? id+}++/** The sentence a client gets for a refused retired model. */+export function retiredRefusal(label: string): string {+ return `${label} is no longer offered. Pick another model and run it again. Nothing was charged.`+}diff --git a/src/lib/render/studio-models.json b/src/lib/render/studio-models.jsonindex bdb83f3b..efb314dd 100644--- a/src/lib/render/studio-models.json+++ b/src/lib/render/studio-models.json@@ -319,6 +319,7 @@"weights": "open","inputs": {},"defaults": {},+ "maxSide": 1536,"price": {"mode": "flat","rates": {@@ -337,6 +338,7 @@"weights": "open","inputs": {},"defaults": {},+ "maxSide": 1536,"price": {"mode": "flat","rates": {@@ -355,6 +357,7 @@"weights": "open","inputs": {},"defaults": {},+ "maxSide": 1536,"price": {"mode": "flat","rates": {@@ -412,7 +415,7 @@"endpoint": "base/wan-2.2-spicy/video-extend","kind": "video","adult": true,- "tier": "older",+ "tier": "standard","weights": "open","inputs": {"video": "video_path"@@ -1070,6 +1073,7 @@},"inputs": {},"defaults": {},+ "maxSide": 1536,"baselineUsd": 0.01},"nucleus-image": {@@ -1122,6 +1126,7 @@},"inputs": {},"defaults": {},+ "maxSide": 1536,"baselineUsd": 0.025},"qwen-image-2.1": {@@ -1302,5 +1307,476 @@"resolution": "480p"},"baselineUsd": 0.5+ },+ "flux-3-klein": {+ "label": "FLUX 3 Klein",+ "endpoint": "base/flux-3-klein-image-distilled/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "open",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.01,+ "1.5k": 0.02,+ "2k": 0.04+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.01+ },+ "flux-3-klein-base": {+ "label": "FLUX 3 Klein Base",+ "endpoint": "base/flux-3-klein-image-base/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "standard",+ "weights": "open",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.03,+ "1.5k": 0.06,+ "2k": 0.12+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.03+ },+ "flux-3-klein-edit": {+ "label": "FLUX 3 Klein",+ "endpoint": "base/flux-3-klein-image-distilled/edit",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "open",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.016,+ "1.5k": 0.032,+ "2k": 0.064+ },+ "extraImage": 0.01+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "baselineUsd": 0.016+ },+ "krea-2-turbo": {+ "label": "Krea 2 Turbo",+ "endpoint": "base/krea-v2/turbo",+ "kind": "image",+ "adult": true,+ "tier": "best",+ "weights": "open",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.012,+ "2k": 0.024+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.012+ },+ "moss-image": {+ "label": "MOSS Image",+ "endpoint": "base/moss-image/text-to-image",+ "kind": "image",+ "adult": true,+ "tier": "standard",+ "weights": "open-family",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.02,+ "1.5k": 0.04,+ "2k": 0.08+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.02+ },+ "eleven-v4": {+ "label": "ElevenLabs v4",+ "endpoint": "elevenlabs/eleven-v4",+ "kind": "audio",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "inputs": {},+ "defaults": {},+ "promptField": "text",+ "price": {+ "mode": "characters",+ "rates": {+ "default": 0.008+ }+ },+ "baselineUsd": 0.08+ },+ "eleven-v4-turbo": {+ "label": "ElevenLabs v4 Turbo",+ "endpoint": "elevenlabs/eleven-v4-turbo",+ "kind": "audio",+ "adult": false,+ "tier": "standard",+ "weights": "closed",+ "inputs": {},+ "defaults": {},+ "promptField": "text",+ "price": {+ "mode": "characters",+ "rates": {+ "default": 0.004+ }+ },+ "baselineUsd": 0.04+ },+ "wan-3.0-t2v": {+ "label": "Wan 3.0",+ "endpoint": "alibaba/wan-3.0/text-to-video",+ "kind": "video",+ "adult": false,+ "tier": "best",+ "weights": "open-family",+ "price": {+ "mode": "output",+ "rates": {+ "480p": 0.05,+ "720p": 0.1,+ "1080p": 0.2+ }+ },+ "inputs": {},+ "defaults": {+ "resolution": "480p"+ },+ "baselineUsd": 0.5+ },+ "wan-3.0-prime-t2v": {+ "label": "Wan 3.0 Prime",+ "endpoint": "alibaba/wan-3.0-prime/text-to-video",+ "kind": "video",+ "adult": false,+ "tier": "standard",+ "weights": "open-family",+ "price": {+ "mode": "output",+ "rates": {+ "480p": 0.075,+ "720p": 0.15,+ "1080p": 0.3+ }+ },+ "inputs": {},+ "defaults": {+ "resolution": "480p"+ },+ "baselineUsd": 0.75+ },+ "minimax-h3-singularity": {+ "label": "MiniMax H3 Singularity Uncensored",+ "endpoint": "base/minimax-h3-singularity/image-to-video",+ "kind": "video",+ "adult": true,+ "tier": "best",+ "weights": "open",+ "price": {+ "mode": "output",+ "rates": {+ "480p": 0.05,+ "540p": 0.075,+ "768p": 0.1,+ "1080p": 0.2+ }+ },+ "inputs": {+ "image": "source_path",+ "last_image": "last_image_path"+ },+ "defaults": {+ "resolution": "480p"+ },+ "baselineUsd": 0.25+ },+ "minimax-h3-singularity-ref": {+ "label": "MiniMax H3 Singularity Uncensored \u2022 Reference",+ "endpoint": "base/minimax-h3-singularity/reference-to-video",+ "kind": "video",+ "adult": true,+ "tier": "best",+ "weights": "open",+ "price": {+ "mode": "output",+ "rates": {+ "480p": 0.057,+ "540p": 0.082,+ "768p": 0.107,+ "1080p": 0.207+ },+ "extraImage": 0.02+ },+ "inputs": {+ "reference_images": "image_paths"+ },+ "defaults": {+ "resolution": "480p"+ },+ "baselineUsd": 0.25+ },+ "gpt-image-2": {+ "label": "GPT Image 2",+ "endpoint": "openai/gpt-image-2/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "1k/low": 0.01,+ "1k/medium": 0.06,+ "1k/high": 0.22,+ "2k/low": 0.02,+ "2k/medium": 0.1,+ "2k/high": 0.4,+ "4k/low": 0.03,+ "4k/medium": 0.18,+ "4k/high": 0.72+ },+ "qualityField": "quality"+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.06+ },+ "gpt-image-2-edit": {+ "label": "GPT Image 2",+ "endpoint": "openai/gpt-image-2/edit",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "1k/low": 0.02,+ "1k/medium": 0.07,+ "1k/high": 0.23,+ "2k/low": 0.03,+ "2k/medium": 0.11,+ "2k/high": 0.41,+ "4k/low": 0.04,+ "4k/medium": 0.19,+ "4k/high": 0.73+ },+ "qualityField": "quality",+ "extraImage": 0.012+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "baselineUsd": 0.07+ },+ "nano-banana-pro": {+ "label": "Nano Banana Pro",+ "endpoint": "google/nano-banana-pro/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.14,+ "2k": 0.14,+ "4k": 0.24+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.14+ },+ "nano-banana-pro-edit": {+ "label": "Nano Banana Pro",+ "endpoint": "google/nano-banana-pro/edit",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.14,+ "2k": 0.14,+ "4k": 0.24+ }+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "baselineUsd": 0.14+ },+ "flux-2-max": {+ "label": "FLUX.2 Max",+ "endpoint": "base/flux-2-max/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "default": 0.07+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.07+ },+ "flux-2-max-edit": {+ "label": "FLUX.2 Max",+ "endpoint": "base/flux-2-max/edit",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "default": 0.07+ }+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "baselineUsd": 0.07+ },+ "midjourney": {+ "label": "Midjourney",+ "endpoint": "midjourney/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "false": 0.1,+ "true": 0.15+ },+ "resolutionField": "hd"+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.1+ },+ "grok-imagine-quality": {+ "label": "Grok Imagine Quality",+ "endpoint": "x-ai/grok-imagine-image-quality/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.06,+ "2k": 0.08+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.06+ },+ "grok-imagine-quality-edit": {+ "label": "Grok Imagine Quality",+ "endpoint": "x-ai/grok-imagine-image-quality/edit",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.07,+ "2k": 0.09+ },+ "extraImage": 0.01+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "baselineUsd": 0.07+ },+ "recraft-v4.1-pro": {+ "label": "Recraft V4.1 Pro",+ "endpoint": "recraft-ai/recraft-v4.1-pro/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "best",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "default": 0.25+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.25+ },+ "kling-image-o3": {+ "label": "Kling Image O3",+ "endpoint": "kwaivgi/kling-image-o3/text-to-image",+ "kind": "image",+ "adult": false,+ "tier": "standard",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.028,+ "2k": 0.028,+ "4k": 0.056+ }+ },+ "inputs": {},+ "defaults": {},+ "baselineUsd": 0.028+ },+ "kling-image-o3-edit": {+ "label": "Kling Image O3",+ "endpoint": "kwaivgi/kling-image-o3/edit",+ "kind": "image",+ "adult": false,+ "tier": "standard",+ "weights": "closed",+ "price": {+ "mode": "flat",+ "rates": {+ "1k": 0.028,+ "2k": 0.028,+ "4k": 0.056+ }+ },+ "inputs": {+ "images": "image_paths"+ },+ "defaults": {},+ "baselineUsd": 0.028}}diff --git a/src/lib/render/studio-roles.ts b/src/lib/render/studio-roles.tsindex f632231d..6691e59b 100644--- a/src/lib/render/studio-roles.ts+++ b/src/lib/render/studio-roles.ts@@ -49,5 +49,8 @@ export function studioReferenceVideo(): string[] {/** Bildbearbeitung per Anweisung, ohne Maske. Das Standbild der Oberflaeche geht* hinein, kein Pinsel noetig. */export const STUDIO_EDIT_MODELS: readonly string[] = [- 'minimax-h3-edit', 'qwen-image-3-edit', 'seedream-5-edit', 'qwen-image-2.1-edit',+ 'minimax-h3-edit', 'qwen-image-3-edit', 'seedream-5-edit', 'qwen-image-2.1-edit', 'flux-3-klein-edit',+ // 29.10.2026 (W3): die geschlossenen Spitzenmodelle, wo der Anbieter einen+ // Bearbeiten-Weg hat. Midjourney und Recraft haben keinen.+ 'gpt-image-2-edit', 'nano-banana-pro-edit', 'flux-2-max-edit', 'grok-imagine-quality-edit', 'kling-image-o3-edit',]diff --git a/src/lib/render/video-durations.json b/src/lib/render/video-durations.jsonindex 97af514d..797fae18 100644--- a/src/lib/render/video-durations.json+++ b/src/lib/render/video-durations.json@@ -35,7 +35,19 @@15],"minimax-h3-spicy": [- 5+ 3,+ 4,+ 5,+ 6,+ 7,+ 8,+ 9,+ 10,+ 11,+ 12,+ 13,+ 14,+ 15],"seedance-1.5-pro-spicy": [5@@ -49,6 +61,9 @@"seedance-2.0-fast-spicy": [5],+ "seedance-2.0-mini-spicy": [+ 5+ ],"vidu-q3-spicy": [5]diff --git a/src/lib/render/web-catalog-source.json b/src/lib/render/web-catalog-source.jsonnew file mode 100644index 00000000..b794f91e--- /dev/null+++ b/src/lib/render/web-catalog-source.json@@ -0,0 +1,18 @@+{+ "generator": "scripts/studio-snapshot.mjs",+ "note": "Generated files. Do not edit them by hand: run the generator against the web commit this release ships with.",+ "web": {+ "ref": "3b5d5980",+ "commit": "3b5d5980a8ce8e52893d54115a6fd5273c76a83c",+ "committed": "2026-11-13T19:36:35-08:00",+ "dirty": false+ },+ "files": {+ "studio-models.json": "4e5e5e7134aef0316f5ce78b45aaa4437b1dfbdc1cc4c4812f3c99243deb815f",+ "provider-schemas.json": "d8b776549e64bb2458b89fa9dc7de9e29fafa0e8e3a55176a2b459e9991dc178",+ "provider-endpoints.json": "54970333dd8c743c3dae2e3cc489e4fd4e702af51253d9aae21166869d9ff7f7",+ "video-durations.json": "131f8dcf8a075066a640175f536847e870b0b45d402d7884d60fc65c33cf1595",+ "retired-models.ts": "fc9f494bcbfc640c555bd216819d0b00574a6e31aaa1d30f557f15a26f078de6",+ "studio-roles.ts": "8610db1bbc6953d5d4c1ded2f1444ea0336542b3bf473c085d90918bd1fd15ed"+ }+}