API · Models
Text
Mistral Small
Mistral Small is Mistral's efficient model with a 128K context window, offering strong performance on coding and reasoning tasks at very low cost.
Context 128K·Max out 16.4K
Quickstart
import { streamText } from 'ai';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
const blackbox = createOpenAICompatible({
name: 'blackbox',
apiKey: process.env.BLACKBOX_API_KEY!,
baseURL: 'https://api.blackbox.ai/v1',
});
const result = streamText({
model: blackbox('blackboxai/mistral/mistral-small'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- 0.075
- Output $/M
- 0.2
- Context window
- 128K
- Max output
- 16.4K
- Supported parameters
- tool-usejson-modestreaming
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| Mistral Medium 3.5 | Text | 262.1K | 1.50 |
| Mistral Nemo | Text | 131.1K | 0.02 |
| Devstral 2 | Text | 256K | 0.4 |
| Codestral | Text | 256K | 0.3 |
| Ministral 8B | Text | 262.1K | 0.15 |