iApp Text Summarization API [version 2] 🆕
AI-powered text summarization service
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
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
Style | Description | Best For |
---|---|---|
standard | Formal summary with introduction and conclusion | Business documents, reports |
clarify | Includes notes on unresolved points | Technical documents, discussions |
friendly | Simple, easy-to-understand summary | General content, blogs |
API Usage
Endpoints
POST /v2/text/summarize
- Summarize single textPOST /v2/text/summarize/batch
- Summarize multiple textsGET /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 Name | Endpoint | IC Per Characters | On-Premise |
---|---|---|---|
Thai Text Summarizer | iapp_thai_text_summarization_v1 | 1 IC/400 Characters | Contact |