Skip to main content

Mistral Provider

Use Mistral AI’s models including Mistral Large and Codestral.

Environment Variables

export MISTRAL_API_KEY=...

Supported Modalities

ModalitySupported
Text/Chat
Embeddings
Tools

Quick Start

import { Agent } from 'praisonai';

const agent = new Agent({
  name: 'MistralAgent',
  instructions: 'You are a helpful assistant.',
  llm: 'mistral/mistral-large-latest'
});

const response = await agent.chat('Hello!');

Available Models

ModelDescription
mistral-large-latestMost capable
mistral-medium-latestBalanced
mistral-small-latestFast
codestral-latestCode generation