Skip to main content

iApp Text Summarization API [version 2] 🆕

AI-powered text summarization service

Version Status

Welcome to iApp Thai Text Summarization API, an AI product developed by iApp Technology Co., Ltd. Our API provides powerful text summarization capabilities for Thai language content, condensing long texts into concise summaries while preserving key information.

Try Demo

Demo key is limited to 10 requests per day per IP
Click here to get your API key

Getting Started

Prerequisites

  • Text input (English or Thai)
  • Maximum output tokens: 8192
  • API key from iApp Technology

Quick Start

  • Fast processing with concurrent batch support
  • Multiple summarization styles
  • Bilingual support (EN/TH)

Key Features

  • AI-powered text summarization
  • Multiple summarization styles
  • Bilingual support (English/Thai)
  • Batch processing capability
  • Customizable output length

Summarization Styles

StyleDescriptionBest For
standardFormal summary with introduction and conclusionBusiness documents, reports
clarifyIncludes notes on unresolved pointsTechnical documents, discussions
friendlySimple, easy-to-understand summaryGeneral content, blogs

API Usage

Endpoints

  • POST /v2/text/summarize - Summarize single text
  • POST /v2/text/summarize/batch - Summarize multiple texts
  • GET /v2/text/health - Check API status

Parameters

Single Text Summarization

{
"text": "string", // Required: Text to summarize
"style": "standard", // Optional: "standard" | "clarify" | "friendly"
"language": "th", // Optional: "en" | "th"
"max_output_tokens": 8192 // Optional: Max length of summary
}

Batch Summarization

{
"texts": ["string"], // Required: Array of texts to summarize
"style": "standard", // Optional: "standard" | "clarify" | "friendly"
"language": "th", // Optional: "en" | "th"
"max_output_tokens": 8192 // Optional: Max length of summary
}

API Request Examples

Using cURL:

# Single text summarization
curl -X POST "https://api.iapp.co.th/v2/text/summarize" \
-H "Content-Type: application/json" \
-H "apikey: YOUR_API_KEY" \
-d '{
"text": "Your text to summarize",
"style": "standard",
"language": "en",
"max_output_tokens": 500
}'

# Batch summarization
curl -X POST "https://api.iapp.co.th/v2/text/summarize/batch" \
-H "Content-Type: application/json" \
-H "apikey: YOUR_API_KEY" \
-d '{
"texts": ["First text", "Second text"],
"style": "standard",
"language": "en",
"max_output_tokens": 500
}'

Using Python:

import requests

# Single text summarization
response = requests.post(
"https://api.iapp.co.th/v2/text/summarize",
headers={"apikey": "YOUR_API_KEY"},
json={
"text": "Your text to summarize",
"style": "standard",
"language": "en",
"max_output_tokens": 500
}
)

# Batch summarization
response = requests.post(
"https://api.iapp.co.th/v2/text/summarize/batch",
headers={"apikey": "YOUR_API_KEY"},
json={
"texts": ["First text", "Second text"],
"style": "standard",
"language": "en",
"max_output_tokens": 500
}
)

Best Practices

  • Choose the appropriate style for your content type
  • Adjust max_output_tokens based on your needs:
    • Shorter summaries (200-500 tokens): Quick overviews
    • Medium summaries (500-1000 tokens): Detailed summaries
    • Longer summaries (1000+ tokens): Comprehensive coverage
  • For batch processing, consider the number of concurrent requests
  • Use the clarify style for technical content that needs additional context

Pricing

AI API Service NameEndpointIC Per CharactersOn-Premise
Thai Text Summarizeriapp_thai_text_summarization_v11 IC/400 CharactersContact