NAME
Langertha::Engine::Mistral - Mistral API
VERSION
version 0.303
SYNOPSIS
use Langertha::Engine::Mistral;
my $mistral = Langertha::Engine::Mistral->new(
api_key => $ENV{MISTRAL_API_KEY},
model => 'mistral-large-latest',
system_prompt => 'You are a helpful assistant',
temperature => 0.5,
);
print $mistral->simple_chat('Say something nice');
my $embedding = $mistral->embedding($content);
DESCRIPTION
Provides access to Mistral AI's models via their API. Composes Langertha::Role::OpenAICompatible with Mistral's endpoint (https://api.mistral.ai) and its OpenAPI spec.
Popular models: mistral-small-latest (default, fast), mistral-large-latest (most capable, 675B parameters), codestral-latest (code generation), devstral-latest (development workflows), pixtral-large-latest (vision). Supports chat, embeddings, and tool calling; transcription is not available.
Dynamic model listing via list_models(). Get your API key at https://docs.mistral.ai/getting-started/quickstart/ and set LANGERTHA_MISTRAL_API_KEY.
THIS API IS WORK IN PROGRESS
SEE ALSO
https://status.mistral.ai/ - Mistral service status
https://mistral.ai/models - Official Mistral models documentation
Langertha::Role::OpenAICompatible - OpenAI API format role
Langertha::Engine::DeepSeek - Another OpenAI-compatible engine
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/langertha/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de> https://raudss.us/
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.