Mistral AI is a French artificial intelligence company focused on developing and providing large language models (LLMs). They emphasize open-source principles, making their models accessible and customizable for various applications. Mistral AI offers a range of models with varying sizes and capabilities, catering to different user needs. The company has gained significant attention and funding due to its commitment to transparency and collaboration within the AI community.
mistralai
const { LLMInterface } = require('llm-interface');
LLMInterface.setApiKey({'mistralai': process.env.MISTRALAI_API_KEY});
async function main() {
try {
const response = await LLMInterface.sendMessage('mistralai', 'Explain the importance of low latency LLMs.');
console.log(response.results);
} catch (error) {
console.error(error);
throw error;
}
}
main();
The following model aliases are provided for this provider.
default
: mistral-large-latestlarge
: mistral-large-latestsmall
: mistral-small-latestagent
: mistral-large-latest
default
: mistral-embedlarge
: mistral-embedsmall
: mistral-embed
The following parameters can be passed through options
.
max_tokens
: Details not available, please refer to the LLM provider documentation.random_seed
: Details not available, please refer to the LLM provider documentation.response_format
: Details not available, please refer to the LLM provider documentation.safe_prompt
: Details not available, please refer to the LLM provider documentation.stream
: Details not available, please refer to the LLM provider documentation.temperature
: Details not available, please refer to the LLM provider documentation.top_p
: Details not available, please refer to the LLM provider documentation.
- Native JSON Mode
- Streaming
- Embeddings
Commercial with Free Trial: The MistralAI API is a commercial product but offers a $5.00 credit to get started. No credit card is required initially.
To get an API key, first create a Mistral AI account, then visit the link below.
Mistral AI documentation is available here.