6.0
关注
AI SCORE
工具产品2026-07-30 08:00
MiniMax H3 视频生成模型接入 Vercel AI Gateway
Vercel Blog#视频生成#API#Vercel
Editor brief · 编辑速览
支持文本、图片、关键帧多模式输入的视频生成模型。可通过标准 API 集成,对多媒体应用开发有用。
MiniMax H3 现已登陆 AI Gateway。
H3 可以根据文本 prompt、起始图像、首尾帧组合或参考素材生成 2K 视频。
除了文生视频和首帧图生视频,该模型还支持首尾关键帧转场,以及多模态参考素材生成视频:在单次请求中,可以使用参考图像、视频或音频作为生成条件。参考素材模式与关键帧模式不能同时使用。输出格式为 2K 分辨率的 mp4,时长为 5 至 15 秒,支持 21:9、16:9、4:3、1:1、3:4 和 9:16 等宽高比,也可以自适应所提供图像的宽高比。
要使用 MiniMax H3,请在 AI SDK 中将 model 设置为 minimax/minimax-h3:
1import { experimental_generateVideo as generateVideo } from 'ai';2
3const { videos } = await generateVideo({4 model: 'minimax/minimax-h3',5 prompt: 'A white kitten chases a butterfly across a sunlit garden.',6 aspectRatio: '16:9',7 duration: 5,8 providerOptions: {9 minimax: {10 pollTimeoutMs: 600000,11 },12 },13});
使用 MiniMax H3 进行文生视频
将起始图像与 prompt 一同传入,模型会按照该图像的宽高比为其生成动画。
1import { experimental_generateVideo as generateVideo } from 'ai';2
3const { videos } = await generateVideo({4 model: 'minimax/minimax-h3',5 prompt: {6 image: firstFrameUrl,7 text: 'The camera slowly pulls back to reveal the full landscape.',8 },9 duration: 5,10});
使用图像作为该模型的起始帧。
提供参考图像、视频或音频作为源素材,并在 prompt 中按照它们的顺序逐一引用,以生成参考素材到视频的输出。
1import { experimental_generateVideo as generateVideo } from 'ai';2
3const { videos } = await generateVideo({4 model: 'minimax/minimax-h3',5 prompt: 'Keep the subject from Image 1 consistent while they walk through a sunlit garden.',6 duration: 5,7 inputReferences: [imageUrl],8});
使用参考图像和视频引导 MiniMax H3 的输出。
查看 AI Gateway 上的全部视频模型。在模型 playground 中试用 MiniMax H3。