feat(ai-sdk): add video generation examples for all 15 supported models#18
Open
TimPietruskyRunPod wants to merge 1 commit into
Open
feat(ai-sdk): add video generation examples for all 15 supported models#18TimPietruskyRunPod wants to merge 1 commit into
TimPietruskyRunPod wants to merge 1 commit into
Conversation
- Add 15 new example scripts (4 t2v, 11 i2v) covering all video models - Update generate-video.js to use npm imports and latest API patterns - Each i2v example uses a unique demo image from image.runpod.ai/demo/ - Motion control example (kling-v2.6-std) uses person image + video reference - Sora i2v example includes explicit duration: 4 (required by API) - Bump @runpod/ai-sdk-provider to ^1.4.0 and ai to ^6.0.116
justinwlin
approved these changes
Mar 11, 2026
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.
Summary
@runpod/ai-sdk-providergenerate-video.jsto use npm imports and latest API patterns@runpod/ai-sdk-providerto^1.4.0andaito^6.0.116Models covered
Text-to-Video (4):
pruna/p-video,vidu/q3-t2v,alibaba/wan-2.6-t2v,alibaba/wan-2.2-t2v-720-loraImage-to-Video (11):
vidu/q3-i2v,kwaivgi/kling-v2.6-std-motion-control,kwaivgi/kling-video-o1-r2v,kwaivgi/kling-v2.1-i2v-pro,alibaba/wan-2.6-i2v,alibaba/wan-2.5,alibaba/wan-2.2-i2v-720,alibaba/wan-2.1-i2v-720,bytedance/seedance-v1.5-pro-i2v,openai/sora-2-pro-i2v,openai/sora-2-i2vKey details
image.runpod.ai/demo/kling-v2.6-std) uses person image + video reference viaproviderOptions.runpod.video(AI SDK has no native video input for generateVideo)kling-video-o1-r2vuses standardprompt.image— the provider maps it toimagesarray (see runpod/ai-sdk-provider#64)duration: 4(required by API)Test plan