Cohere API
Hosted text models for chat, embedding, rerank and classification.
- Provider
- default
- Kind
- AI service
- Category
- Compute
- Official docs
- https://docs.cohere.com/docs/rate-limits
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| auth | enum | api-key | oauth | iam | none | no | — | ▸ api-key |
| contentFiltering | boolean | — | no | — | ▸ true |
| customerManagedKeys | boolean | — | no | — | inherited |
| dataResidency | enum | us | eu | asia | global | no | — | inherited |
| dataRetentionDays | integer | — | no | — | inherited |
| endpoint | enum | chat | embed | rerank | classify | no | chat | inherited |
| keyStore | boolean | — | no | false | inherited |
| keyType | enum | trial | production | no | trial | inherited |
| managed | boolean | — | no | false | ▸ true |
| modality | enum | text | vision | speech | multimodal | structured | image | video | audio | embedding | rerank | no | — | ▸ text |
| publicEndpoint | boolean | — | no | — | ▸ true |
| quotaUnitsPerMinute | integer | — | no | — | ▸ 20 |
| rateLimitRpm | integer | — | no | — | inherited |
| rateLimitTpm | integer | — | no | — | inherited |
| safetyMode | enum | contextual | strict | off | no | contextual | inherited |
| trainingOptOut | boolean | — | no | false | inherited |
| viaGateway | boolean | — | no | false | inherited |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
This AI vendor is reached with an API key, and nothing in the design holds or rotates that key. It ends up in environment files or code, every caller shares it, and a single leak runs up the vendor bill until someone notices. Put the key in a key-management component, or say it is held there with keyStore.
- — all of these hold:
- — the node's `auth` is "api-key"
- — the node's `keyStore` is false
- — the node has at least one incoming edge from an app-server, worker or client
- — this does not hold:
- — the design contains a node of kind key-management
A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.
- — all of these hold:
- — the node's `stateless` is false
- — the node sits inside exactly 1 availability-zone group
- — this does not hold:
- — the node sits inside at least one cell group
nodes:
- { id: "cohere-api", component: "cohere-api" }# yaml-language-server: $schema=../../schema/component.schema.json # Cohere API: hosted text models for chat, embedding, rerank and classification over a public endpoint. # Per "Different Types of API Keys and Rate Limits", a new account gets a trial key limited to 20 requests # per minute on the Chat API and production keys allow 500; per "Safety Modes", the Chat API applies # safety mode CONTEXTUAL unless the request asks for STRICT or OFF. schemaVersion: "1" type: "component" id: "cohere-api" kind: "ai-service" provider: "default" docs: "https://docs.cohere.com/docs/rate-limits" defaults: auth: "api-key" managed: true modality: "text" publicEndpoint: true contentFiltering: true quotaUnitsPerMinute: 20 properties: keyType: type: "enum" values: ["trial", "production"] default: "trial" safetyMode: type: "enum" values: ["contextual", "strict", "off"] default: "contextual" endpoint: type: "enum" values: ["chat", "embed", "rerank", "classify"] default: "chat" trainingOptOut: type: "boolean" default: false