POST
/
v1
/
tools
/
summarize_content
curl --request POST \
  --url https://api.mechanix.tools/v1/tools/summarize_content \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "source_type": "<string>",
  "content_id": "<string>",
  "output_language": "<string>",
  "method": "<string>"
}'
source_type
str
default:"youtube"
required

The type of the content source. values: "youtube"

content_id
str
required

The identifier of the content to summarize. Currently, only YouTube video URLs and IDs are supported.

output_language
str
default:"en"

The ISO 639-1 language code to use for the outputted summary. English (en) is recommended. values: "en", "pt", "es", "it", "de", "fr"

method
str
default:"auto"

The method to use for summarizing the content. Auto decides between ‘simple’ and ‘recursive’ by length. values: "auto", "simple", "recursive", "multi_modal"

Was this page helpful?