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: correct predictions poll URL in studio muapi client
Anil Matcha9de0de343087
diff --git a/packages/studio/src/muapi.js b/packages/studio/src/muapi.jsindex 4a008b53..fb150230 100644--- a/packages/studio/src/muapi.js+++ b/packages/studio/src/muapi.js@@ -1,11 +1,10 @@import { getModelById, getVideoModelById, getI2IModelById, getI2VModelById, getV2VModelById, getLipSyncModelById } from './models.js';-const BASE_URL = 'https://api.muapi.ai'; // Legacy direct URL-const PROXY_APP_BASE = '/api/app';+const BASE_URL = 'https://api.muapi.ai';const PROXY_WF_BASE = '/api/workflow';async function pollForResult(requestId, key, maxAttempts = 900, interval = 2000) {- const pollUrl = `${PROXY_APP_BASE}/v1/predictions/${requestId}/result`;+ const pollUrl = `${BASE_URL}/api/v1/predictions/${requestId}/result`;for (let attempt = 1; attempt <= maxAttempts; attempt++) {await new Promise(resolve => setTimeout(resolve, interval));try {