Activate Studio and generate an API key

Set up your StudioStudio account, activate the free Experiment plan, and create an API key you can use to call Mistral models.

  • Experiment plan: free API access with no credit card required
  • Workspace-scoped keys: API keys are tied to a workspace for usage tracking and access control
  • Secure key management: set expiration dates and rotate keys regularly

By the end you will have a working API key ready to use in your first request.

Time to complete: ~10 minutes

Prerequisites

Prerequisites

  • A Mistral account.
  • A phone number for verification (one phone number per Experiment plan).
Step 1: Activate the Experiment plan

Step 1: Activate the Experiment plan

The Experiment plan gives you free access to the Mistral API. No credit card is required.

  1. Go to the AdminSubscriptions page.
  2. Click Experiment for free.

Click Experiment for free to start your plan

  1. Review the plan details, read and accept the Terms of Service and Privacy Policy, then click Subscribe.
  2. Verify your phone number when prompted.

You now have an active Experiment plan. You can upgrade to the Scale plan at any time for higher rate limits, frontier model access, and fine-tuning.

warning

Mistral may use Experiment plan requests to improve its models. Review the data training policy for details.

Step 2: Create a workspace

Step 2: Create a workspace

Workspaces organize your API keys, usage reports, and team access. Each API key belongs to a specific workspace.

  1. Open the StudioStudio console.
  2. Navigate to Workspaces in the left sidebar.
  3. Click Create workspace.
  4. Enter a name for the workspace (for example, "Development" or "Production").
  5. Click Create.
Step 3: Generate an API key

Step 3: Generate an API key

  1. Open your workspace settings and select the API Keys tab.
  2. Click Create new key.

Click Create new key

  1. Add a Name to identify the key (for example, "First test key").
  2. Set an Expiration date. Regular rotation improves security.

Configure the API key with optional name and expiration date

  1. Click Create new key.
  2. Copy the key immediately and store it in a secure location (password manager or secrets vault).
warning

The full key appears only once. You cannot retrieve it after closing the confirmation dialog.

Verify

Verify

You have completed the setup:

  1. Your Experiment plan is active.
  2. You have a workspace.
  3. You have an API key stored securely.

Test the key with a quick curl request:

curl https://api.mistral.ai/v1/chat/completions \
  -H "Authorization: Bearer $MISTRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mistral-small-latest",
    "messages": [{"role": "user", "content": "Hello, Mistral!"}]
  }'

A successful response confirms your key is working.

What's next

What's next