Skip to main content
Mistral provides API endpoints for its large language models. See their library of models here. We recommend experimenting to find the best-suited model for your use-case. Here are some general recommendations:
  • codestral model is good for code generation and editing.
  • mistral-large-latest model is good for most use-cases.
  • open-mistral-nemo is a free model that is good for most use-cases.
  • ministral-14b-2512 supports vision tasks such as OCR, document transcription, and image comparison.
Mistral has tier-based rate limits. See the tier docs.

Installation

Agno v3.0 requires mistralai>=2.0.0; the v1 compatibility layer was removed, and the agno[mistral] extra pins the floor. With a 1.x SDK installed, the import fails with the generic `mistralai` not installed message — upgrade the package rather than reinstalling it.

Authentication

Set your MISTRAL_API_KEY environment variable. Get your key from here.

Example

Use MistralChat with your Agent:
View more examples here.

Params

MistralChat is a subclass of the Model class and has access to the same params.