Unrestricted Open-source alternative to AI video platforms — Free AI image & video generation studio with 600+ models (Flux, Midjourney, Kling, Sora, Veo). No content filters. Self-hosted, MIT licensed.
JavaScript ai-art-generatorai-image-generationai-video-generationfal-ai-alternativegenerative-aiimage-to-videoinvideo-alternativekling-ailipsynclitellm-alternativemidjourney-alternativemuapiopen-sourceopenrouter-alternativeseedance2sora-alternativetext-to-imagetext-to-videouncensoredwan-video
fix(studio): preserve Seedance Spicy controls
Anil-matcha24270793aeb3
diff --git a/packages/studio/src/models.js b/packages/studio/src/models.jsindex 380af6c9..be334ba8 100644--- a/packages/studio/src/models.js+++ b/packages/studio/src/models.js@@ -8,7 +8,9 @@ import {} from './imageSizing.js';// Verified against https://api.muapi.ai/openapi.json on 2026-09-09.-// Seedance 2.5 uses the same inputs across its Standard, Intl and Spicy routes.+// Seedance 2.5 shares common inputs across its Standard, Intl and Spicy routes.+// Spicy T2V/I2V routes additionally support native resolution and audio+// generation controls.const SEEDANCE_25_ASPECT_RATIO_INPUT = Object.freeze({enum: Object.freeze(["adaptive", "16:9", "9:16", "1:1", "4:3", "3:4", "21:9", "9:21"]),type: "string",@@ -17,6 +19,14 @@ const SEEDANCE_25_ASPECT_RATIO_INPUT = Object.freeze({description: "Aspect ratio of the output video.",default: "16:9",});+const SEEDANCE_25_RESOLUTION_INPUT = Object.freeze({+ enum: Object.freeze(["480p", "720p", "1080p", "4K"]),+ type: "string",+ title: "Resolution",+ name: "resolution",+ description: "Output video resolution.",+ default: "1080p",+});const SEEDANCE_HIGH_BITRATE_INPUT = Object.freeze({type: "boolean",title: "High Bitrate",@@ -24,6 +34,13 @@ const SEEDANCE_HIGH_BITRATE_INPUT = Object.freeze({description: "Enable high bitrate mode for better visual fidelity. Produces larger files.",default: false,});+const SEEDANCE_25_GENERATE_AUDIO_INPUT = Object.freeze({+ type: "boolean",+ title: "Generate Audio",+ name: "generate_audio",+ description: "Whether to generate audio for the video.",+ default: true,+});const SEEDANCE_25_SEED_INPUT = Object.freeze({type: "int",title: "Seed",@@ -7867,6 +7884,8 @@ export const t2vModels = ["name": "Seedance 2.5 Spicy","endpoint": "seedance-2.5-spicy-text-to-video","inputs": {+ "resolution": SEEDANCE_25_RESOLUTION_INPUT,+ "generate_audio": SEEDANCE_25_GENERATE_AUDIO_INPUT,"prompt": {"examples": ["A high-contrast, adrenaline-fueled chase through a rain-soaked neon megacity at night, sparks and shattering glass in slow motion, aggressive handheld camera energy, exaggerated color grading, 4K cinematic quality."@@ -19819,6 +19838,8 @@ export const i2vModels = ["hasPrompt": true,"promptRequired": true,"inputs": {+ "resolution": SEEDANCE_25_RESOLUTION_INPUT,+ "generate_audio": SEEDANCE_25_GENERATE_AUDIO_INPUT,"prompt": {"examples": ["Bold, high-energy dolly forward through a neon-drenched alley at night, sparks flying off a passing train, exaggerated lighting contrast, dramatic camera shake, photorealistic 4K quality."diff --git a/packages/studio/src/muapi.js b/packages/studio/src/muapi.jsindex bf0a82ee..13855ea9 100644--- a/packages/studio/src/muapi.js+++ b/packages/studio/src/muapi.js@@ -163,6 +163,7 @@ export async function generateVideo(apiKey, params) {if (params.aspect_ratio) payload.aspect_ratio = params.aspect_ratio;if (params.duration) payload.duration = params.duration;if (params.resolution) payload.resolution = params.resolution;+ if (typeof params.generate_audio === 'boolean') payload.generate_audio = params.generate_audio;if (params.quality) payload.quality = params.quality;if (params.mode) payload.mode = params.mode;if (!mediaCapabilities.image.field && params.image_url) payload.image_url = params.image_url;@@ -186,6 +187,7 @@ export async function generateI2V(apiKey, params) {if (params.aspect_ratio) payload.aspect_ratio = params.aspect_ratio;if (params.duration) payload.duration = params.duration;if (params.resolution) payload.resolution = params.resolution;+ if (typeof params.generate_audio === 'boolean') payload.generate_audio = params.generate_audio;if (params.quality) payload.quality = params.quality;if (params.mode) payload.mode = params.mode;if (modelInfo?.inputs?.name) {diff --git a/packages/studio/src/seedanceModels.js b/packages/studio/src/seedanceModels.jsindex 7891b0e1..4f12555e 100644--- a/packages/studio/src/seedanceModels.js+++ b/packages/studio/src/seedanceModels.js@@ -1,7 +1,7 @@import { i2vModels, t2vModels, v2vModels } from "./models.js";-// Endpoint coordinates are separate from ordinary generation parameters. In-// particular, an unsuffixed endpoint does not promise a specific resolution.+// Endpoint coordinates are separate from ordinary generation parameters for+// routes whose schema has no native resolution input.const FACETS = Object.freeze(["profile", "speed", "resolution"]);const modelIds = new Set([...t2vModels, ...i2vModels, ...v2vModels].map((model) => model.id),@@ -66,11 +66,14 @@ const MODERN_WORKFLOWS = Object.freeze({for (const profile of ["standard", "intl", "spicy"]) {for (const { stem, workflowId } of Object.values(MODERN_WORKFLOWS)) {for (const resolution of ["default", "480p", "1080p", "4k"]) {+ const usesNativeResolution = profile === "spicy" &&+ resolution === "default" &&+ (workflowId === null || workflowId === "animate_image");register(`seedance-2.5-${profile === "standard" ? "" : `${profile}-`}${stem}${resolution === "default" ? "" : `-${resolution}`}`,"seedance-2.5",[workflowId],- { profile, resolution },+ { profile, resolution, ...(usesNativeResolution ? { usesNativeResolution: true } : {}) },);}}@@ -147,12 +150,14 @@ export function getSeedanceConfiguration(modelId) {return configurations.get(modelId) || null;}-// MuAPI's family tables specify 720p for these unsuffixed services:+// MuAPI's family tables specify 720p for unsuffixed services that do not+// expose a native resolution input:// https://muapi.ai/seedance-2.5 and https://muapi.ai/seedance-2 (2026-09-09).// Older API routes with no documented size deliberately remain unspecified.export function getSeedanceEndpointResolution(modelId) {const config = getSeedanceConfiguration(modelId);if (!config) return undefined;+ if (config.usesNativeResolution) return undefined;if (config.resolution !== "default") return config.resolution;if (config.familyId === "seedance-2.5" ||(config.familyId === "seedance-2" && ["standard", "vip", "spicy"].includes(config.profile))) return "720p";diff --git a/packages/studio/src/seedanceParameters.js b/packages/studio/src/seedanceParameters.jsindex 447ff86b..e0c7618b 100644--- a/packages/studio/src/seedanceParameters.js+++ b/packages/studio/src/seedanceParameters.js@@ -267,7 +267,10 @@ export function resolveSeedanceSelection({const requestedResolution = changes.resolution;if (requestedResolution !== undefined && requestedResolution !== "default") {const size = normalizeResolution(requestedResolution);- for (const modelId of new Set([resolve(size), resolve("default")])) {+ // Prefer a native-resolution route when the selected model exposes the+ // documented control. Dedicated size endpoints remain the fallback for+ // variants whose provider contract has no native resolution input.+ for (const modelId of new Set([resolve("default"), resolve(size)])) {if (!modelId) continue;const native = getSeedanceCommonOptions(modelForId(modelId)).resolutions.find((value) => normalizeResolution(value) === size);@@ -295,7 +298,10 @@ export function resolveSeedanceSelection({}const outputResolution = normalizeResolution(sourceResolution);- const candidates = new Set([resolve(), resolve(outputResolution), resolve("default")]);+ // Give a target's native-resolution route the first chance to retain the+ // current output size. This keeps documented Spicy controls on the base+ // route when switching into Spicy from a dedicated-size variant.+ const candidates = new Set([resolve("default"), resolve(), resolve(outputResolution)]);for (const modelId of candidates) {if (!modelId) continue;const nativeOptions = getSeedanceCommonOptions(modelForId(modelId)).resolutions;@@ -308,10 +314,11 @@ export function resolveSeedanceSelection({return null;}-// These two entries previously exposed a native size input. Preserve the-// saved output size when restoring them against the corrected API contract.+// Preserve the native routes for the two Spicy entries that expose a native+// output-size input. Keep the fallback for catalogs that may still be stale.export function migrateSeedanceResolutionSelection(modelId, resolution) {if (modelId !== "seedance-2.5-spicy-text-to-video" && modelId !== "seedance-2.5-spicy-image-to-video") return modelId;+ if (getSeedanceCommonOptions(modelForId(modelId)).resolutions.length) return modelId;return resolveSeedanceSelection({familyId: "seedance-2.5",workflowId: modelId.endsWith("image-to-video") ? "animate_image" : null,