Skip to main content
@lokutor/ai-sdk-provider (source) adds Lokutor to the Vercel AI SDK as a speech model and a transcription model. It targets AI SDK 7; it does not work with ai 6.
Set LOKUTOR_API_KEY in the environment, or create the provider yourself with createLokutor({ apiKey }).

Behaviour to know

  • Speech is always WAV. outputFormat, speed and instructions are not supported and produce a warning instead of being sent.
  • Transcription takes WAV audio only, as the speech-to-text API does.
  • Speaker labels and the language are set through providerOptions.lokutor.
  • Voices and languages are those of the Lokutor API.