Cohere
Installation
Section titled “Installation”<dependency> <groupId>com.google.genkit</groupId> <artifactId>genkit-plugin-cohere</artifactId> <version>1.0.0-SNAPSHOT</version></dependency>Configuration
Section titled “Configuration”export COHERE_API_KEY=your-api-keyimport com.google.genkit.plugins.cohere.CoherePlugin;
Genkit genkit = Genkit.builder() .plugin(CoherePlugin.create()) .build();
ModelResponse response = genkit.generate( GenerateOptions.builder() .model("cohere/command-a-03-2025") .prompt("Tell me about AI") .build());Available models
Section titled “Available models”cohere/command-a-03-2025cohere/command-r7b-12-2024cohere/command-r-08-2024cohere/command-r-plus-08-2024
Features
Section titled “Features”- Text generation, tool calling, RAG support, SSE streaming
Sample
Section titled “Sample”See the cohere sample.