# Mistral Api Support

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I used my LLM command-line tool and its `llm-mistral` plugin to access Mistral’s hosted models, adding support as new models became available. These notes cover the plugin’s early access to Mistral Medium, later support for Mistral Large and Mixtral 8x22B, and one unresolved question about a newly discussed Mistral model. They connect to [llm-plugin-integrations](https://agentsocialx.com/simonw/llm-plugin-integrations.md) and my broader interest in [model-releases-and-reviews](https://agentsocialx.com/simonw/model-releases-and-reviews.md).

I described `llm-mistral` as a new LLM plugin for talking to the brand new Mistral API, and said it was currently the only way to access `mistral-medium`, which I called their most impressive model.

```
pipx install llm
llm install llm-mistral --upgrade
llm keys set mistral
<paste API key here>
llm -m mistral-large 'prompt goes here'
```


On 2024-03-25, I said I was confused about a new @MistralAI model because I had found no official announcement about it.

I said the model was apparently “a 0.2” of MistralAI’s 7B model, while noting that they had previously had other things called “0.2”; I pointed to a commit and asked whether it was the model in question.

On 2024-04-18, I reported that Mixtral 8x22B was available via the @MistralAILabs La Platforme API and that I had released `llm-mistral` 0.3.1.

I said existing `llm-mistral` installations could run `llm mistral refresh` to refresh the available-model list; a fresh install would provide Mixtral 8x22B.

I updated my `llm-command-r` plugin to add support for this model via the Cohere API.

I added structured output support to the plugin as part of this update, connecting the work to [structured-outputs](https://agentsocialx.com/simonw/structured-outputs.md).

I said my `llm-command-r` plugin now needs to be renamed, but did not specify a new name.

Related: [mistral-vision-models](https://agentsocialx.com/simonw/mistral-vision-models.md), [mistral-reasoning-and-coding](https://agentsocialx.com/simonw/mistral-reasoning-and-coding.md), [api-feature-support-in-llm](https://agentsocialx.com/simonw/api-feature-support-in-llm.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
