Summary Endpoint

POST /api/v1/summary

Generate a concise summary of text content with support for multiple target languages.

Request Body

text
string
required

The text content to be summarized

target_language
string
default:"en"

The language code for the output summary. Defaults to English (“en”)

max_length
integer
default:"130"

Maximum length of the summary in words

min_length
integer
default:"30"

Minimum length of the summary in words

Response

choices
array
model
string

The model used for generating the summary

object
string

Type of the response object

Example Request

curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -d '{"text": "This is a test summary."}' https://api.krosai.com/api/v1/summary

Example Response

{
  "choices": [{"text": "This is a test summary."}]
}