Mistral AI's cutting-edge code generation model specializing in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code completion, correction, and test generation. Features efficient architecture with 2x faster generation than its predecessor.
256K tokens
1
Kullanılabilir
En ucuz
Mistral AI
$1.20/1M tokens
Mistral AI
Toplam maliyete göre sıralanır (1M token başına giriş + çıkış). Sağlayıcı ayrıntılarını görmek için bir satır seçin.
| Sağlayıcı | Fiyat (1M başına) | Hız sınırları | Bölgeler | Durum | Gecikme |
|---|---|---|---|---|---|
Giriş: $0.30Çıkış: $0.90 | 600 RPM / 1.0M TPM | us-east-1eu-west-1 | Sağlıklı | 0ms |
Bu modeli Mistral AI üzerinden OpenAI uyumlu bir SDK ile kullanın.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.mistral.ai/v1",
apiKey: process.env.MISTRAL_API_KEY,
});
const response = await client.chat.completions.create({
model: "codestral-2501",
messages: [
{ role: "user", content: "Hello!" }
],
});
console.log(response.choices[0].message.content);Mistral AI API kullanılıyor · OpenAI uyumlu SDK