API · Models
Text
Pixtral 12B
Pixtral 12B is Mistral's compact multimodal model with a 128K context window, supporting text and image inputs for vision-language tasks.
Context 131.1K·Max out 131.1K
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/pixtral-12b'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- $0.15
- Output $/M
- $0.15
- Context window
- 131.1K
- Max output
- 131.1K
- Supported parameters
- tool-usevisionjson-modestreaming
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| Pixtral Large | Text | 131.1K | $2 |
| Devstral 2 | Text | 256K | $0.40 |
| Ministral 3B | Text | 131.1K | $0.10 |
| Ministral 8B | Text | 262.1K | $0.15 |
| Mistral Small | Text | 128K | $0.07 |