API Fundamentals

A cute & mesmerising journey into AI/ML ✨

JSON HTTP Auth AI/ML
GET
POST
PUT
DELETE
200 OK
404

Spin through methods & codes — the building blocks of API magic!

cute teaching
Step 1 • What is an API?

A bridge that lets apps talk

  • Requests in, responses out
  • Like ordering at a restaurant
  • Machines use HTTP to chat
Step 2 • URLs, Endpoints & Methods

endpoint = a special door

  • /students/42 points to one thing
  • GET, POST, PUT, DELETE
  • Methods say what action we want
Step 3 • JSON — Your New BFF

Simple key–value data

  • Looks like {"name":"Ada"}
  • Easy to read & parse
  • Great for AI/ML data
Step 4 • Status Codes & Errors

Know what happened

  • 200 ✅ OK
  • 404 ❌ Not Found
  • 429 ⏳ Rate Limited
Step 5 • Auth: Keys & Tokens

Keep secrets safe

  • Use HTTP Authorization headers
  • Never commit keys to GitHub
  • Rotate tokens regularly
Step 6 • AI/ML APIs

Send data → get predictions

  • Vision, Text, Speech models
  • Balance latency & accuracy
  • Great for apps & bots

Graphical Visualisations

📈 Training Progress (AI/ML)
⚡ API Latency by Method
🌐 Hands‑on: Make a Request
Result will appear here as JSON
coach robot
Coach Bot
Tip: An endpoint is just a special URL!

Your Colour‑coded Learning Path

Follow these steps, then build your first AI app that calls a model API to classify images or generate text.

  • Red → Basics (What/Why)
  • Blue → Making Requests
  • Green → JSON & Data
  • Pink → Errors & Safety
  • Gold → Auth & Keys
  • Purple → AI/ML APIs
Understand APIs
Explore Endpoints
Read JSON
Check Status
Use Keys
Call AI!