Vercel AI SDK
@videogen/ai-tool is the official Vercel AI SDK tool package for VideoGen. One call returns the full set of VideoGen tools in AI SDK format, ready to drop into generateText, streamText, or an Agent. Your agent can turn a script into a finished narrated video, plus generate standalone images, video clips, voiceovers, sound effects, music, and talking-head avatars.
Every tool wraps the official @videogen/sdk and runs as the team that owns your API key.
Install
ai (the Vercel AI SDK) and zod are peer dependencies.
Setup
Get an API key from app.videogen.io/developers and set it as VIDEOGEN_API_KEY:
Usage
By default each tool blocks until the workflow run or tool execution reaches a terminal state (succeeded, failed, or cancelled) and returns the finished result.
Options
createVideogenTools reads VIDEOGEN_API_KEY from the environment by default. Pass options to override:
When wait is false, use the matching get* tool (e.g. getWorkflowRun, getToolExecution) to poll the returned id yourself.
Tools
The package returns 34 tools. Tool names are camelCase (e.g. scriptToVideo, generateImage); parameters match the corresponding VideoGen SDK method.
- Workflows (end-to-end video):
scriptToVideo,voiceoverToVideo,slideshowToVideo,storyboardToVideo,listWorkflowRuns,getWorkflowRun,cancelWorkflowRun - Media generation:
generateImage,generateVideoClip,textToSpeech,generateSoundEffect,generateMusic,generateMotionGraphic,generateAvatar,vectorizeImage,removeImageBackground,removeVideoBackground,upscaleImage,upscaleVideo,image3dEffect,listToolExecutions,getToolExecution,cancelToolExecution - Projects:
listProjects,getProject,exportProject,remixProject,listProjectRemixActions - Files:
uploadFile,getFile,listFiles - Resources & account:
listAvatarPresenters,listTtsVoices,listLanguages,getMe
For the full parameter list of each tool, see the MCP server reference — the same tools are exposed there — and the REST API reference.