Title Generation API

Automatically generate concise and relevant titles from long-form text.

🟢 Endpoint

POST https://kubus.co.id/api/v1/generate/title/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": [
                "Laptop ini dilengkapi dengan prosesor terbaru dan baterai tahan lama, cocok untuk kerja mobile.",
                "Pelatihan ini dirancang untuk meningkatkan keterampilan komunikasi dalam dunia profesional."
            ]
            }

✅ Response

A successful response will return generated titles for each input text:

{
            "results": [
                {
                "text": "Laptop ini dilengkapi dengan prosesor terbaru dan baterai tahan lama, cocok untuk kerja mobile.",
                "title": "Laptop Mobile Terbaik Sekarang"
                },
                {
                "text": "Pelatihan ini dirancang untuk meningkatkan keterampilan komunikasi dalam dunia profesional.",
                "title": "Meningkatkan Keterampilan Komunikasi Profesional"
                }
            ],
            "status": "success"
            }

Notes

  • title is generated to represent the main idea of the input text.
  • Use this API for content summarization, headline generation, SEO optimization, etc.
  • Maximum 10 texts per batch.
  • Ensure your API key is valid and not expired.