Text Summarization API

Generate concise summaries from long-form text inputs.

🟒 Endpoint

POST https://kubus.co.id/api/v1/text/summarize/batch

Enable

πŸ” Headers

Use your API key to authorize requests. Replace YOUR_API_KEY with your actual key.

                Authorization: Bearer YOUR_API_KEY
                Content-Type: application/json
            
Manage Your API Keys

πŸ“¦ Request Body

Example request body:


            {
            "texts": [
                "Borobudur is the world’s largest Buddhist temple located in Central Java, Indonesia. 
                Built in the 9th century, the monument consists of nine stacked platforms, six square and three circular, 
                topped by a central dome. It is decorated with 2,672 relief panels and 504 Buddha statues."
            ]
            }

βœ… Response

Example a successful request returns:


            {
            "results": [
                {
                "summary": "Borobudur adalah kuil Buddha terbesar di dunia yang terletak di Jawa Tengah, Indonesia. 
                Kuil ini dibangun pada abad ke-9 dan memiliki struktur dengan 9 lapisan platform, 6 persegi dan 3 lingkaran.",
                "text": "Borobudur is the world’s largest Buddhist temple located in Central Java, Indonesia. 
                Built in the 9th century, the monument consists of nine stacked platforms, six square and three circular, 
                topped by a central dome. It is decorated with 2,672 relief panels and 504 Buddha statues."
                }
            ],
            "status": "success"
            }

Notes

  • Each text input is summarized independently by the model.
  • Maximum 10 texts per batch are allowed.
  • The summary is automatically translated to Indonesian if the original text is in English.
  • Ensure your API key is active and valid.