v1

latestOpenAPI 3.0.32026-07-26451985.7 KB

summarization

Summarization involves creating concise summaries of longer texts. Use cases include news summarization, document summarization, and generating abstracts

post/models/v2/ainize/bart-base-cnn

Request body

textstring required

The input text

streamboolean

Enable text streaming.

Example request

{
  "text": "The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. It was the first structure to reach a height of 300 metres. Excluding transmitters, the Eiffel Tower is the second tallest free-standing structure in France after the Millau Viaduct."
}

Response

Successful summarization response.

errorstring nullable required

Null on success; otherwise an error message.

outputstring required

Successful response with the summary

Example response

{
  "output": "The Eiffel Tower is the tallest structure in Paris."
}