Skip to content

Mistral

<dependency>
<groupId>com.google.genkit</groupId>
<artifactId>genkit-plugin-mistral</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
Terminal window
export MISTRAL_API_KEY=your-api-key
import com.google.genkit.plugins.mistral.MistralPlugin;
Genkit genkit = Genkit.builder()
.plugin(MistralPlugin.create())
.build();
ModelResponse response = genkit.generate(
GenerateOptions.builder()
.model("mistral/mistral-large-3-25-12")
.prompt("Tell me about AI")
.build());
ModelContext
mistral/mistral-large-3-25-12128K
mistral/mistral-medium-3-1-25-08128K
mistral/mistral-small-*128K
mistral/ministral-*128K
mistral/codestral-25-08256K
  • Text generation, streaming, tool calling, RAG

See the mistral sample.