Mistral Small 4 (v26.03) over the direct Mistral API - a fast, low-cost hybrid model that unifies instruct, reasoning and coding, with a 256K-token context window, image input, function calling and structured outputs.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 279 | $0.19 |
| Output Tokens | 1,115 | $0.74 |
| Cached Tokens | 27.87 | $0.02 |
* 1,500 credits โ $1 (actual charges may vary based on usage)
curl -X POST "https://api.core.today/llm/mistral/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "mistral-small-2603",
"messages": [
{
"role": "user",
"content": "๋ค์ ๋ณด๊ณ ์๋ฅผ ๋ค์ฏ ์ค๋ก ์์ฝํด ์ค."
}
],
"max_tokens": 4096
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Chat messages in OpenAI format (system/user/assistant roles). |
max_tokens | integer | No | - | Maximum completion tokens. |
temperature | number | No | - | Sampling temperature. |
tools | array | No | - | Function definitions the model may call (OpenAI tools format). |
response_format | object | No | - | json_object or json_schema for structured output. |
stream | boolean | No | false | Stream the response as server-sent events. |
OpenAI-compatible chat completion over the direct Mistral route
curl -X POST "https://api.core.today/llm/mistral/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "mistral-small-2603",
"messages": [
{
"role": "user",
"content": "๋ค์ ๋ณด๊ณ ์๋ฅผ ๋ค์ฏ ์ค๋ก ์์ฝํด ์ค."
}
],
"max_tokens": 4096
}'POST /llm/mistral/v1/chat/completions