AI-powered pricing intelligence for SaaS products.
SaaS Pricing Intelligence API analyzes market data, competitor pricing, and customer segments to recommend optimal pricing strategies for SaaS companies.
- Competitor pricing analysis
- Customer segment-based pricing
- Price elasticity modeling
- MRR optimization recommendations
- Usage-based pricing intelligence
| Tier | Monthly Price | Features |
|---|---|---|
| Starter | $49 | 100 API calls/mo, basic analytics |
| Growth | $199 | 1,000 API calls/mo, advanced analytics, competitor tracking |
| Enterprise | $999 | Unlimited API calls, custom models, dedicated support |
# Install dependencies
pip install -r requirements.txt
# Run the prototype
python -m src.main
# Run tests
pytest tests/from src.app import PricingIntelligenceEngine, PricingRequest
engine = PricingIntelligenceEngine()
request = PricingRequest(
product_name="My SaaS Product",
current_price=99,
competitors=["competitor_a", "competitor_b"],
customer_segment="smb",
features=["feature1", "feature2"]
)
recommendation = engine.analyze(request)
print(recommendation)- Push this code to a GitHub repository
- Go to Render Dashboard
- Create a new "Web Service" and connect to your GitHub repo
- Render will automatically detect the
render.yamlconfiguration - Add environment variables:
FLASK_ENV=productionPORT=5000
- Your API will be live at
https://your-service-name.onrender.com
# Using Docker
docker build -t saas-pricing-api .
docker run -p 5000:5000 saas-pricing-api
# Using docker-compose
docker-compose up -d- Create a Stripe account
- Create Payment Links for each pricing tier:
- Starter ($0): Free signup
- Startup ($49/mo): Monthly subscription
- Business ($199/mo): Monthly subscription
- Enterprise ($499/mo): Contact sales
- Replace the test URLs in
landing.html:https://buy.stripe.com/test_starterhttps://buy.stripe.com/test_startuphttps://buy.stripe.com/test_businesswith your real Stripe Payment Links
- Optionally configure Stripe Webhooks to point to
/api/webhook/stripe
Run this script after deployment to verify everything works:
./verify_deployment.sh https://your-service.onrender.com- Push to GitHub: Ensure this code is in a GitHub repository
- Connect to Render:
- Go to Render Dashboard
- Create a new Web Service
- Connect to your GitHub repository
- Render will auto-detect
render.yaml
- Configure Environment:
FLASK_ENV=productionPORT=5000
- Deploy: Click Deploy
- Verify: Run
./verify_deployment.sh https://your-url.onrender.com - Wire Stripe: Replace test links in
landing.htmlwith real Payment Links
| Variable | Description | Default |
|---|---|---|
| PORT | HTTP port | 5000 |
| FLASK_ENV | Environment | development |
| STRIPE_WEBHOOK_SECRET | Stripe webhook signing secret | - |