
AI Cohere
CertifiedUse Cohere models
AI Cohere
Use Cohere models
Connects to the Cohere OpenAI-compatible Compatibility API with API key and model name. Supports chat completion (including tool calling) and embeddings. Image generation is not available, and structured output follows Cohere's json_object format rather than OpenAI's strict JSON schema mode.
type: io.kestra.plugin.ai.provider.CohereExamples
Chat completion with Cohere
id: chat_completion
namespace: company.ai
inputs:
- id: prompt
type: STRING
tasks:
- id: chat_completion
type: io.kestra.plugin.ai.completion.ChatCompletion
provider:
type: io.kestra.plugin.ai.provider.Cohere
apiKey: "{{ secret('COHERE_API_KEY') }}"
modelName: command-a-03-2025
messages:
- type: SYSTEM
content: You are a helpful assistant, answer concisely, avoid overly casual language or unnecessary verbosity.
- type: USER
content: "{{ inputs.prompt }}"
Properties
apiKey *string
API Key
API key used to authenticate against the provider. Store it as a Kestra secret rather than inline. No default: this property is required.
baseUrl string
https://api.cohere.ai/compatibility/v1API base URL
Base URL of the Cohere OpenAI-compatible API. Defaults to https://api.cohere.ai/compatibility/v1.
caPem string
CA PEM certificate content
PEM-encoded certificate authority chain, as text, used to verify the TLS certificate presented by a custom endpoint. Not set by default, in which case the JVM's default trust store is used.
clientPem string
Client PEM certificate content
PEM-encoded client certificate and private key, as text, used for mutual-TLS authentication against enterprise AI endpoints. Not set by default, in which case the default HTTP client is used.
modelName string
Model name