Skip to main content
Cohere

Search documentation

Type to search this documentation.

On this pageOverview

Summarize API

This endpoint generates a succinct version of the original text that relays the most important information.

Ideal use cases include, but are not limited to: news articles, blogs, chat transcripts, scientific articles, meeting notes, and any text that you should like to see a summary of!

The endpoint can:

  • Summarize a single document
  • Control output length
  • Format chosen output
  • Handle long documents
  • Provide additional instructions to focus the summary

We recommend leveraging the playground for quick use cases, but for any repeated utilizations we strongly recommend the API. An example is provided below.


In this example, we want to summarize a passage from a news article into its main point.

First, let's install the SDK (the examples below are in Python, Typescript, and Go):

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu