From Ideas to a Working App
In AI 101 you learned what models are and how they work. In AI 102 you learned to write prompts that get good answers. In AI 103 you learned how RAG lets a model answer from your own content. This course is where you write the code. Each lesson takes one thing a real application needs, explains what it is and why it matters, and gives you a small example you can run against the Gloo AI API. By the end, you’ll know how to build an app that streams answers, keeps a conversation going, returns data your code can trust, calls your own functions, understands how coding agents work, handles images, points people to helpful resources, stays within budget and keeps working when something goes wrong.Who This Course Is For
This course is for developers who have done AI 101 to 103, or who already know the ideas, and want to build on Gloo. You should be comfortable making an HTTP request and reading JSON. The examples use Python with the OpenAI SDK, plus cURL. The SDKs and Libraries guide shows the same setup in Node.js.Before You Start
You’ll need three things:- A Gloo AI account with credit. The Developer Quickstart takes you from sign-up to your first request.
- An API key. Create one on the API Keys page in Gloo AI Studio and set it as the
GLOO_API_KEYenvironment variable. - The OpenAI SDK. Gloo’s API is OpenAI-compatible, so the official SDK works when you point it at Gloo:
tradition) at the model’s rate plus 6.5%. When a lesson needs Gloo’s guardrails, or a feature documented on another endpoint, it says so. Endpoint Types compares them all.
The Lessons
Lesson 1: Streaming Responses
Show the answer as the model writes it.
Lesson 2: Conversations That Remember
Keep history, stay inside the context window and trim old turns.
Lesson 3: Structured Output
Get JSON back and check it before you use it.
Lesson 4: Tools and MCP
Let the model call your functions, and connect your coding assistant to Gloo’s docs.
Lesson 5: Coding Agents
How an agent plans, acts and checks its work, and where a person approves.
Lesson 6: Images In and Out
Send images to a model and generate new ones.
Lesson 7: Recommendations
Suggest relevant books, articles and videos from your content.
Lesson 8: Cost and Speed
Token pricing, prompt caching, choosing a model and reasoning effort.
Lesson 9: Production-Ready
Rate limits and retries, failover and routing, and model lifecycle.
How Each Lesson Works
Every lesson follows the same pattern:- Core Concepts explain the idea in plain words.
- Get Started gives you a small example to run.
- Good to Know covers the details that catch people out.
- Learn more links to the full guide or reference, so you can go deeper.
- What’s next points you to the next lesson.
What’s next
Start with Lesson 1, where you’ll make the answer appear word by word instead of all at once.Lesson 1: Streaming Responses
Show the answer as the model writes it.

