Skip to content

Configuring Mistral AI Models

This guide walks you through setting up Mistral AI models in Flexpilot IDE. After getting your API credentials, you can configure the model following our configuration guide.

🎁 Free Getting Started

Mistral AI offers a generous free tier for developers to get started with their models. Choose codestral endpoint for free access for both chat and completions tasks.

🚀 Quick Links

Setup Guide

🔒 Security Warning

Protect your API keys! Never expose them in code repositories or public spaces.

  1. Visit Mistral AI Console and sign in/create account
  2. Choose your preferred endpoint:

TIP

Codestral endpoint is recommended for programming tasks, but it support only codestral-latest model.

Codestral Endpoint
Standard Endpoint
  • Go to API Keys
  • Click "Create new key"
  • Set a name and expiry
  • Save the key immediately (it won't be shown again)
  1. Review model documentation to select your model

Configuration Reference

Configure these parameters in Flexpilot IDE:

🔧 Configuration Reference
FieldDescriptionDefault/Recommended
API URLBase endpoint URLhttps://codestral.mistral.ai/v1
API KeyYour secret keyFrom setup process above
Model IDModel identifiercodestral-latest
TemperatureResponse creativity (0-1)0.2 for code generation
Tool CallingFunction calling supporttrue

🎯 Best Practices

  • Set temperature between 0.1-0.3 for consistent code generation
  • Use the Codestral endpoint for programming tasks

Next Steps

Set up the API credentials obtained from this page's instructions in the Flexpilot IDE to enable the Chat Model. For detailed guidance, refer to the Setup Guide.