Skip to main content

Enable Mistral AI for AI grading

QuizMachine uses Mistral's Chat Completions API for advisory free-text/code grading and question review.

Keys are encrypted at rest. Fallback may send an answer to another selected provider and can incur charges.

Set up an API key

  1. Create a key in Mistral's API-key console.
  2. Confirm billing and access to the selected model.
  3. Use Test configuration before saving.

Endpoint and model

Default endpoint: https://api.mistral.ai/v1/chat/completions. Default model: mistral-small-latest. Choose another current Chat Completions model only after checking Mistral's model documentation.

This integration supports text/code grading and question review. Mistral is never sent a Diagram Upload question — QuizMachine declines it before any request leaves the server, until its multimodal contract is separately tested. If you have enabled further providers, the declined diagram is then offered to the next provider in priority order, so the diagram and answer can still be transmitted to that provider. Diagram Upload questions go to manual review only once no configured provider has graded them.

Rotation and troubleshooting

Create and test a replacement key before revoking the old key. HTTP 401 indicates a key or access problem; HTTP 429 indicates a rate or quota limit.

Reference: Mistral Chat Completions API.

Back to all Help pages