Volver al catálogo

Cohere

cohere

Cohere provides enterprise language and multimodal AI models for chat, embeddings, reranking, classification, and related workflows.

Acciones
22
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (22)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Cancel BatchCOHERE_CANCEL_BATCHAcción

Cancel one in-progress Cohere batch. This requires a production Cohere API key, stops the batch irreversibly, and cannot be undone.

Parámetros de entrada

  • idstringObligatorio

    Cohere ID of the in-progress batch to cancel.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Cancel Embed JobCOHERE_CANCEL_EMBED_JOBAcción

Irreversibly cancel one active Cohere asynchronous embed job by ID. Cohere accrued charges for work processed before cancellation still apply, and partial results are not available. Cancel only a caller-owned job. This action sends one request and does not poll for the cancelled state.

Parámetros de entrada

  • idstringObligatorio

    Unique identifier of the active, caller-owned embed job to cancel.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

ChatCOHERE_CHATAcción

Generate one non-streaming Cohere chat response from an ordered conversation, optionally using documents, tools, structured output, or reasoning controls.

Parámetros de entrada

  • seedinteger

    Best-effort deterministic sampling seed.

  • modelstringObligatorio

    Cohere chat model name; use COHERE_LIST_MODELS with endpoint=chat to discover current choices.

  • toolsobject[]

    Functions the model may call.

  • top_kinteger

    Top-k sampling value; 0 disables top-k sampling.

  • top_pnumber

    Top-p probability mass from 0.01 to 0.99.

  • logprobsboolean

    Include generated-token log probabilities in the response.

  • messagesarrayObligatorio

    Conversation messages in chronological order.

  • priorityinteger

    Scheduling priority; lower numbers are handled earlier.

  • thinkingobject

    Reasoning enablement and optional token budget.

  • documentsarray

    Short relevant text or structured documents used to ground the answer.

  • max_tokensinteger

    Maximum output tokens; low values may produce finish_reason=MAX_TOKENS.

  • safety_modestringenum

    Safety instruction mode; model compatibility varies.

    CONTEXTUALSTRICTOFF
  • temperaturenumber

    Generation randomness; lower values are more deterministic.

  • tool_choicestringenum

    REQUIRED asks the model to call at least one supplied tool. NONE asks the model not to call tools, but this is best-effort and model-dependent.

    REQUIREDNONE
  • strict_toolsboolean

    Force generated tool calls to follow the supplied function schemas strictly.

  • stop_sequencesstring[]

    Up to five strings that stop generation before the matching sequence.

  • response_formatobject

    Plain-text or structured JSON output configuration.

  • citation_optionsobject

    Citation generation configuration.

  • presence_penaltynumber

    Presence-based repetition penalty from 0 to 1.

  • frequency_penaltynumber

    Frequency-based repetition penalty from 0 to 1.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Check API KeyCOHERE_CHECK_API_KEYAcción

Check whether the connected Cohere API key is valid and return its organization and owner identifiers when available.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create BatchCOHERE_CREATE_BATCHAcción

Start one asynchronous Cohere batch from an existing validated batch request dataset and return immediately without polling. Cohere requires a production API key for the Batch API.

Parámetros de entrada

  • namestringObligatorio

    Human-readable name for the new batch.

  • modelstringObligatorio

    Cohere model that will process the batch dataset.

  • input_dataset_idstringObligatorio

    Identifier of a validated Cohere batch request dataset.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create DatasetCOHERE_CREATE_DATASETAcción

Upload a Cohere dataset and start asynchronous validation. Returns immediately without waiting for validation to finish.

Parámetros de entrada

  • dataobjectObligatorio

    Primary CSV or JSONL dataset file to upload.

  • namestringObligatorio

    Dataset name; must contain fewer than 50 characters.

  • typestringObligatorioenum

    Dataset type used by Cohere to validate the uploaded records.

    embed-inputembed-resultcluster-resultcluster-outliersreranker-finetune-inputsingle-label-classification-finetune-inputchat-finetune-inputmulti-label-classification-finetune-inputbatch-chat-inputbatch-openai-chat-inputbatch-embed-v2-inputbatch-chat-v2-input
  • eval_dataobject

    Optional evaluation CSV or JSONL dataset file to upload.

  • keep_fieldsstring[]

    Source fields that must exist and should be retained in the dataset.

  • csv_delimiterstring

    Single-character delimiter used to parse CSV uploads.

  • text_separatorstring

    Separator Cohere should use to split raw text uploads into records.

  • optional_fieldsstring[]

    Source fields to retain when present without requiring them.

  • keep_original_fileboolean

    Whether Cohere should retain the original uploaded file.

  • skip_malformed_inputboolean

    Whether to drop malformed rows instead of failing validation.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create Embed JobCOHERE_CREATE_EMBED_JOBAcción

Start one asynchronous Cohere embedding job for a validated embed-input dataset and return immediately without polling.

Parámetros de entrada

  • namestring

    Optional human-readable name for the embed job.

  • modelstringObligatorio

    Cohere embedding model to use for the job.

  • truncatestringenum

    Overlength behavior: START discards the beginning; END discards the end.

    STARTEND
  • dataset_idstringObligatorio

    Validated Cohere embed-input dataset to process.

  • input_typestringObligatorioenum

    How the resulting embeddings will be used: search_document, search_query, classification, clustering, or image.

    search_documentsearch_queryclassificationclusteringimage
  • embedding_typesstring[]

    Optional embedding encodings to produce: float, int8, uint8, binary, ubinary, or base64.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete DatasetCOHERE_DELETE_DATASETAcción

Permanently delete a Cohere dataset by ID. This deletion cannot be undone.

Parámetros de entrada

  • idstringObligatorio

    Cohere dataset ID to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Detokenize TokensCOHERE_DETOKENIZE_TOKENSAcción

Convert ordered Cohere token IDs back to text using the tokenizer for an explicit matching model.

Parámetros de entrada

  • modelstringObligatorio

    Cohere model whose tokenizer produced the token IDs; it must match the tokenization model.

  • tokensinteger[]Obligatorio

    Cohere token IDs to detokenize in order; use the exact order returned by tokenization.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Embed InputsCOHERE_EMBED_INPUTSAcción

Create v2 embeddings from exactly one input form: text strings, image data URIs, or structured multimodal content.

Parámetros de entrada

  • modelstringObligatorio

    Cohere embedding model name, such as embed-v4.0; discover choices with COHERE_LIST_MODELS endpoint=embed.

  • textsstring[]

    One to 96 text strings to embed. Provide exactly one of texts, images, or inputs.

  • imagesstring[]

    Image data URIs to embed. JPEG, PNG, WebP, and GIF are supported. Embed v3 accepts one image up to 5 MB; v4 and newer accept up to 20 MB of image data combined.

  • inputsobject[]

    One to 96 structured multimodal inputs. Each input contains a non-empty ordered list of text or image_url blocks.

  • priorityinteger

    Scheduling priority; lower numbers are handled earlier.

  • truncatestringenum

    Overlength behavior: NONE errors, START discards the beginning, and END discards the end.

    NONESTARTEND
  • input_typestringObligatorioenum

    Purpose of the input: search_document, search_query, classification, clustering, or image.

    search_documentsearch_queryclassificationclusteringimage
  • max_tokensinteger

    Maximum tokens embedded per input before applying truncate.

  • embedding_typesstring[]

    Vector encodings to return: float, int8, uint8, binary, ubinary, or base64.

  • output_dimensionintegerenum

    For embed-v4 and newer, output dimensions: 256, 512, 1024, or 1536.

    25651210241536

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get BatchCOHERE_GET_BATCHAcción

Retrieve one asynchronous Cohere batch's status and counters by batch ID. A usable batch ID depends on a production-key CREATE_BATCH lifecycle; this action performs one read only, and callers control any bounded polling.

Parámetros de entrada

  • idstringObligatorio

    Batch ID returned by CREATE_BATCH or LIST_BATCHES.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get DatasetCOHERE_GET_DATASETAcción

Retrieve one Cohere dataset by ID, including its asynchronous validation state, schema, files, parsing details, and metrics. Callers control any polling and should bound it.

Parámetros de entrada

  • idstringObligatorio

    Cohere dataset ID returned by a dataset create or list operation.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Dataset UsageCOHERE_GET_DATASET_USAGEAcción

Read the organization's Cohere dataset-storage consumption in bytes.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Embed JobCOHERE_GET_EMBED_JOBAcción

Retrieve one Cohere asynchronous embedding job's current status, model, and input and output dataset identifiers by job ID.

Parámetros de entrada

  • idstringObligatorio

    Unique identifier of the embedding job to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get ModelCOHERE_GET_MODELAcción

Retrieve a Cohere model's endpoint compatibility, context size, features, tokenizer, and default sampling parameters by model name.

Parámetros de entrada

  • modelstringObligatorio

    Cohere model name to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List BatchesCOHERE_LIST_BATCHESAcción

Return one page of asynchronous Cohere batches and their statuses without creating or cancelling work.

Parámetros de entrada

  • order_bystringenum

    Sort batches by creation time or last-updated time.

    created_atupdated_at
  • page_sizeinteger

    Maximum batches to return on this page (1-1000).

  • next_cursorstring

    Continuation token returned by a prior call. Omit for the first page; pass the returned value back unchanged to fetch the next page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List DatasetsCOHERE_LIST_DATASETSAcción

Return one offset-based page of Cohere datasets, optionally filtered by type, validation status, or creation time. Cohere provides no total or continuation metadata, so callers control offset explicitly.

Parámetros de entrada

  • afterstringdate-time

    Return datasets created after this timestamp.

  • limitinteger

    Maximum datasets to return on this page; must be positive.

  • beforestringdate-time

    Return datasets created before this timestamp.

  • offsetinteger

    Zero-based number of datasets to skip. Increase it by returned_count to request the following page.

  • dataset_typestring

    Filter datasets by the type recorded on the dataset.

  • validation_statusstringenum

    Filter datasets by their current validation status.

    unknownqueuedprocessingfailedvalidatedskipped

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Embed JobsCOHERE_LIST_EMBED_JOBSAcción

List Cohere asynchronous embedding jobs and their current statuses.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List ModelsCOHERE_LIST_MODELSAcción

Discover Cohere model names and capabilities, optionally filtered to an endpoint or its default model. Returns one page without auto-pagination.

Parámetros de entrada

  • endpointstringenum

    Filter to models compatible with chat, embed, classify, summarize, rerank, rate, or generate.

    chatembedclassifysummarizererankrategenerate
  • page_sizeinteger

    Requested models on this page (1-1000). The default of 1000 reduces exposure to Cohere's observed missing continuation token.

  • next_cursorstring

    Continuation token from a prior response. Repeat the same endpoint and default_only filters when continuing; omit for the first page.

  • default_onlyboolean

    Return only the endpoint's default model. Requires endpoint.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Rerank DocumentsCOHERE_RERANK_DOCUMENTSAcción

Rank text documents by relevance to a query and return the highest-scoring source documents.

Parámetros de entrada

  • modelstringObligatorio

    Cohere rerank model name; discover current choices with COHERE_LIST_MODELS endpoint=rerank.

  • querystringObligatorio

    Search query used to score the documents.

  • top_ninteger

    Maximum highest-ranked results to return; must not exceed the number of documents.

  • priorityinteger

    Scheduling priority; lower numbers are handled earlier.

  • documentsstring[]Obligatorio

    Non-empty text documents to rank; result indexes refer to this zero-based array.

  • max_tokens_per_docinteger

    Maximum tokens considered from each document.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Tokenize TextCOHERE_TOKENIZE_TEXTAcción

Convert text into token IDs with an explicit Cohere model. Detokenization must use the same model because token IDs differ between model tokenizers.

Parámetros de entrada

  • textstringObligatorio

    Text to tokenize, from 1 to 65,536 characters.

  • modelstringObligatorio

    Model whose tokenizer to use. Use the same model when detokenizing these token IDs.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Transcribe AudioCOHERE_TRANSCRIBE_AUDIOAcción

Transcribe an uploaded audio file to text with a Cohere transcription model.

Parámetros de entrada

  • fileobjectObligatorio

    Audio file to transcribe. Supported file extensions are .flac, .mp3, .mpeg, .mpga, .ogg, and .wav.

  • modelstringObligatorio

    Cohere transcription model ID.

  • languagestringObligatorio

    Language of the audio in ISO-639-1 format.

  • temperaturenumber

    Sampling temperature from 0 to 1; lower values are more deterministic.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not