Skip to main content

mistral-api

Enables interaction with the Mistral AI API for advanced text generation, function calling, and code creation.

Install this skill

or
59/100

Security score

The mistral-api skill was audited on Mar 1, 2026 and we found 9 security issues across 3 threat categories, including 2 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

high line 41

Curl to non-GitHub URL

SourceSKILL.md
41- CLI command via curl: `curl -X POST -H "Authorization: Bearer $MISTRAL_API_KEY" -H "Content-Type: application/json" -d '{"model":"mistral-medium","messages":[{"role":"user","content":"Write a Python
high line 65

Curl to non-GitHub URL

SourceSKILL.md
652. Run curl command: `curl -X POST -H "Authorization: Bearer $MISTRAL_API_KEY" -H "Content-Type: application/json" -d '{"model": "mistral-medium", "messages": [{"role": "user", "content": "Write a fun
medium line 45

Access to .env file

SourceSKILL.md
45- **Config Format**: Use JSON for all requests; store API key in `.env` files as `MISTRAL_API_KEY=sk-mistral-...`.
low line 35

External URL reference

SourceSKILL.md
35To use this skill, set up authentication with your Mistral API key via environment variable (e.g., `export MISTRAL_API_KEY=your_key`). Then, make HTTP requests to the base endpoint `https://api.mistra
low line 38

External URL reference

SourceSKILL.md
38- **Endpoint for Chat Completions**: POST `https://api.mistral.ai/v1/chat/completions`
low line 41

External URL reference

SourceSKILL.md
41- CLI command via curl: `curl -X POST -H "Authorization: Bearer $MISTRAL_API_KEY" -H "Content-Type: application/json" -d '{"model":"mistral-medium","messages":[{"role":"user","content":"Write a Python
low line 42

External URL reference

SourceSKILL.md
42- **Endpoint for Embeddings**: POST `https://api.mistral.ai/v1/embeddings`
low line 65

External URL reference

SourceSKILL.md
652. Run curl command: `curl -X POST -H "Authorization: Bearer $MISTRAL_API_KEY" -H "Content-Type: application/json" -d '{"model": "mistral-medium", "messages": [{"role": "user", "content": "Write a fun
low line 71

External URL reference

SourceSKILL.md
712. Send request: In code, use Python: `response = requests.post('https://api.mistral.ai/v1/chat/completions', headers={'Authorization': f'Bearer {os.environ["MISTRAL_API_KEY"]}'}, json={'model': 'mist
Scanned on Mar 1, 2026
View Security Dashboard
Installation guide →