Mistral 7B API

Access Mistral 7B from Mistral AI using Puter.js AI API.

Get Started

Model Card

Mistral 7B is Mistral's foundational 7.3B parameter open-source model under Apache 2.0, using sliding window attention and grouped-query attention. It outperforms Llama 2 13B on all benchmarks while being efficient enough for consumer hardware.

Context Window

N/A

tokens

Max Output

32,768

tokens

Input Cost

$0.25

per million tokens

Output Cost

$0.25

per million tokens

API Usage Example

Add Mistral 7B to your app with just a few lines of code.
No API keys, no backend, no configuration required.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum computing in simple terms", {
            model: "mistralai/open-mistral-7b"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Get started with Puter.js

Add Mistral 7B to your app without worrying about API keys or setup.

Read the Docs View Tutorials