The cost of AI functionality is made up of three main components:
Cost structure
- base cost: Open source software itself is free (MIT License)
- API invocation fee: Billing based on the amount of OpenAI/Gemini tokens actually used (~$0.002/thousand tokens)
- O&M costs: Self-hosting is subject to server costs (~$5/month VPS)
Cost Optimization Strategies
- caching mechanism::
- Enable result caching for identical URL content
- Set TTL to 24 hours
- Model Selection::
- Gemini-pro prioritized for English content (low cost 30%)
- Simple categorization tasks available with GPT-3.5-turbo
- batch file::
- configure
ffun workers(used form a nominal expression)--batch-size=50parameters - Reduce API calls with request consolidation
- configure
After testing, the optimized API cost for processing 10,000 news items per month can be controlled within $2.
This answer comes from the articleFeeds.Fun: RSS feeds with automatic tagging and filtering of newsThe































