# Cohere Tokenize API

**Canonical:** https://apis.io/apis/cohere/tokenize-api/  
**Provider:** cohere — https://apis.io/providers/cohere/  
**Base URL:** https://api.cohere.com  
**Documentation:** https://docs.cohere.com/reference/tokenize

Cohere Tokenize API is one of 9 APIs that [cohere](https://apis.io/providers/cohere/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Artificial Intelligence, Natural Language Processing, Text Processing, and Tokenization. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.

The Cohere Tokenize API splits input text into tokens using the tokenizer associated with a specified model. It returns both the token strings and their corresponding token IDs. This is useful for understanding how text will be processed by Cohere models, estimating token counts for billing purposes, and debugging input formatting issues.

## Machine-readable artifacts (2)

- **Documentation** — https://docs.cohere.com/reference/tokenize
- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/cohere/refs/heads/main/openapi/cohere-tokenize-api-openapi.yml

## Other cohere APIs (8)

- [Cohere Chat API](https://apis.io/apis/cohere/chat-api/)
- [Cohere Embed API](https://apis.io/apis/cohere/embed-api/)
- [Cohere Rerank API](https://apis.io/apis/cohere/rerank-api/)
- [Cohere Classify API](https://apis.io/apis/cohere/classify-api/)
- [Cohere Embed Jobs API](https://apis.io/apis/cohere/embed-jobs-api/)
- [Cohere Datasets API](https://apis.io/apis/cohere/datasets-api/)
- [Cohere Models API](https://apis.io/apis/cohere/models-api/)
- [Cohere Detokenize API](https://apis.io/apis/cohere/detokenize-api/)

## Tags

Artificial Intelligence, Natural Language Processing, Text Processing, Tokenization

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/cohere/tokenize-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/cohere/.
