Posts

Free AI API Code: Build Your Own LLM Gateway with FastAPI (Open Source)

Want one single API that can talk to many AI models? This free open-source project does exactly that. It is called LLM Gateway — a small Python (FastAPI) server that sits in front of AI providers like OpenAI, OpenRouter, Groq or a local Ollama, and gives you one OpenAI-style address for all of them. It also has API-key login, rate limiting, automatic retries, and a live dashboard that shows requests, tokens, cost and speed. Best part: it runs fully offline with a built-in demo (mock) provider, so you can test everything without any paid API key. What you need: Python installed on your computer. That is all. STEP 1 — Download and run the code git clone https://github.com/nisarahmad78/llm-gateway.git cd llm-gateway python -m venv .venv source .venv/bin/activate pip install -r requirements.txt cp .env.example .env uvicorn app.main:app --port 8000 Now open these in your browser: Dashboard: http://localhost:8000/ API docs: http://localhost:8000/docs Health check: http://localhost:8000/healt...

What Are AI Agents? A Beginner's Guide to the Future of AI

Welcome to AI Agents Hub — your simple guide to the world of AI agents. What is an AI agent? An AI agent is a smart software program that can understand a goal, plan the steps, and take action on its own — not just answer questions. Unlike a simple chatbot that only replies, an AI agent can browse the web, use apps and tools, write and run code, manage files, and complete multi-step tasks with very little human help. How do AI agents work? They understand your goal in plain language. They break it into small steps and make a plan. They use tools — search, email, calendars, spreadsheets, websites — to do the work. They check the result and report back to you. Where are AI agents used? Business: customer support, sales follow-ups, data entry and reports Offices: scheduling meetings, managing email, preparing documents Online stores: tracking orders, inventory and pricing Personal life: planning trips, reminders, learning and research Why does it matter? AI agents save tim...