API · Models
Text

Devstral 2

An enterprise-grade text model that excels at using tools to explore codebases, editing multiple files, and powering software engineering agents.

Context 256K·Max out 32.8K

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/devstral-2'),
  prompt: 'Why is the sky blue?',
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}

Specs & pricing

Input $/M
$0.40
Output $/M
$2
Context window
256K
Max output
32.8K
Supported parameters
tool-usejson-modestreaming

Related models

ModelTypeContextInput $/M
Pixtral LargeText131.1K$2
Ministral 3BText131.1K$0.10
Ministral 8BText262.1K$0.15
Mistral SmallText128K$0.07
Pixtral 12BText131.1K$0.15