Connect to Mistral AI for chat, embeddings, FIM and agent completions, content moderation and classification, OCR, plus file, fine-tuning-job, batch-job, and model management.
| Action | Description | Parameters | Returns |
|---|---|---|---|
agents_completion | Create an agent completion | agent_id, messages [max_tokens, tools, response_format] | AgentsCompletion |
archive_model | Archive a fine-tuned model | model_id | ArchiveModelResult |
cancel_batch_job ⚠ | Cancel a batch job | job_id | BatchJob |
cancel_finetuning_job ⚠ | Cancel a fine-tuning job | job_id | FineTuningJob |
chat_completion | Create a chat completion | model, messages [temperature, max_tokens, top_p] | ChatCompletion |
chat_moderations | Run content moderation on a conversation | model, inputs | ModerationResult |
classifications | Classify text with a classifier model | model, input | ClassificationResult |
create_batch_job | Create a batch job | endpoint [input_files, requests, model, metadata, timeout_hours] | BatchJob |
create_finetuning_job | Create a fine-tuning job | model, hyperparameters [training_files, validation_files, suffix, auto_start] | FineTuningJob |
delete_batch_job ⚠ | Delete a batch job | job_id | BatchJobDeleted |
delete_file ⚠ | Delete an uploaded file | file_id | FileDeleted |
delete_model ⚠ | Delete a fine-tuned model | model_id | ModelDeleted |
embeddings | Create text embeddings | model, input | Embedding |
fim_completion | Create a fill-in-the-middle (FIM) code completion | model, prompt [suffix, max_tokens] | FIMCompletion |
get_batch_job | Get a batch job by ID | job_id | BatchJob |
get_file | Get file metadata by ID | file_id | MistralFile |
get_file_content | Download file content by ID | file_id | bytes |
get_file_signed_url | Get a temporary signed download URL for a file | file_id [expiry] | FileSignedURL |
get_finetuning_job | Get a fine-tuning job by ID | job_id | FineTuningJob |
get_model | Get a model by ID | model_id | MistralModel |
list_batch_jobs | List batch jobs | [page, page_size, model, status] | list |
list_files | List uploaded files | [page, page_size, purpose] | list |
list_finetuning_jobs | List fine-tuning jobs | [page, page_size, model, status] | list |
list_models | List available models | — | list |
moderations | Run content moderation on text | model, input | ModerationResult |
ocr_process | Run OCR on a document | model, document [pages, include_image_base64, image_limit, document_annotation_format] | OCRResult |
start_finetuning_job | Start a validated fine-tuning job | job_id | FineTuningJob |
unarchive_model | Unarchive a fine-tuned model | model_id | ArchiveModelResult |
update_finetuned_model | Update a fine-tuned model's name or description | model_id [name, description] | MistralModel |
upload_file | Upload a file | file_content, purpose [filename] | MistralFile |
Full schema explorer, code generation, and live API testing