Summarization
Summarization provides a brief summary of the input text.
summarize
boolean Default: false
Try this feature out in our API Playground!
Summarization accepts an input text and analyzes the text. It then summarizes the content of the submitted text and returns a brief summary in the JSON response.
Enable Feature
To enable Summarization, use the following parameter in the query string when you call Deepgram’s /read
endpoint :
summarize=true
Basic Text Request
To analyze text from a file on your computer, run the following curl command in a terminal or your favorite API client.
Replace YOUR_DEEPGRAM_API_KEY
with your Deepgram API Key.
Basic URL Request
To analyze text from a hosted file, run the following curl command in a terminal or your favorite API client. (Try testing it out with the hosted file https://static.deepgram.com/examples/aura.txt)
Read our Text Intelligence Getting Started guide, which will walk you through making a basic text request and a basic URL request with the Deepgram SDKs.
Query Parameters
Analyze Response
When the file is finished processing, you’ll receive a JSON response that has the following basic structure:
Use the API reference or the API Playground to view the detailed response.
The summary
object contains:
text
: Short summary of the audio being summarized.
API Error Responses
Unsupported Language
Status 400
If you request Summarization with an unsupported language by specifying a language code such as summarize=true&language=es
or summarize=true&detect_language=true
where the detected language is unsupported, you will get the error message below.
Token Limit Exceeded
Status 400
If the request’s input length exceeded the 150k token rate limit per request, you will get the error message below.
Missing Query Parameter
Status 400
If the request sent contained only the feature parameter (summarize
) but not the language
parameter, you will receive this error.