Skip to content

Video generation failed error for some models on together AI provider #1983

@reynaldichernando

Description

@reynaldichernando

hi team, i get this vague message about failed video generation when using together ai provider models

image

so far i found these models to be problematic

  • pixverse/pixverse-v5
  • kwaivgI/kling-2.1-standard
  • (other kling variants)

here's the code to repro

<html>
<body>
    <div id="status"></div>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        // Start timer
        const status = document.getElementById('status');
        const startTime = Date.now();
        const timerInterval = setInterval(() => {
            const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
            status.textContent = `Loading (${elapsed} seconds)`;
        }, 100);
        // Generate video
        puter.ai.txt2vid(
            "A fox sprinting through a snow-covered forest at dusk",
            { model: "pixverse/pixverse-v5" }
        )
        .then(videoElement => {
            document.body.appendChild(videoElement);
            videoElement.addEventListener('loadeddata', () => videoElement.play().catch(() => {}));
            // Clear timer and show finished status
            clearInterval(timerInterval);
            const totalTime = ((Date.now() - startTime) / 1000).toFixed(1);
            status.textContent = `Finished (${totalTime} seconds)`;
        }).catch(error => {
            console.error(error);
            clearInterval(timerInterval);
            status.textContent = JSON.stringify(error);
        })
    </script>
</body>
</html>

i've pinpointed the error message from this line

if ( finalJob.status === 'failed' ) {
const errorMessage = finalJob?.info?.errors?.[0]?.message ??
finalJob?.info?.errors?.message ??
finalJob?.info?.errors ??
'Video generation failed';
throw new Error(errorMessage);
}

it would be nice to know the actual error, so i can fix if it was the way i called the model

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions