Vercel AI SDK has released an update, @ai-sdk/black-forest-labs@1.0.51, on August 5 that specifically addresses cost reporting for FLUX 3 video generations. Previously, the submit response for these generations could only provide an estimate or no cost at all, particularly when the final price depended on the completed video.
The update ensures that the result endpoint now correctly provides the SettledCostResultResponse, which includes the actual cost, according to the Vercel AI SDK Changelog.
Key Points
- The @ai-sdk/black-forest-labs@1.0.51 package was released on August 5.
- This update specifically targets cost reporting for FLUX 3 video generations.
- The submit response for FLUX 3 video generations previously offered only estimated or no cost.
- The result endpoint now returns
SettledCostResultResponsewith the settled cost. - The previous system dropped the cost information from the
SettledCostResultResponse.
Context
According to the Vercel AI SDK Changelog, the change was necessary because the initial submit response for FLUX 3 video generations could not provide a definitive cost. This was particularly true when the price was contingent on the characteristics of the finished video. The update ensures that the actual, settled cost is now properly reported through the result endpoint.
Why It Matters
This update provides developers with accurate cost information for FLUX 3 video generations, enabling better budget management and more precise financial tracking for projects utilizing this capability. It addresses a gap where cost data was previously unavailable or only an estimate.
What To Do
- Developers using FLUX 3 video generations should update to @ai-sdk/black-forest-labs@1.0.51.
- Review the
SettledCostResultResponsefrom the result endpoint to access accurate cost data. - Note that the submit response will still provide an estimate or no cost, with the final cost available from the result endpoint.
- Compare previous cost estimation methods with the new settled cost reporting for financial reconciliation.
