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.07
- Output $/M
- $0.20
- Context window
- 128K
- Max output
- 16.4K
- Supported parameters
- tool-usejson-modestreaming
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| Mistral Nemo | Text | 131.1K | $0.02 |
| Mistral Medium 3.5 | Text | 262.1K | $1.50 |
| Devstral 2 | Text | 256K | $0.40 |
| Pixtral Large | Text | 131.1K | $2 |
| Ministral 3B | Text | 131.1K | $0.10 |