Fast, accurate, and affordable AI-powered text summarization API
- ⚡ Fast - Average response time < 2 seconds
- 🎯 Accurate - Powered by GLM-4 AI model
- 💰 Affordable - $0.01 per request (cheapest in the market)
- 🔄 Batch Processing - Up to 10 items per request
- 💾 Smart Caching - Redis cache for repeated requests
- 🌍 Multi-language - Supports Chinese, English, and more
- Content Aggregators: Auto-summarize news articles
- SEO Tools: Generate meta descriptions
- Social Media: Create post summaries
- Research Tools: Quick literature screening
- Customer Support: Auto-generate ticket summaries
git clone https://github.com/yourusername/ai-summary-api.git
cd ai-summary-api
npm install
cp .env.example .env
# Edit .env with your API keys
npm startCreate a .env file:
PORT=3000
GLM_API_KEY=your_api_key_here
REDIS_URL=redis://localhost:6379
CACHE_TTL=3600curl -X POST http://localhost:3000/api/v1/summarize \
-H "Content-Type: application/json" \
-d '{
"text": "Your long text here...",
"maxLength": 200,
"language": "auto"
}'Response:
{
"summary": "Summarized content...",
"length": 150,
"language": "zh",
"cached": false
}curl -X POST http://localhost:3000/api/v1/summarize \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/article"
}'curl -X POST http://localhost:3000/api/v1/summarize/batch \
-H "Content-Type: application/json" \
-d '{
"items": [
{"id": "1", "text": "First text..."},
{"id": "2", "text": "Second text..."}
],
"maxLength": 200
}'| Plan | Price | Requests |
|---|---|---|
| Free | $0 | 100/month |
| Basic | $9.99/month | 1,000/month |
| Pro | $29.99/month | 5,000/month |
| Enterprise | $99.99/month | Unlimited |
docker build -t ai-summary-api .
docker run -p 3000:3000 --env-file .env ai-summary-apiComing soon...
Full API documentation: docs/API.md
npm testContributions, issues and feature requests are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
AI Worker - Independent Developer
- 📧 Email: support@example.com
- 💬 Discord: [Join our community]
- 🐦 Twitter: @aisummaryapi
- GLM-4 AI Model
- Express.js
- Redis
- All contributors
If you find this project useful, please give it a ⭐️!
Made with ❤️ by an AI, for humans
Donate: 0xc1C9a5D2cC88B5F4A882Ecde31989ef1b5dDA60f (ETH/BSC/Polygon)