Codestral (August 2025) API
Access Codestral (August 2025) from Mistral AI using Puter.js AI API.
Get Startedmistralai/codestral-2508
Model Card
Codestral is Mistral's cutting-edge code generation model supporting 80+ programming languages with optimized low-latency performance. It specializes in fill-in-the-middle completion, code correction, and test generation with 2.5x faster performance than its predecessor.
Context Window
N/A
tokens
Max Output
256,000
tokens
Input Cost
$0.3
per million tokens
Output Cost
$0.9
per million tokens
API Usage Example
Add Codestral (August 2025) 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/codestral-2508"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Get started with Puter.js
Add Codestral (August 2025) to your app without worrying about API keys or setup.
Read the Docs View Tutorials