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

@pikku/ai-deepinfra

v0.12.4

Published

DeepInfra transcription and speech models for the Vercel AI SDK

Readme

@pikku/ai-deepinfra

DeepInfra transcription and speech models for the Vercel AI SDK.

@ai-sdk/deepinfra covers DeepInfra's language, embedding and image models. It does not cover audio, and @ai-sdk/openai-compatible cannot be pointed at DeepInfra's audio endpoints either: they are not OpenAI-shaped. Everything at DeepInfra — chat, ASR, TTS alike — is POST /v1/inference/{model}, and ASR takes its upload under a part named audio rather than OpenAI's file. This package is that gap, and nothing else.

Install

npm install @pikku/ai-deepinfra

Usage

import { createDeepInfra } from '@pikku/ai-deepinfra'
import { VercelAgentRunner } from '@pikku/ai-vercel'

const agentRunner = new VercelAgentRunner({
  deepinfra: createDeepInfra(), // reads DEEPINFRA_API_KEY
})

Then name models the way the runner parses them — provider, slash, model id:

voiceInput({ model: 'deepinfra/openai/whisper-large-v3-turbo' })
voiceOutput({ model: 'deepinfra/hexgrad/Kokoro-82M' })

The runner splits on the first slash only, so the rest reaches DeepInfra intact. The openai/ in that id is the org that published the weights on HuggingFace, not the vendor serving them — this is Whisper running on DeepInfra, with no OpenAI account involved.

For language models, keep @ai-sdk/deepinfra alongside this one; the two are independent.

Options

createDeepInfra({
  apiKey, // defaults to process.env.DEEPINFRA_API_KEY
  baseURL, // defaults to https://api.deepinfra.com/v1/inference
  headers, // merged into every request
  fetch, // injectable, so tests need neither a key nor a network
})

The key is read per request rather than at construction, so a provider can be built before the environment is loaded — the error lands on the call that needed it.

Per-model knobs ride through providerOptions:

await transcribe({
  model: deepinfra.transcription('openai/whisper-large-v3-turbo'),
  audio,
  providerOptions: { deepinfra: { chunk_level: 'word' } },
})

Models

Anything DeepInfra serves; the model id is opaque to this package. Current audio options include:

| Model | Kind | Price | | ------------------------------- | ---- | ------------- | | openai/whisper-large-v3-turbo | ASR | $0.00020/min | | openai/whisper-large-v3 | ASR | $0.00045/min | | Qwen/Qwen3-ASR-0.6B | ASR | $0.00020/min | | Voxtral-Mini-3B | ASR | $0.00100/min | | hexgrad/Kokoro-82M | TTS | $0.80/M chars |

DeepInfra serves streaming-capable ASR models in batch mode only, so their streaming modes are not reachable through this API.

Docs

https://pikku.dev/docs