Access language models that read billions of open web pages and teach themselves to understand individual words, as well as the overall meaning, sentiment and tone of sentences and entire documents.
Use the API to generate completions, distill text into semantically meaningful vectors, measure the semantic similarity between two passages, and more. Get state-of-the-art natural language processing without the need for expensive supercomputing infrastructure.
Our models gain a rich understanding of language and the world by reading text across billions of web pages.
Finetune our models with your data to create tailored models, purpose-built for your needs.
Access language generation, model representations, and conditional likelihoods, all under one API.
Effortlessly deploy language models with billions of parameters into your product.
Generate natural-sounding text from a prompt.
import cohereco = cohere.CohereClient('YOUR_API_KEY')predictions = co.generate(model='baseline-shark',prompt='Rephrase the following sentence:\n''1. When does the show start?\n''2. What time is the concert?\n''3. When is the beginning of the set?\n',num_tokens=50)
Retrieve embeddings of text to understand its meaning.
import cohereco = cohere.CohereClient('YOUR_API_KEY')emb = co.embed(model='baseline-seal',texts=['This album is not that great.', 'Their old stuff was better.'])if emotion_classifier.predict(emb) < 0.5:print('They did not like it')
Measure semantic similarity between texts.
import cohereco = cohere.CohereClient('YOUR_API_KEY')similarities = co.similarity(model='baseline-seal',anchor='title: The Life and Times of Art Garfunkel',targets=['genre: Music','genre: Math','genre: Science'])
Sign up for free today and use the Cohere Platform to build natural language understanding and generation into your product with just a few lines of code.