npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@muapi/ai-sdk-provider

v0.1.0

Published

MuAPI provider for the Vercel AI SDK — image and video generation with 50+ models

Readme

@muapi/ai-sdk-provider

MuAPI provider for the Vercel AI SDK — image and video generation with 50+ models including Flux, Veo3, Kling, Wan, Seedance, Midjourney, and more.

Installation

npm install @muapi/ai-sdk-provider
# or
pnpm add @muapi/ai-sdk-provider
# or
yarn add @muapi/ai-sdk-provider

Setup

Get your API key from muapi.ai/dashboard/api-keys.

import { createMuapi } from '@muapi/ai-sdk-provider';

const muapi = createMuapi({
  apiKey: process.env.MUAPI_API_KEY,
});

Or use the default singleton (reads MUAPI_API_KEY from env):

import { muapi } from '@muapi/ai-sdk-provider';

Image Generation

import { muapi } from '@muapi/ai-sdk-provider';
import { generateImage } from 'ai';

const { images } = await generateImage({
  model: muapi.image('flux-schnell'),
  prompt: 'a sunset over the ocean, photorealistic',
});

console.log(images[0].url); // output URL

Available image models

| Model ID | Description | |----------|-------------| | flux-schnell | Flux Schnell — fast, high quality | | flux-dev | Flux Dev | | flux-kontext-dev / flux-kontext-pro / flux-kontext-max | Flux Kontext (text-to-image) | | hidream-fast / hidream-dev / hidream-full | HiDream | | midjourney / midjourney-v7 / midjourney-v8 | Midjourney | | gpt4o | GPT-4o image generation | | gpt-image-2 | GPT Image 2 | | imagen4 / imagen4-fast / imagen4-ultra | Google Imagen 4 | | seedream / seedream-5 | Seedream | | wan2.1 / wan2.5 / wan2.6 | Wan | | qwen / qwen-2 / qwen-2-pro | Qwen | | reve | Reve | | ideogram | Ideogram v3 | | hunyuan | Hunyuan |

Video Generation

import { muapi } from '@muapi/ai-sdk-provider';
import { experimental_generateVideo as generateVideo } from 'ai';

const { videos } = await generateVideo({
  model: muapi.video('veo3-fast'),
  prompt: 'a timelapse of clouds moving over mountains',
});

console.log(videos[0].url); // MP4 URL

Available video models

| Model ID | Description | |----------|-------------| | veo3 / veo3-fast / veo3.1 / veo4 | Google Veo | | kling-master / kling-v2.5-pro / kling-v3-pro | Kling | | wan2.1 / wan2.2 / wan2.5 / wan2.6 / wan2.7 | Wan | | seedance-pro / seedance-pro-fast | Seedance | | runway | Runway | | pixverse / pixverse-v5 / pixverse-v6 | Pixverse | | sora / sora-2 | OpenAI Sora | | hunyuan | Hunyuan | | vidu / vidu-q2-pro / vidu-q3-pro | Vidu |

Image-to-Video

const { videos } = await generateVideo({
  model: muapi.imageToVideo('kling-master'),
  prompt: 'zoom in slowly',
  providerOptions: {
    muapi: { image_url: 'https://example.com/image.jpg' },
  },
});

Provider options

Pass extra model-specific parameters via providerOptions.muapi:

const { images } = await generateImage({
  model: muapi.image('flux-dev'),
  prompt: 'a cat',
  providerOptions: {
    muapi: {
      width: 1024,
      height: 768,
      num_inference_steps: 28,
    },
  },
});

License

MIT