Back to Models
Mistral: Codestral 2501 AI Model Icon

Mistral: Codestral 2501

mistralai/codestral-2501

Description

[Mistral](/mistralai)'s cutting-edge language model for coding. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. Learn more on their blog post: https://mistral.ai/news/codestral-2501/

API Usage Examples

OpenAI Compatible Endpoint

Use this endpoint with any OpenAI-compatible library. Model: Mistral: Codestral 2501 (mistralai/codestral-2501)

curl https://api.ridvay.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "mistralai/codestral-2501",
    "messages": [
      {
        "role": "user",
        "content": "Explain the capabilities of the Mistral: Codestral 2501 model"
      }
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

Supported Modalities

  • Text

API Pricing

  • Input: 0.3$ / 1M tokens
  • Output: 0.9$ / 1M tokens

Token Limits

  • Max Output: 262,144 tokens
  • Max Context: 262,144 tokens

Subscription Tiers

  • free
  • pro
  • ultimate