mistralai

Mistral: Ministral 8B

Ministral 8B is an 8B parameter model featuring a unique interleaved sliding-window attention pattern for faster, memory-efficient inference. Designed for edge use cases, it supports up to 128k context length...

Context
128k tokens
Input / 1M tokens
$0.11
Output / 1M tokens
$0.11
Benchmark

Pricing

Input tokens$0.11 per 1M tokens
Output tokens$0.11 per 1M tokens

Technical details

Model IDmistralai/ministral-8b
Context window128k tokens
Input modalitiestext
Output modalitiestext
TokenizerMistral
Max output tokens102,400

Use with MegaBrain

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'mistralai/ministral-8b',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use Mistral: Ministral 8B?

Get an API key and start making requests in minutes.

Get an API key