mistral_chat_completion
Generate AI chat responses with Mistral models by submitting a prompt or message history. Control output with temperature, top_p, and max_tokens settings.
Instructions
Run a chat completion with a Mistral AI model (mistral-small, mistral-medium, mistral-large, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Mistral API key | |
| model | No | Model ID (default: mistral-small-latest) | |
| prompt | No | Single user message (alternative to messages) | |
| system_prompt | No | ||
| messages | No | JSON array of {role, content} messages | |
| max_tokens | No | ||
| temperature | No | ||
| top_p | No |