UNPKG

@ai-sdk/mistral

Version:

The **[Mistral provider](https://ai-sdk.dev/providers/ai-sdk-providers/mistral)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model, embedding model, and speech model support for Mistral APIs.

17 lines (13 loc) 448 B
import { z } from 'zod/v4'; export type MistralSpeechModelId = 'voxtral-mini-tts-2603' | (string & {}); export const mistralSpeechModelOptions = z.object({ /** * Base64-encoded reference audio for one-off voice cloning. * * When provided, this takes precedence over the standard `voice` option. */ refAudio: z.string().min(1).optional(), }); export type MistralSpeechModelOptions = z.infer< typeof mistralSpeechModelOptions >;