MorseSign inOpen Morse

Mistral API key, where to get one and how to call Mistral models with a Morse key

The Morse teamPublished Facts checked 6 min read

A Mistral API key comes from Mistral AI's own platform: you sign in to Mistral AI Studio, open API Keys, and create one, as Mistral's quickstart for a first API key walks through. That key works on Mistral's API.

Three of Mistral's open-weight models also answer to a Morse key. One secret that starts with sk_morse_ calls Mistral Nemo, Mistral Small 3, and Mistral Small 3.2 through an OpenAI-compatible endpoint at https://inference.trymorse.ai/v1, next to the rest of the catalog. This guide covers that route: what the key does, how to make one, and a call we ran on December 4, 2026, following Morse's API docs.

What does an API key actually do?

It proves who is asking, so the server knows whose account to bill. Your code attaches the key to each request as a Bearer token in the Authorization header. The server looks it up, confirms the account is live, runs the model the request names, and counts the tokens against that account.

A request to a Mistral model on Morse needs three things, and only three:

  • A key of the form sk_morse_..., copied from the console when you make it.
  • The base URL https://inference.trymorse.ai/v1, which any client written for OpenAI's chat completions accepts as its base_url.
  • A model id, for example mistralai/mistral-nemo. Swap that string and the same code talks to a different model.

If you send requests the way Anthropic's SDK does, Morse reads the key from an x-api-key header too. Every key carries a short checksum at its end, which lets secret scanners spot one committed by mistake. A request with a missing, mistyped, or revoked key comes back 401 invalid_api_key.

How do I generate a key for Mistral models on Morse?

In the Morse console, in about a minute. The steps from the quickstart:

  1. Sign in at console.trymorse.ai. Your email has to be verified before you can make keys.
  2. Pick Create key, name it after the project or tool that will use it, and confirm with Create.
  3. Copy the secret before you close the dialog. Morse keeps only a hash, so the console can't show it to you again.
  4. Buy credits on the console's credits page. Calls draw from that balance, and an empty one answers 402 insufficient_balance.
  5. Store the key as an environment variable rather than in a source file:
export MORSE_API_KEY="sk_morse_..."

The code below reads it back from the environment. A key that lives there stays out of git history and pasted logs, and rotating it means changing one line in your shell profile.

How do you call Mistral Small 3.2 with the key?

Use the OpenAI SDK as it is: set base_url to Morse, pass the key from the environment, and name a Mistral model. This is the exact script we ran on December 4, 2026:

import os
import time

from openai import OpenAI

client = OpenAI(
    base_url="https://inference.trymorse.ai/v1",
    api_key=os.environ["MORSE_API_KEY"],
)

start = time.monotonic()
reply = client.chat.completions.create(
    model="mistralai/mistral-small-3.2-24b-instruct",
    max_tokens=150,
    temperature=0.2,
    messages=[{
        "role": "user",
        "content": "In two sentences, what is an indicator of compromise in incident response?",
    }],
)
print(round(time.monotonic() - start, 2), "s")
print(reply.usage)
print(reply.choices[0].message.content)

The answer arrived 2.29 seconds after the request left our machine. Usage showed 17 prompt tokens and 63 completion tokens, and the reply finished on its own, well under the 150-token cap. Here it is in full:

An indicator of compromise (IOC) is evidence that suggests a system or network has been breached, such as unusual file changes, unauthorized access, or malicious IP addresses. In incident response, IOCs help identify, contain, and mitigate threats by providing actionable intelligence for detection and remediation.

Mistral Small 3.2 has no reasoning mode, so there's no effort setting to choose and every token is answer. Treat this as a smoke test that your key, base URL, and model id line up, not as a measure of the model. For a longer example with a JSON schema, see our Mistral Nemo guide.

Which Mistral models answer to a Morse key?

Three, and the key needs no per-model setup. All three are Mistral's stock releases, served with the weights Mistral published and no changes to how they respond.

ModelIdContextReadsPrice
Mistral Small 3.2mistralai/mistral-small-3.2-24b-instruct128K tokenstext and images$0.10 per million input tokens and $0.30 per million output tokens
Mistral Small 3 2501mistralai/mistral-small-24b-instruct-250132K tokenstext$0.10 per million input tokens and $0.30 per million output tokens
Mistral Nemomistralai/mistral-nemo128K tokenstext$0.0363 per million input tokens and $0.0375 per million output tokens

How to choose between them:

  • Mistral Small 3.2 is the one to start with. It's the June 2025 update of Mistral's 24B model, it accepts images alongside text, and it's the only one of the three that takes tools and tool_choice, so it fits agents that call functions.
  • Mistral Small 3 2501 is the January 2025 Mistral Small 3. Keep it for code and prompts already tuned against that release.
  • Mistral Nemo is the 12B model Mistral built with NVIDIA, the smallest of the three, suited to sorting, tagging, and extraction in bulk. The Mistral Nemo guide covers its card and benchmarks.

Every model has a page under /inference/models with its longest reply and the parameters it accepts. Call GET /v1/models with your key to get the live list of ids from a script.

Where do Mistral requests run?

On the Private tier, for all three Mistral ids. It runs under zero-data-retention terms, and the provider sees Morse as the customer, not you. Mistral releases these weights openly, which is what lets other hosts serve them.

The privacy tiers page explains what each tier covers.

How do I keep the key from leaking or overspending?

Handle it like a password: whoever holds it can run up your balance. Keep it on servers and your own machine, and never ship it inside a web page or a mobile app. Then give each key only the reach it needs.

  • A spend limit caps what one key can use, resetting daily, weekly, monthly, or never. Past it, calls get 402 key_spend_limit_reached, which stops a looping script or a stolen key early.
  • An expiry date ends a key on schedule, after which it returns 401 api_key_expired.
  • An IP allowlist of up to 100 addresses or ranges rejects calls from anywhere else with 403 ip_not_allowed.
  • A privacy floor makes every request from that key run at a chosen tier or higher.

GET /v1/key shows a key's name, prefix, limits, and remaining spend without costing anything or revealing the secret. An account can hold 25 active keys, so give each app its own. If one leaks, revoke it on the console's API keys page: it stops working immediately and can't be restored, so create its replacement first.

Can I use Mistral models in Cline, Aider, or other coding tools?

Yes, through any tool that lets you set an OpenAI-compatible base URL. Morse's docs carry a setup page for each, including Cline, Aider, and Cursor. Pick Mistral Small 3.2 there, since tool calling is what those agents depend on, and give the tool a key of its own with a spend limit.

Is there an uncensored model on the same key?

Yes. The Mistral models above stay stock, but the key also reaches Morse's uncensored catalog: abliterated models, whose refusal direction has been removed from the weights. Our abliterated model explainer shows how that's done. Two sit close to Mistral Small's 24B in size:

  • Qwen3.8 27B Uncensored, as qwen/qwen3.8-27b-uncensored, with the privacy tier TEE
  • Gemma 4 26B A4B Uncensored, as google/gemma-4-26b-a4b-uncensored, with the privacy tier TEE

Morse serves them for four kinds of work: cybersecurity, agent security, AI and ML research, and training data. Switching from a Mistral model to one of them is the same script with a different model string. The uncensored LLMs list has the whole set.

How do I get started?

Create a key on the Morse API page, export it, and run the script above against whichever Mistral model fits. To try the models in a chat window first, sign up for Morse and choose one from the model menu.

Common questions

Will a key from Mistral AI Studio work on Morse?

No. Each platform checks only the keys it issued. A Studio key belongs on Mistral's own API, and Morse accepts keys that begin with sk_morse_ at its own base URL.

Which Mistral model on Morse can call tools and read images?

Mistral Small 3.2. It takes tools and tool_choice, and reads text and images. Mistral Nemo and the January 2025 Mistral Small 3 take text only and suit plain chat completions and JSON output.

What does a 402 error on a new key mean?

The call had nothing to pay from. An account with no credits returns 402 insufficient_balance, and a key that has used up its own spend limit returns 402 key_spend_limit_reached. Top up in the console or raise that key's limit.

Do the Mistral models on Morse refuse less than Mistral's own?

No. They are Mistral's stock releases and behave as Mistral trained them. For work a stock model declines, the same key reaches Morse's abliterated models, listed at the end of this guide.

Ask what you actually want to ask.

80+ models, uncensored ones included, plus images. Every chat is encrypted and stays on your device. Free to start.

Start a private chat

Read next