Text Summarization API

Generate concise summaries of text content in multiple languages.

Summary Endpoint

POST /api/v1/summary

Create a concise summary of text content with support for various 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:

    • text string: The generated summary text.

    • index integer: Index of the choice in the array.

    • finish_reason string: Reason why the completion finished.

  • model string: The model used for generating the summary.

  • object string: Type of the response object.

Example Request

Example Response

Last updated