Skip to main content

Introduction

Mistral AI currently provides three types of access to Large Language Models:

  • An API providing pay-as-you-go access to our latest models,
  • Cloud-based deployments,
  • Open source models available under the Apache 2.0 License, available on Hugging Face or directly from the documentation.

Where to start?

API Access with the Mistral AI Platform

Our API is currently available through our platform. You need to subscribe and enter your payment details to enable your API keys. After a few moments, you will be able to use our chat endpoint:

curl --location "https://api.mistral.ai/v1/chat/completions" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header "Authorization: Bearer $MISTRAL_API_KEY" \
--data '{
"model": "mistral-large-latest",
"messages": [{"role": "user", "content": "Who is the most renowned French painter?"}]
}'

Or our embeddings endpoint:

curl --location "https://api.mistral.ai/v1/embeddings" \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header "Authorization: Bearer $MISTRAL_API_KEY" \
--data '{
"model": "mistral-embed",
"input": ["Embed this sentence.", "As well as this one."]
}'

For a full description of the models offered on the API, head on to the model documentation.

For more examples on how to use our platform, head on to our platform documentation.

Cloud-based deployments

For a comprehensive list of options to deploy and consume Mistral AI models on the cloud, head on to the cloud deployment section.

Raw model weights

Raw model weights can be used in several ways:

Get Help

Join our Discord community to discuss our models and talk to our engineers. Alternatively, reach out to our business team if you have enterprise needs, want more information about our products or if there are missing features you would like us to add.

Contributing

Mistral AI is committed to open source software development and welcomes external contributions. Please head on to our contribution guideline.