
Mistral AI, a European-based AI company, offers several cutting-edge large language models (LLMs).
To leverage any of them, you can access and use Mistral AI's APIs.
The first step in using any of their endpoints is generating your API key. Weâll help you do just that by walking you through the 5 easy steps you can take.
From Mistral AIâs homepage, youâll need to click on the âLog Inâ button.

From there, youâll either need to sign in or create an account.

â
{{this-blog-only-cta}}
If youâre creating an account, youâll need to create a workspace, which involves giving it a name, clarifying whether itâs only for a single user or a team, and accepting Mistral AI's terms and conditions.

Under the API section on the left-hand side, you should see an âAPI Keysâ button. Go ahead and click this.

Youâll now see an option to create a new key.Â

Once you select this, youâll be asked to assign a name and expiration date to the key.

Related: A guide to using an AI connector
The key would now be fully visible. You should go ahead and copy it as it wonât be shown again

Before building to their endpoints, itâs worth familiarizing yourself with the following:
Mistral AIâs API costs depend on factors like the model you want to access, whether you use the batch API, and the number of tokens you need to consume.Â
For example, here are their costs for some of their premier models:

Learn more about Mistral AIâs API pricing.
Each workspace has a preset rate limit, which depends on your usage tier. The rate limits are also set by either requests per second or tokens per minute or month.
For instance, for each model, you may be able to make 1 request per second or consume either 500,000 tokens per minute or 1,000,000 tokens per month.

â
Learn more about Mistral AIâs rate limits.
You can come across a wide range of errors; here are just a few you might run into:
Merge Gateway is a single API and control plane for running LLM traffic in production, with built-in routing, spend controls, and request-level visibility.

It offers:
Try Merge Gateway for free today!
Dynamically route each request to the best-fit model (including Mistral AIâs models) to reduce spend without compromising performance via Merge Gateway.