Codestral

KoodPole saadaval
Mistral AI pooltMudeli ID: codestral

Mistral's code-specialized model. Optimized for code generation, completion, and understanding across 80+ languages.

Olek
Pole saadaval
Kontekst
256 000 tokenit
Maks. vÀljund
8192 tokenit
Sisend → vĂ€ljund
Tekst → Tekst
Arendaja
Mistral AI
Uuendatud
23. september 2026

Codestral pole hetkel saadaval

Selle lehe ĂŒksikasju saad jĂ€tkuvalt lugeda. VĂ”rdsete mudelite kohe kĂ€ivitamiseks vali allpool ĂŒks saadaolevatest alternatiividest.

Mine alternatiividele
01

VÔrreldavad mudelid

KÔik selles kategoorias
02

Playground

Proovi Codestral

Vestlus

Hetkel pole saadaval

Praegu pole saadaval.

MÀnguvÀljakud on keelatud. Sarnaseid mudeleid leiad samast kategooriast: Vaata alternatiive

Proovi Codestral

Saada sÔnum. Vastus saabub tÀielikult, kui mudel on valmis (ilma voogesituseta).

SĂŒsteemi kĂ€sklus
Maks. vastuse pikkus (tokenid)

See kÀivitus

Hind puudub – praegu pole saadaval.

Oled siin uus?

10 tasuta krediiti (0,10 $), kui registreeritud Google'iga

Kasutatav 24 tundi pÀrast registreerimist, kuni 5 kÀivitust pÀevas ja maksimaalselt 2 krediiti kÀivituse kohta. Muud sisselogimismeetodid algavad ilma krediitideta.

03

Teave: Codestral

LĂŒhidaltSeisuga 23. september 2026

Codestral on mudel, mille on vĂ€lja töötanud Mistral AI kategoorias Kood. Codestral ei ole Railwail'is praegu saadaval. Konteksti aken sisaldab 256 000 mĂ€rksĂ”na ja ĂŒks vastus vĂ”ib olla kuni 8192 mĂ€rksĂ”na pikkune.

Taust

Teave Mistral AI kohta

Asutatud 2023 · Paris, France

Mistral AI was founded in April 2023 in Paris by Arthur Mensch (CEO, former DeepMind), Guillaume Lample and TimothĂ©e Lacroix (both former Meta FAIR co-authors of the LLaMA papers). Mistral has built a frontier-scale European LLM lab with a portfolio mixing fully open-weight releases (Mistral 7B, Mixtral 8x7B, Mixtral 8x22B, Mistral Small) and commercial closed-API models (Mistral Large, Mistral Embed, Mistral Saba). The company has raised over €1B from investors including Andreessen Horowitz, General Catalyst, Lightspeed, Salesforce, Nvidia and Microsoft, with a 2024 valuation around €6B. Codestral was released May 2024 as Mistral's first dedicated code model — a 22B dense transformer trained on 80+ programming languages with native fill-in-the-middle support for IDE integrations. A successor, Codestral 25.01, followed in January 2025.

KĂŒlasta Mistral AI

Arhitektuur

Decoder-only Transformer for code (Mistral architecture)

Codestral-22B is a 22B dense decoder-only transformer using Mistral's standard architecture: 56 layers, 6,144 hidden size, 48-head grouped-query attention with 8 KV heads, sliding-window attention (4,096-token window), RoPE positional embeddings with theta=1M (for long-context support), SwiGLU activations and RMSNorm. The tokeniser is the Mistral BPE with 32,768 entries plus added fill-in-the-middle special tokens (`[PREFIX]`, `[SUFFIX]`, `[MIDDLE]`). Training combined a standard left-to-right autoregressive objective with FIM training for IDE-grade code completion. The training corpus covers 80+ programming languages drawn from public code repositories, plus natural-language code documentation pairs and instruction data for the chat / explain capability. Released May 2024 under the Mistral AI Non-Production License (MNPL), which permits open-weights research and evaluation but not commercial production use without a separate license or hosted API access.

Parameetrid
22B (dense)
Kontekst
32 000 tokenit

VÔimalused

  • 22B dense transformer purpose-built for code
  • Native fill-in-the-middle (FIM) for IDE autocomplete
  • Trained on 80+ programming languages
  • 32K context window
  • Competitive with CodeLlama-34B and DeepSeek-Coder-33B at smaller size
  • Strong on mainstream: Python, JS/TS, Java, C/C++, Go, Rust, Bash, SQL, PHP, Swift
  • Open weights available under MNPL (research only)
  • Best for: IDE code completion, code generation, explanation and refactoring across mainstream languages.

Treening ja litsents

Trained on trillions of tokens (exact figure not disclosed) of public code repositories across 80+ programming languages, natural-language code-documentation pairs, and instruction-style code data for chat and explain capabilities. Knowledge cutoff approximately early 2024. Training combined autoregressive and fill-in-the-middle objectives.

Litsents: Mistral AI Non-Production License (MNPL). Open weights for research, evaluation and personal use; commercial production requires Mistral commercial license or hosted API access (la Plateforme, AWS Bedrock, Azure AI Studio).

Turvalisuse testimine: Mistral publishes a model card for Codestral. Safety focus is on code-specific risks (malware, vulnerability generation) rather than general consumer-chat alignment.

Teadaolevad piirangud

  • MNPL blocks commercial production use of open weights
  • Smaller than successor Codestral 25.01 and below DeepSeek-Coder V2 on top benchmarks
  • 32K context shorter than newer code models (DeepSeek-Coder V2: 128K)
  • Weaker on rare languages and DSLs
  • Not as strong on agentic / repo-level reasoning as longer-context code models
  • No multimodal input (no image-of-code understanding)
04

Hinnad

Praegu pole saadaval. Sellel mudelil pole hetkel hinda, seega seda ei saa kÀivitada.

05

API

Kutsu Codestral oma Railwail API vÔtmega. Kasuta selles pÀringus seda mudeli ID-d:

Praegu pole saadaval

Mudelil puudub kontrollitud hind vĂ”i see on keelatud; API-kutsed lĂŒkatakse tagasi.

06

Spetsifikatsioonid

Mudeli ID
codestral
Arendaja
Mistral AI
Kategooria
Kood
Sisend
Tekst
VĂ€ljund
Tekst
Konteksti aken
256 000 tokenit
Maks. vÀljund
8192 tokenit
Mudeli suurus
22B (dense)
Litsents
Mistral AI Non-Production License (MNPL). Open weights for research, evaluation and personal use; commercial production requires Mistral commercial license or hosted API access (la Plateforme, AWS Bedrock, Azure AI Studio).
Kataloogi kirje uuendatud
23. september 2026

Sildid

  • coding
  • fast
  • multilanguage
07

NĂ€ite-prompid

NĂ€ited Railwail kataloogist. Neid ei loodud otse sellel lehel.
  • TypeScript API Handler

    Write a type-safe Express middleware for JWT authentication in TypeScript
    NÀita nÀite vastust

    import { Request, Response, NextFunction } from 'express'; import jwt from 'jsonwebtoken'; interface JwtPayload { userId: string; email: string; role: 'admin' | 'user'; } declare global { namespace Express { interface Request { user?: JwtPayload; } } } export const authenticate = ( req: Request, res: Response, next: NextFunction ): void => { const token = req.headers.authorization?.split(' ')[1]; if (!token) { res.status(401).json({ error: 'No token provided' }); return; } try { const decoded = jwt.verify( token, process.env.JWT_SECRET! ) as JwtPayload; req.user = decoded; next(); } catch (err) { res.status(403).json({ error: 'Invalid or expired token' }); } };

  • Rust Error Handling

    Write a Rust function that reads a JSON config file and returns a parsed struct with proper error handling
    NÀita nÀite vastust

    use serde::Deserialize; use std::fs; use std::path::Path; use thiserror::Error; #[derive(Debug, Deserialize)] pub struct AppConfig { pub host: String, pub port: u16, pub database_url: String, pub max_connections: Option<u32>, } #[derive(Error, Debug)] pub enum ConfigError { #[error("Failed to read config file: {0}")] IoError(#[from] std::io::Error), #[error("Failed to parse config JSON: {0}")] ParseError(#[from] serde_json::Error), #[error("Config file not found: {0}")] NotFound(String), } pub fn load_config(path: &str) -> Result<AppConfig, ConfigError> { if !Path::new(path).exists() { return Err(ConfigError::NotFound(path.to_string())); } let contents = fs::read_to_string(path)?; let config: AppConfig = serde_json::from_str(&contents)?; Ok(config) } // Usage: // let config = load_config("config.json")?;

08

Kasutamise juhtumid

Milleks seda kasutatakse

  • IDE code completion (continue.dev, JetBrains)
  • Code generation and refactoring
  • Code explanation and review
  • Cross-language code translation
  • Self-hosted developer assistants (research)
  • Production deployments via Mistral hosted API
09

Korduma kippuvad kĂŒsimused

Mis on Codestral?

Codestral on mudel, mille töötas vÀlja Mistral AI kategoorias Kood. See on loetletud Railwail'is, kuid hetkel ei saa seda kÀivitada.

Kui palju maksab Codestral Railwail'is?

Codestral ei saa hetkel Railwail'is kÀivitada, seega pole praegust hinda. Saadaolevad alternatiivid koos hindadega on loetletud selle lehe allpool.

Kui suur on Codestral konteksti aken?

Codestral konteksti aken sisaldab 256 000 mĂ€rksĂ”na. Üks vastus vĂ”ib olla kuni 8192 mĂ€rksĂ”na pikkune.

Kui kiire on Codestral?

Codestral kohta ei ole Railwail'is veel piisavalt mÔÔdetud kÀivitusi, et kÀivitusaega vÀita. See sÔltub sisendist, seadistustest ja pakkuja koormusest.

Kas Codestral on parem kui Code Llama 13B Instruct?

See sĂ”ltub ĂŒlesandest. Codestral (Mistral AI) ja Code Llama 13B Instruct (Meta) on mĂ”lemad mudelid kategoorias Kood. VĂ”rdlusleht nĂ€itab nende hindu ja spetsifikatsioone kĂ”rvuti.

VÔrdle Codestral ja Code Llama 13B Instruct

Kas saan Codestral kohe kasutada?

Praegu pole saadaval. Leht jÀÀb veebis; saadaolevad alternatiivid samast kategooriast on loetletud allpool.

KĂ”ik mudelid ĂŒhe API kaudu

Üks API vĂ”ti kĂ”igile Railwail mudelitele. Kasutamine arvestatakse eelmakstud krediitidest, 1 krediit = 0,01 $.