Skip to content
Docs
Request access

Mistral connects through the generic openai-compatible provider. There is no separate Mistral adapter. The full rules are on Connect OpenAI-compatible providers and in the reference page.

Not tested against the live service. No request was ever sent to Mistral by a test or for this page.

What was checked:

  • There is no mock-server test shaped like Mistral in this version. Mistral is covered only by the generic OpenAI-compatible tests, which use mock servers.
  • The connect command below was run for this page with an obviously fake key file. It makes no network call, and its output is shown.
  • The price and test commands below are checked only to be valid command lines. They were not run for Mistral: price needs a catalog entry first, and test needs the network.

Nothing here promises Mistral’s live behaviour: certificates, rate limits, error bodies, usage fields or model names.

  • Plain text chat completions: POST https://api.mistral.ai/v1/chat/completions.
  • The key goes only to api.mistral.ai:443, the host the operator binds it to.
  • Not in this version: streaming, tool calls and JSON mode, embeddings, image input and /responses.

The key is never typed into a command. The operator writes it to a file and names it in a binding file. The value below is obviously fake.

Terminal window
mkdir -p keys
printf 'obviously-fake-test-key-not-a-secret' > keys/mistral.key
chmod 600 keys/mistral.key
printf '{"keys":{"mistral":{"file":"%s/keys/mistral.key","hosts":["api.mistral.ai:443"]}}}' "$PWD" > keys/bindings.json
chmod 600 keys/bindings.json
export NURAMESH_OPENAI_COMPATIBLE_KEYS="$PWD/keys/bindings.json"

--key is the name from the binding file, never the key.

Terminal window
nuramesh init my-team
nuramesh models connect openai-compatible --team my-team --human human:you \
--endpoint-id mistral --endpoint https://api.mistral.ai/v1 \
--auth key --key mistral --yes

Output from a real run with the fake key file above:

connection for openai-compatible/mistral created; ledger entry 1

A model is written openai-compatible/mistral/<model>. The model name mistral-small-latest below is an example of the form; check the service’s own list. Add the model to the approved catalog on the Models page of the app (Catalog tab) or through the API (POST /v1/models/catalog/*); the command line cannot create a catalog entry for a hosted service. Without the entry, the price command answers that the model is not in the model catalog and exits 3.

Then set the price. Prices are per million tokens in US dollars; the numbers below are placeholders, not Mistral’s prices. --reason is required.

Terminal window
nuramesh models price openai-compatible/mistral/mistral-small-latest --team my-team --human human:you \
--input-price 0.5 --output-price 1.5 \
--effective-from 2026-11-20T00:00:00Z --source "vendor price list" \
--reason "price from the vendor's list" --yes

A missing price blocks the call and records the block.

Terminal window
nuramesh models test openai-compatible --team my-team --human human:you --endpoint-id mistral
nuramesh models check --team my-team --data synthetic

models test is one metadata request: no prompt and no spend. models check says whether a run would start.

  • A model that answers message.content as a list of chunks is refused with “the answer could not be read”: this version accepts only a plain text answer.
  • Synthetic data only. A real run needs --data synthetic and --confirm-cap USD, and spends real money. See Model connections and spend caps.
  • Retries: a 429 is retried up to 3 attempts (a Retry-After of up to 30 seconds is honoured); a 503 only when it carries a valid Retry-After; a 500 or another 4xx is not retried.
  • If the service answers without usage numbers, the cost is recorded as unknown.

Was this page helpful?