connector.cohere · ai
Chat with Command models, create embeddings, rerank documents and classify text.
Vendor API documentation: https://docs.cohere.com/reference/about
| Method | Credential kind | Auth kind | Fields | Test request |
| API key | cohere/api_key | bearer | token (secret) | yes |
Node type connector.cohere. Choose a resource and an operation; each operation has its own parameters.
| Operation | ID | Effect | Paginated | Cassette tests |
| Send chat messages | chat.complete | writes | | 3 |
Operation chat.complete. Generates a reply with a Command model, optionally grounded on documents with citations.
| Name | Type | Default | Required | Shown when | Description |
model | resource_locator | "command-a-03-2025" | yes | | Values from lookup chat_models. |
messages | fixed_collection | | yes | | |
messages.role | options | "user" | | | One of system, user, assistant. |
messages.content | string | | yes | | |
documents | json | | | | Grounding documents. JSON array of strings or {id, data} objects the reply may cite. |
options | collection | | | | |
options.temperature | number | | | | |
options.max_tokens | number | | | | |
options.p | number | | | | Top P. |
options.k | number | | | | Top K. |
options.seed | number | | | | |
options.stop_sequences | string | | | | Comma-separated (up to 5). |
options.frequency_penalty | number | | | | |
options.presence_penalty | number | | | | |
options.safety_mode | options | | | | One of CONTEXTUAL, STRICT, OFF. |
options.citation_mode | options | | | | One of FAST, ACCURATE, OFF. |
options.json_output | boolean | false | | | JSON output. |
options.json_schema | json | | | | JSON schema. Schema the JSON output must follow (requires JSON output). |
options.thinking | options | | | | Reasoning. One of enabled, disabled. |
options.thinking_budget | number | | | | Reasoning token budget. |
simplify | boolean | true | | | Simplify output. Return reply text, citations and usage only. |
| Operation | ID | Effect | Paginated | Cassette tests |
| Create embeddings | embedding.create | reads | | 2 |
Operation embedding.create.
| Name | Type | Default | Required | Shown when | Description |
model | resource_locator | "embed-v4.0" | yes | | Values from lookup embed_models. |
input_type | options | "search_document" | yes | | One of search_document, search_query, classification, clustering. |
input_mode | options | "single" | | | Input. One of single, batch. |
text | string | | yes | input_mode = single | |
texts | json | | yes | input_mode = batch | JSON array of up to 96 strings. |
embedding_type | options | "float" | | | One of float, int8, uint8, binary, ubinary, base64. |
output_dimension | options | | | | embed-v4.0 and newer only. One of 256, 512, 1024, 1536. |
truncate | options | "END" | | | One of NONE, START, END. |
| Operation | ID | Effect | Paginated | Cassette tests |
| Rerank documents | rerank.run | reads | | 1 |
Operation rerank.run. Orders documents by relevance to a query. One output item per returned document.
| Name | Type | Default | Required | Shown when | Description |
model | resource_locator | "rerank-v3.5" | yes | | Values from lookup rerank_models. |
query | string | | yes | | |
documents | json | | yes | | JSON array of strings (structured documents should be serialized to YAML or text first). |
top_n | number | | | | Top N. Return only the best N documents. |
max_tokens_per_doc | number | 4096 | | | Max tokens per document. |
| Operation | ID | Effect | Paginated | Cassette tests |
| Classify text | classification.classify | reads | | 1 |
Operation classification.classify. Labels text using a fine-tuned classifier or few-shot examples.
| Name | Type | Default | Required | Shown when | Description |
model | resource_locator | | yes | | Values from lookup classify_models. |
inputs | json | | yes | | Texts. JSON array of strings to classify (up to 96). |
examples | fixed_collection | | | | Labeled examples, needed when the model is not a fine-tuned classifier. |
examples.text | string | | yes | | |
examples.label | string | | yes | | |
truncate | options | "END" | | | One of NONE, START, END. |
| Operation | ID | Effect | Paginated | Cassette tests |
| Tokenize text | tokenizer.tokenize | reads | | 1 |
| Detokenize tokens | tokenizer.detokenize | reads | | 1 |
Operation tokenizer.tokenize.
| Name | Type | Default | Required | Shown when | Description |
model | resource_locator | | yes | | Values from lookup chat_models. |
text | string | | yes | | |
Operation tokenizer.detokenize.
| Name | Type | Default | Required | Shown when | Description |
model | resource_locator | | yes | | Values from lookup chat_models. |
tokens | json | | yes | | JSON array of token ids. |
| Operation | ID | Effect | Paginated | Cassette tests |
| List models | model.list | reads | yes | 1 |
| Get a model | model.get | reads | | 1 |
Operation model.list.
| Name | Type | Default | Required | Shown when | Description |
return_all | boolean | false | | | |
limit | number | 50 | | return_all = false | |
endpoint | options | | | | Compatible with. One of chat, embed, classify, rerank, generate, summarize. |
Operation model.get.
| Name | Type | Default | Required | Shown when | Description |
model | resource_locator | | yes | | Values from lookup chat_models. |
Lookups fill dropdowns and resource pickers in the editor from the vendor API.
| Lookup | Depends on | Search | Description |
chat_models | | client-side | |
embed_models | | client-side | |
rerank_models | | client-side | |
classify_models | | client-side | |
No exported node type imports to this node.
Written from the vendor’s documentation: