About Cohere
The Cohere platform allows you to leverage the power of large language models (LLMs) with just a few lines of code and an API key.
Our Command, Embed, Rerank, and Aya models excel at a variety of applications, from the relatively simple (semantic search, and content generation) to the more advanced (retrieval augmented generation and agents). If you have a more specialized use case and custom data, you can also train a custom model to get better performance.
Check out our documentation if you’re ready to start building, and you might want to check out our API pricing.
SDKs
The Cohere SDK is the primary way of accessing Cohere’s models. We support SDKs in four different languages. To get started, please see the installation methods and code snippets below.
Python
https://github.com/cohere-ai/cohere-python
Typescript
https://github.com/cohere-ai/cohere-typescript
Java
https://github.com/cohere-ai/cohere-java
Go
https://github.com/cohere-ai/cohere-go
Request Specification
To make a request to any model, you must pass in the Authorization
Header and the request must be made through a POST
request.
The content of Authorization
should be in the shape of BEARER [API_KEY]
. All request bodies are sent through JSON.
Model names are found within the dashboard, and details about endpoints are available within the documentation.