Skip to content

Mistral

VariableRequired
MISTRAL_API_KEYYes
Terminal window
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model": "mistral/mistral-large", "messages": [{"role": "user", "content": "Hello!"}]}'
use llmg_providers::mistral::MistralClient;
use llmg_core::provider::Provider;
let client = MistralClient::from_env()?;
  • Chat completions
  • Embeddings
  • Mistral-native API format