Back to Ai

AI SDK - LMNT Provider

packages/lmnt/README.md

2.1.101.0 KB
Original Source

AI SDK - LMNT Provider

The LMNT provider for the AI SDK contains language model support for the LMNT API.

Setup

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

bash
npm i @ai-sdk/lmnt

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 lmnt from @ai-sdk/lmnt:

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

Example

ts
import { lmnt } from '@ai-sdk/lmnt';
import { experimental_generateSpeech as generateSpeech } from 'ai';

const result = await generateSpeech({
  model: lmnt.speech('aurora'),
  text: 'Hello, world!',
});

Documentation

Please check out the LMNT provider documentation for more information.