mistralM

Docs

sideBar

Manage workspaces and API keys

Create isolated workspaces, generate API keys, and set usage limits for your team. ~10 minutes.
flagThis step takes ~10 minutes to complete.

Organize your Mistral account with workspaces, API keys, and spending controls.

  • Workspaces isolate API keys and usage metrics by team or environment
  • API keys are scoped to a workspace for tracking and access control
  • Spending limits prevent unexpected costs per workspace

Time to complete: ~10 minutes

Prerequisites

  • Admin role in your Mistral organization
  • Billing activated (API keys are inactive until a payment method is on file)

Step 1: Create a workspace

Workspaces isolate API keys, usage metrics, and billing. Use them to separate development from production, or to track usage by team.

Create at least two workspaces (development and production) so test traffic doesn't consume production quotas.

Step 2: Add members to the workspace

Control who has access to each workspace independently.

  • 1.

    Open the workspace you just created.
  • 2.

    Click Add members.
  • 3.

    Select team members from your organization.
  • 4.

    Assign their workspace role:

Role

Permissions

AdminFull workspace control: manage members, keys, settings, view usage
MemberUse API keys
  • 1.

    Click Confirm.

Step 3: Generate API keys

Each workspace has its own API keys. We track and bill usage per workspace.

  • 1.

    Open Studio › API keysarrowUpRight.
  • 2.

    Select the target workspace from the workspace dropdown.
  • 3.

    Click Create new key.
  • 4.

    Name the key descriptively: for example, prod-backend or staging-chatbot.
  • 5.

    Copy the key immediately. It's shown only once.
# Set the key as an environment variable
export MISTRAL_API_KEY="your-key-here"
exclamationMark

Never commit API keys to source control. Use environment variables or a secrets manager to store them.

Step 4: Set usage limits

Prevent unexpected costs by setting monthly spending limits per workspace.

Monitor real-time usage from the billing dashboard to spot trends before hitting limits.

Verify

Your workspace setup is complete if:

  • The workspace appears in the workspace dropdown in StudioarrowUpRight
  • Team members added to the workspace can see it in their console
  • API keys generated for the workspace return successful responses
  • Usage appears under the correct workspace in the billing dashboard

Test a key with a quick API call:

curl https://api.mistral.ai/v1/models \
  -H "Authorization: Bearer $MISTRAL_API_KEY"

A successful response returns a JSON list of available models.

Next quickstarts

Keep going with the next step.
Create your organization
mCop

Create your organization

Create your organization, configure security policies, and invite your first team member in ~15 minutes.

clock

15 min to complete

chevronRight
Configure SSO and domain verification
mCop

Configure SSO and domain verification

Verify your domain and set up SAML SSO so team members sign in with your corporate identity provider. ~20 minutes.

clock

20 min to complete

chevronRight

Going further

All admin quickstarts
illustrationRocket

All admin quickstarts

Create your organization, configure SSO, and set up Workspaces and API keys in the Admin Panel, step by step.