mistral

mistral is a skill for Claude Code, Codex from ashish7802/awesome-api-skills. It costs 0 tokens per session (549 once invoked), scanned A, original, MIT.

An API for Mistral's language models, including models for conversation, code generation, and semantic search. Semantic search finds text by meaning rather than exact words, and the API also supports calling application-defined tools.

In plain words
What is it for?
Use it for chat, code completion, tool-assisted agents, and search systems that compare meaning in text.
Why use it?
It brings several language-model tasks behind one client library. Tool calling lets a model request functions such as looking up a stock price instead of only writing a reply.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for chat, code completion, tool-assisted agents, and search systems that compare meaning in text.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ashish7802/awesome-api-skills/mistral
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ashish7802/awesome-api-skills --skill mistral
Clone the repo
git clone --depth 1 https://github.com/ashish7802/awesome-api-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mistral

README.md
[![agentmods](https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/mistral/github.svg)](https://agentmods.dev/skills/ashish7802/awesome-api-skills/mistral)
Your own site
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/mistral"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/mistral/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mistral

Your own site · 80×15
<a href="https://agentmods.dev/skills/ashish7802/awesome-api-skills/mistral"><img src="https://agentmods.dev/badge/skills/ashish7802/awesome-api-skills/mistral.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00549
Opus 5 $0.00000 $0.00275
Sonnet 5 $0.00000 $0.00110
Haiku 4.5 $0.00000 $0.00055

Measured today against content hash 8506735afda9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

mistral scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mistral/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mistral AI API Skill

Overview

Mistral AI provides frontier open and commercial AI models, featuring mistral-large-latest, mistral-small-latest, codestral-latest for coding, and mistral-embed for semantic search.

Installation

npm install @mistralai/mistralai
pip install mistralai

Authentication & Client Setup

import { Mistral } from '@mistralai/mistralai';

const client = new Mistral({
  apiKey: process.env.MISTRAL_API_KEY,
});

Core API Operations

1. Chat Completion with Tool Calling

const response = await client.chat.complete({
  model: 'mistral-large-latest',
  messages: [
    { role: 'user', content: 'What is the stock price of AAPL?' },
  ],
  tools: [
    {
      type: 'function',
      function: {
        name: 'getStockPrice',
        description: 'Get the current stock price for a ticker',
        parameters: {
          type: 'object',
          properties: {
            ticker: { type: 'string' },
          },
          required: ['ticker'],
        },
      },
    },
  ],
  toolChoice: 'auto',
});

2. Code Generation (Codestral)

const codeCompletion = await client.chat.complete({
  model: 'codestral-latest',
  messages: [
    { role: 'system', content: 'You are an expert TypeScript developer.' },
    { role: 'user', content: 'Write a debounce function in TypeScript with type generics.' },
  ],
});

3. Generate Semantic Text Embeddings

const embeddings = await client.embeddings.create({
  model: 'mistral-embed',
  inputs: ['Document chunk 1', 'Document chunk 2'],
});

console.log(embeddings.data[0].embedding.length); // 1024

AI Pitfalls & Anti-Hallucination Guidelines

  • Codestral Endpoint Confusion: Codestral has dedicated API keys and rate limits when accessed via codestral.mistral.ai.
  • JSON Mode Requirement: When requesting JSON mode, the word "json" must explicitly appear in the prompt instructions.

Production Checklist

  • Structured JSON responses verified with Zod
  • Safe fallback for tool calls without infinite agent loops
  • Rate limits handled on embedding batch calls

Read the full file on GitHub · 82 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 82 lines · 0 tokens per session scan A 8506735afda9

Subscribe to this mod's changes

mistral is a skill published in the GitHub repository ashish7802/awesome-api-skills (13 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 549 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

Other skills, from other repositories