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.
1. Set up
Section titled “1. Set up”First, let's install the SDK (the examples below are in Python, Typescript, and Go):