Nexus

Mistral

Use Mistral models with Nexus — embeddings, vision, and code generation.

Mistral offers high-performance models with embeddings, vision, and code generation support. Uses an OpenAI-compatible API.

Installation

import "github.com/xraph/nexus/providers/mistral"

Quick Start

provider := mistral.New(os.Getenv("MISTRAL_API_KEY"))

gw := nexus.New(
    nexus.WithProvider(provider),
)

Options

OptionDescription
mistral.WithBaseURL(url)Override the API base URL (default: https://api.mistral.ai/v1)

Capabilities

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsYes
VisionYes
ToolsYes
ThinkingNo

Models

ModelContextMax OutputInput PriceOutput Price
mistral-large-latest128K8,192$2.00/M$6.00/M
mistral-small-latest32K8,192$0.10/M$0.30/M
codestral-latest32K8,192$0.30/M$0.90/M
pixtral-large-latest128K8,192$2.00/M$6.00/M
mistral-embed8,192$0.10/M

On this page