docs.mistral.ai Open in urlscan Pro
2606:4700::6812:1798  Public Scan

Submitted URL: http://docs.mistral.ai/
Effective URL: https://docs.mistral.ai/
Submission: On February 09 via manual from FR — Scanned from FR

Form analysis 0 forms found in the DOM

Text Content

Skip to main content

PlatformDocsAPI
GitHubDiscord




 * Documentation
 * Introduction
 * Platform
 * Open-weight models
 * Self-deployment
 * Guides
 * How to contribute

 * 
 * Introduction

On this page


INTRODUCTION

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

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


WHERE TO START?


API ACCESS

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-tiny",
    "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.


RAW MODEL WEIGHTS

Raw model weights can be used in several ways:

 * For self-deployment, on cloud or on premise, using either TensorRT-LLM or
   vLLM, head on to Deployment
 * For research, head-on to our reference implementation repository,
 * For local deployment on consumer grade hardware, check out the llama.cpp
   project or Ollama.


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.

Next
overview
 * Where to start?
   * API Access
   * Raw model weights
 * Get Help
 * Contributing

Documentation
 * Documentation

Community
 * Discord
 * X
 * GitHub

Copyright © 2024 Mistral AI.