Back to Ai

AI SDK - AssemblyAI Provider

packages/assemblyai/README.md

2.1.101.2 KB
Original Source

AI SDK - AssemblyAI Provider

The AssemblyAI provider for the AI SDK contains transcription model support for the AssemblyAI transcription API.

Setup

The AssemblyAI provider is available in the @ai-sdk/assemblyai module. You can install it with

bash
npm i @ai-sdk/assemblyai

Skill for Coding Agents

If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:

shell
npx skills add vercel/ai

Provider Instance

You can import the default provider instance assemblyai from @ai-sdk/assemblyai:

ts
import { assemblyai } from '@ai-sdk/assemblyai';

Example

ts
import { assemblyai } from '@ai-sdk/assemblyai';
import { experimental_transcribe as transcribe } from 'ai';

const { text } = await transcribe({
  model: assemblyai.transcription('best'),
  audio: new URL(
    'https://github.com/vercel/ai/raw/refs/heads/main/examples/ai-functions/data/galileo.mp3',
  ),
});

Documentation

Please check out the AssemblyAI provider documentation for more information.