Skip to main content
The Magic Hour provider supports AI SDK v7 image generation and experimental video generation, including text-to-video and image-to-video. It uses the public API and handles uploads, asynchronous completion, and output downloads.
The provider is distributed as a GitHub-hosted package archive. npm publication remains pending.

Install

Requires Node.js 22 or newer. Version 0.1.1 was checked with ai@7.0.148 and @ai-sdk/provider@4.0.31. Video APIs are experimental; retest before upgrading. The GitHub release includes the package checksum. The previous version 0.1.0 archive remains available and uses the old import name, @magichour/ai-sdk-provider.

Provider source and installation

Build the package, run the example, and review supported models and recovery behavior.
Generations consume Magic Hour credits. Persist the project ID in onProjectCreated before waiting. If waiting fails, retrieve the existing project instead of submitting another generation. See the source guide for video examples, supported options, and compatibility versions.