Using Codestral 22B on Mistral AI Studio

Implementation guide · Codestral · MistralAI

ServerlessOpen Weights

Mistral AI Studio exposes Codestral 22B through model ID codestral-22b. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-06-15. Next refresh: weekly.

Quick Start

  1. 1
    Create an account at Mistral AI Studio and generate an API key.
  2. 2
    Use the Mistral AI Studio SDK or REST API to call codestral-22b — see the documentation for request format.
  3. 3
    You'll be billed $0.30/1M input, $0.90/1M output tokens. See full pricing.

Code Examples

See Mistral AI Studio documentation for integration details.

Pricing on Mistral AI Studio

TypePrice (per 1M)
Input tokens$0.30
Output tokens$0.90

Capabilities

No model capability flags are currently sourced.

About Codestral 22B

Codestral 22B is a large language model developed by Mistral AI, tailored specifically for code generation tasks. It excels in assisting developers by understanding and generating code in over 80 programming languages, including popular ones like Python and Java, as well as niche languages such as Swift and Fortran. Its standout features include the ability to generate code from scratch, complete functions, write tests, and a "fill-in-the-middle" capability for completing partial code.

Model Specs

Released2024-05-29
Parameters22B
Context32k
ArchitectureDecoder Only

Provider

Mistral AI Studio

Mistral AI

Paris, Île-de-France, France