POST
/
models
/
v2
/
ainize
/
bart-base-cnn
curl --request POST \
  --url https://api.bytez.com/models/v2/ainize/bart-base-cnn \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "The tower is 324 metres tall and the tallest structure in Paris..."
}'
{
  "output": "The Eiffel Tower is the tallest structure in Paris."
}

Authorizations

Authorization
string
header
required

Provide your API key as Key your-key-here in the Authorization header.

Body

application/json
text
string
required

Input text to summarize.

Example:

"The tower is 324 metres tall and the tallest structure in Paris..."

Response

200 - application/json
Successful response with the summarized text.
output
string

Summarized text.