November 20252 min readJohan Bretonneau

How to Get Your Mistral AI API Key
Console, key, models - in under 5 minutes

Step-by-step guide to get your Mistral AI API key, access Large 2, Small 3.1, Codestral and Pixtral models, and connect it to HiWay2LLM.

Mistral AI is a French company founded in 2023. Their models are consistently competitive - especially for French and European languages, code generation, and multimodal tasks. Here's how to get your API key and put it to work.

Prerequisites

  • A console.mistral.ai account (free to sign up)
  • A payment method to activate API access (no free tier, but pay-as-you-go pricing is very competitive)

Get your key in 3 steps

1. Sign in to the Mistral console

Go to console.mistral.ai and sign in with Google or email.

2. Open "API Keys"

In the left sidebar, click API Keys. You'll see a list of existing keys - empty for a new account.

3. Create a new key

Click Create new key, give it a descriptive name (e.g. hiway2llm-prod), then click Create. The key is shown exactly once - copy it immediately and store it somewhere safe. Mistral will never show it again.

Models unlocked with your key

Once your key is active, you get access to the full Mistral lineup:

  • Mistral Large 2 - flagship model, strong reasoning and multilingual performance
  • Mistral Small 3.1 - exceptional value at $0.07/Mtok input
  • Mistral Nemo - open-weight 12B model, punches well above its size
  • Codestral - code-specialized, supports over 80 programming languages
  • Pixtral - multimodal vision model for image analysis

For embeddings: mistral-embed (1024 dimensions) is particularly strong on French and multilingual European content - a concrete advantage if your app processes non-English text.

Pricing

Mistral has no free tier, but pricing is among the most competitive available:

  • Mistral Small 3.1: $0.07/Mtok input, $0.22/Mtok output
  • Mistral Large 2: $2/Mtok input, $6/Mtok output
  • mistral-embed: $0.1/Mtok

Pure pay-as-you-go. No minimum commitment.

Security tips

A few non-negotiable rules:

  • Never hardcode your key in source code or commit it to a Git repository
  • Always use environment variables (.env files)
  • Create one key per environment (dev, staging, prod) to contain exposure
  • If a key is compromised, revoke it immediately from the Mistral console

Why Mistral leads on French and European languages

Mistral trained its models with a significant share of French and European-language data. In practice, this means better handling of idioms, cultural context, and nuance - areas where models trained predominantly on English often miss the mark.

For embeddings specifically, mistral-embed produces noticeably better vector representations for French text than most English-centric alternatives.

Connect your key to HiWay2LLM

Once you have your key, you can bring it to HiWay2LLM in seconds. All your Mistral calls route through a unified endpoint with observability, cost control, and intelligent routing built in.

Bring my key to HiWay2LLM →

Connect in 30 seconds

Share

Was this useful?

Comments

Be the first to comment.