Skip to content

Mistral: mistral-small-3.1-24b-instruct

Active on this gateway Chat / Text

Mistral Small 3.1 24B Instruct is an upgraded variant of Mistral Small 3 (2501), featuring 24 billion parameters with advanced multimodal capabilities. It provides state-of-the-art performance in text-based reasoning and vision tasks, including image analysis, programming, mathematical reasoning, and multilingual support across dozens of languages. Equipped with an extensive 128k token context window and optimized for efficient local inference, it supports use cases such as conversational agents, function calling, long-document comprehension, and privacy-sensitive deployments. The updated version is Mistral Small 3.2.

AcceptsTextImage
ProducesText

Pricing

Current price per 1,000,000 tokens. Every request is billed automatically from its exact usage.

Input 125,939 Toman$0,4212 / 1M tokens ≈ 125,94 Toman / 1K tokens≈ $0,00042 / 1K tokens
Output 199,134 Toman$0,666 / 1M tokens ≈ 199,13 Toman / 1K tokens≈ $0,00067 / 1K tokens

Statistics

Live performance and usage of this model, aggregated across all users.

API

Call this model from any OpenAI-compatible client using your API token.

POST https://apiex.cloud/api/v1/chat/completions
<?php
$ch = curl_init( "https://apiex.cloud/api/v1/chat/completions" );

curl_setopt_array( $ch, array(
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => array(
        "Authorization: Bearer YOUR_API_KEY",
        "Content-Type: application/json",
    ),
    CURLOPT_POSTFIELDS     => json_encode( array(
        "model" => "mistralai/mistral-small-3.1-24b-instruct",
        "messages" => array(
            array(
                "role" => "user",
                "content" => "Explain quantum entanglement in one paragraph.",
            ),
        ),
        "temperature" => 0.7,
    ) ),
) );

$response = json_decode( curl_exec( $ch ), true );
print_r( $response );

Authentication Every request must include an Authorization: Bearer <TOKEN> header. Generate a token from your account's API Keys page — you can set its rate limit and IP restrictions.

Supported parameters

Parameter Type Description
model string, required This model's ID, exactly as shown above.
messages array, required Conversation history as role/content objects (system, user, assistant).
temperature number, optional Sampling randomness, typically 0–2.
max_tokens integer, optional Upper limit on tokens generated in the reply.
top_p number, optional Nucleus-sampling threshold, as an alternative to temperature.
stream boolean, ignored Responses are always returned in full so the exact cost can be billed; streaming is not available.

Frequently asked questions

What is mistral-small-3.1-24b-instruct?

Mistral Small 3.1 24B Instruct is an upgraded variant of Mistral Small 3 (2501), featuring 24 billion parameters with advanced multimodal capabilities. It provides state-of-the-art performance in text-based reasoning and vision tasks, including image analysis, programming, mathematical reasoning, and multilingual support across dozens of languages. Equipped with an extensive 128k token context window and optimized for efficient local inference, it supports use cases such as conversational agents, function calling, long-document comprehension, and privacy-sensitive deployments. The updated version is Mistral Small 3.2.

How much does mistral-small-3.1-24b-instruct cost?

Input tokens are priced at $0,4212 per 1,000,000 tokens and output tokens at $0,666 per 1,000,000 tokens. Pricing is billed automatically per request; no separate plan is required.

What is the context length of mistral-small-3.1-24b-instruct?

mistral-small-3.1-24b-instruct supports a context window of up to 128,000 tokens.

Does mistral-small-3.1-24b-instruct support image input?

Yes, mistral-small-3.1-24b-instruct accepts image input in addition to text.

Which provider is mistral-small-3.1-24b-instruct from?

mistral-small-3.1-24b-instruct is developed by Mistral and made available on this gateway through our routing infrastructure.

When was mistral-small-3.1-24b-instruct added to this gateway?

mistral-small-3.1-24b-instruct has been available on this gateway since September 23, 2026.

Is mistral-small-3.1-24b-instruct currently available?

Yes, mistral-small-3.1-24b-instruct is active and can be used right now through this gateway.

Ready to build with one API?

Create an account, make a key and send your first request in a few minutes.

Create your account