Vercel has updated its AI SDK, specifically the @ai-sdk/black-forest-labs package, to improve cost reporting for FLUX 3 video generations. This change, noted in releases @ai-sdk/black-forest-labs@2.0.22 and @ai-sdk/black-forest-labs@1.0.51 on August 5, addresses a previous limitation where the initial submission response could only estimate costs or return no cost at all, particularly when the final price was contingent on the completed video.
Key Points
- The Vercel AI SDK now reports the settled cost for FLUX 3 video generations.
- Previously, the submit response could only estimate costs or return no cost for FLUX 3 video generations.
- Cost estimation was limited when the price depended on the finished video.
- The result endpoint now provides the settled cost via
SettledCostResultResponse. - The change was implemented in @ai-sdk/black-forest-labs@2.0.22 and @ai-sdk/black-forest-labs@1.0.51.
Context
According to the Vercel AI SDK changelog, the SettledCostResultResponse object's cost was previously being dropped. This update ensures that the final, settled cost is accurately reported for FLUX 3 video generations, providing more precise financial information to users.
Why It Matters
Accurate cost reporting for video generation services is important for developers and businesses managing budgets and billing. This update provides clarity on the actual expenditure for FLUX 3 video generations, moving beyond initial estimates.
What To Do
- Review the Vercel AI SDK documentation for details on
SettledCostResultResponse. - Update to @ai-sdk/black-forest-labs@2.0.22 or later to access the improved cost reporting.
- Test the cost reporting functionality for FLUX 3 video generations in your applications.
- Note how settled costs are now handled compared to previous estimations.
