feat: add @ai-sdk/bytedance provider for Seedance video generation#12044
Closed
feat: add @ai-sdk/bytedance provider for Seedance video generation#12044
Conversation
## Background
Vertex AI video generation was broken - the operation polling URL was
incorrect, causing all video generation requests to fail after the
initial request succeeded.
## Summary
- Fixed polling to use `POST /models/{modelId}:fetchPredictOperation`
with `{ operationName }` in body
- Previously used `GET /v1beta1/{operationName}` which returned 404
- Moved `vertex-veo.ts` example out of `later/` folder and removed "NOT
WORKING" warning
## Manual Verification
- Ran `pnpm tsx src/generate-video/vertex-veo.ts` and confirmed video
generation polling now works
## Checklist
- [x] Tests have been added / updated (for bug fixes / features)
- [x] I have reviewed this pull request (self-review)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Add new provider package for ByteDance/Seedance video models via BytePlus API. Supports text-to-video and image-to-video with async polling.
c0f30fb to
f213ef3
Compare
9f60734 to
f213ef3
Compare
5a3dd3a to
eb96b14
Compare
|
Coincidentally, we're discussing video generation. Perhaps you could use my video-generation code to integrate it with the new AI SDK generate video function. That code already includes providers for ByteDance, Alibaba/Wan, Minimax with duration, resolution, and aspectRatio parameters. |
b17df0c to
cda3667
Compare
Base automatically changed from
01-19-feat_experimental_generatevideo
to
main
February 1, 2026 06:41
Collaborator
|
Continuing work in #12188 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
ByteDance offers Seedance video generation models through the BytePlus/ModelArk API. This PR adds support for these models via a new
@ai-sdk/bytedanceprovider package, enabling users to generate videos usingexperimental_generateVideo.Summary
@ai-sdk/bytedanceprovider packageVideoModelV3interface with async polling patternprompt,aspectRatio,duration,seed,resolutionwatermark,generateAudio,pollIntervalMs,pollTimeoutMsexamples/ai-functions/src/generate-video/bytedance-seedance.tsManual Verification
Tested end-to-end video generation with the Seedance 1.5 Pro model: