Prompting Mistral
Select general, coding, document or audio workflows and keep the task contract explicit.
Model selection
| Model or service | Use case | Model ID or access |
|---|---|---|
| Mistral Large 4 | General multimodal work | mistral-large-4-0 |
| Mistral Small 4 | Efficient reasoning and coding | mistral-small-2603 |
| Codestral | Code completion | codestral-2508 |
| OCR 4.1 | Document text and structure | mistral-ocr-4-1 |
| Voxtral | Transcription and speech | Model catalog |
Which model to choose
Route document parsing to OCR and transcription to the audio family. For ordinary text tasks, compare the general models on quality and task latency.
Using the chat or local app
State whether the deliverable is a response, a document or a repository change. Supply the relevant source and the output structure the next user will need.
Using the API
Select the exact model from Studio's catalog. Put stable behavior in a system message and task material in a user message. Check schema and tool support on the chosen model.
POST https://api.mistral.ai/v1/chat/completions
{
"model": "mistral-large-4-0",
"messages": [
{
"role": "system",
"content": "Use only supplied facts."
},
{
"role": "user",
"content": "Prepare a handover from {{notes}}."
}
]
}Prompting advice
- Use delimiters around material that contains its own instructions.
- Test the output on the downstream document or parser.
- Record a dated model ID for comparisons. Route OCR to its document-processing endpoint and keep it separate from a text chat request.
Example prompt template
Turn {{notes}} into a handover. Use sections for completed work, open issues and next actions. Give an owner only where the notes name one.