Skip to content

Configuring Codestral Models ​

This guide will help you set up and configure Mistral AI models in Flexpilot IDE for enhanced code completions. Follow our detailed configuration guide after obtaining your API credentials.

💝 Free Developer Access

Codestral models are available for free to developers. Sign up on the Mistral AI Console to get started.

🔗 Essential Links

Setup Guide ​

🔒 Security Warning

Keep your API keys confidential! Never commit them to version control or share in public repositories.

  1. Access the Mistral AI Console and authenticate/register
  2. Head to the Codestral Dashboard to retrieve your API key

Configuration Reference ​

Fine-tune these parameters in Flexpilot IDE for optimal performance:

⚙️ Configuration Reference
ParameterPurposeRecommended Value
API Base URLPrimary endpointhttps://codestral.mistral.ai/v1/fim
API KeyAuthentication tokenGenerated from Setup Guide
Model IDAI model selectioncodestral-latest
Max Output TokensResponse length limit500
Max Input TokensContext window size4000
TemperatureCreativity control (0-1)0.2 for precise code generation
Debounce WaitCompletion trigger delay200 milliseconds

💡 Optimization Tips

  • Maintain temperature between 0.1-0.3 for reliable code suggestions
  • For snappier completions, consider reducing Debounce Wait to 100ms

Next Steps ​

Set up the API credentials obtained from this page's instructions in the Flexpilot IDE to enable AI-powered code completions. For detailed guidance, refer to the Setup Guide.