FluxyAPIFluxyAPI
BlocksAI & Machine Learning

Mistral

Connect to Mistral AI's models.

Mistral Block

The Mistral Block provides direct integration with Mistral AI's powerful models, supporting both text generation and advanced conversational capabilities.

Configuration

FieldRequiredDescription
API KeyYour Mistral AI API key.
ModelThe Mistral model to use (e.g., mistral-large-latest).
User PromptThe text query for the model.
System PromptSystem instructions to guide the model's output.
Enable HistoryEnable to string together multi-turn interactions.

History Settings

If Enable History is active:

  • Storage Object Variable (Required): The object variable storing the conversation data.
  • Chat ID: Used to separate different user sessions.
  • Message Count: Defines how much context is sent.

Advanced Settings

Toggle Advanced Settings for model tuning:

  • Temperature (0 to 1): Adjusts creativity.
  • Max Output Tokens: Defines maximum response length.
  • Top P: Used for nucleus sampling.

Output Variable

Specify a Variable Name to store the result.

Success Payload

{
  "success": true,
  "chat_id": "chat_1234abc",
  "message": "The assistant's response...",
  "raw_response": {
    "id": "chatcmpl-123",
    "object": "chat.completion",
    "choices": [...]
  }
}

Error Payload

If an error occurs, the variable will be populated with:

{
  "error_key": "invalid_api_key",
  "error_message": "The provided API Key is invalid or expired."
}

Error Handling

  • API_KEY_MISSING / SECRET_ERROR — Missing or invalid API key.
  • MODEL_MISSING — No model was specified.
  • PROMPT_MISSING — The user prompt was empty.
  • HISTORY_VAR_MISSING — History was enabled but no storage object was provided.
  • RUNTIME_ERROR — An unexpected issue occurred during the API call.
  • invalid_api_key / insufficient_quota / rate_limit_exceeded / context_length_exceeded / model_not_found — Standard Mistral API errors.

On this page