Summarize Text
POST https://api.deep-learn.ai/v1/text/summarize
Given some source text, the DeepLearn model will summarize the content into a specified number of sentences.
Request body
text
string
Required
The text to be summarized.
learnerLanguageLevel
string
Optional
Defaults to "adult"
The language level of the learner, e.g., "adult", "beginner".
approxNumberOfSentences
number
Optional
Defaults to 3
The approximate number of sentences the summary should contain.
Returns
summary
string
The summarized text.
success
boolean
Indicates if the request was successful.
errorCode
number or null
The error code if the request was not successful.
errorMessage
string or null
The error message if the request was not successful.