Spaces:
Runtime error
Runtime error
π― QUICK START: Deploy AJ API for FREE with UNLIMITED Requests
β‘ Fastest Way (3 Minutes)
Option 1: Render.com (EASIEST - Click & Deploy)
- Go to https://render.com
- Sign up with GitHub (free)
- Click "New +" β "Blueprint"
- Connect your GitHub repository:
tomoacademycare-beep/AJ - Click "Apply"
- Wait 5-10 minutes
- Get your URL:
https://aj-api-xxxx.onrender.com
β Done! Your API is live with unlimited requests!
π Option 2: Railway.app (BEST PERFORMANCE)
- Go to https://railway.app
- Sign up with GitHub
- Click "New Project" β "Deploy from GitHub repo"
- Select your
AJrepository - Wait 5-10 minutes
- Get your URL from Railway dashboard
β No sleep mode! Better than Render!
π Files Already Created
Your repository now has:
- β
render.yaml- Render.com config - β
railway.json- Railway.app config - β
fly.toml- Fly.io config - β
Dockerfile- Docker configuration - β
DEPLOY_EVERYWHERE.ps1- Auto-deployment script
π¬ Step-by-Step with Screenshots
RENDER.COM (Recommended)
Step 1: Sign Up
Step 2: Create Blueprint
- Click "New +" button (top right)
- Select "Blueprint"
- Click "Connect GitHub"
Step 3: Select Repository
- Choose
tomoacademycare-beep/AJ - Render auto-detects
render.yaml
Step 4: Deploy
- Click "Apply"
- Wait for build (5-10 minutes)
- β Your API is live!
Step 5: Get Your URL
- Go to Dashboard
- Click on your service
- Copy the URL:
https://aj-api-xxxx.onrender.com
π§ͺ Test Your Deployed API
Health Check
curl https://YOUR-URL/health
API Info
curl https://YOUR-URL/api/info
Chat (Main Endpoint)
curl -X POST "https://YOUR-URL/api/chat" \
-H "Content-Type: application/json" \
-d '{"message":"Hello AJ, who are you?"}'
For ReqBin.com
URL: https://YOUR-URL/api/chat
Method: POST
Headers:
Content-Type: application/json
Body:
{
"message": "Hello AJ"
}
π₯ Keep It Awake (No Sleep Mode)
Render free tier sleeps after 15 minutes of inactivity.
Solution: UptimeRobot (Free)
- Go to https://uptimerobot.com
- Sign up (free account)
- Add Monitor:
- Type: HTTP(s)
- URL:
https://YOUR-URL/health - Interval: 5 minutes
- Save
β Your API will never sleep!
π° Cost Breakdown
| Platform | Monthly Cost | Requests | Sleep Mode | Build Time |
|---|---|---|---|---|
| Render | $0 | Unlimited | Yes* | 5-10 min |
| Railway | $0 ($5 credit) | Unlimited | No | 5-10 min |
| Fly.io | $0 | High | No | 5-10 min |
| Hugging Face | $0 | Unlimited | Yes* | 10-15 min |
*Can be prevented with UptimeRobot
π― My Recommendation
Deploy to Both:
- Primary: Railway.app (No sleep, best performance)
- Backup: Render.com (Always free)
Result:
- β 99.9% uptime
- β Unlimited requests
- β Zero cost
- β Auto-scaling
π Troubleshooting
Build Failed?
Check:
- Dockerfile is present
- All files committed to GitHub
- Repository is public
API Not Responding?
Check:
- Service is running (green status)
- Health endpoint:
/health - Check logs in dashboard
Too Slow?
Solutions:
- Use Railway (no cold starts)
- Set up UptimeRobot keep-alive
- Deploy to multiple platforms
π Support
Questions?
- GitHub: https://github.com/tomoacademycare-beep/AJ
- Website: https://ajstudioz.co.in
π What You Get
After deployment:
- β Public HTTPS URL
- β Unlimited API requests
- β Auto-scaling
- β SSL certificate included
- β Global CDN
- β Automatic updates from GitHub
- β Usage analytics
- β 24/7 availability
ALL FOR FREE! π
π Quick Links
- Render: https://render.com
- Railway: https://railway.app
- Fly.io: https://fly.io
- UptimeRobot: https://uptimerobot.com
- Your GitHub: https://github.com/tomoacademycare-beep/AJ
Created by AJ STUDIOZ Making AI accessible to everyone!