Skip to main content

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:
  1. A Gloo AI account with credit. The Developer Quickstart takes you from sign-up to your first request.
  2. An API key. Create one on the API Keys page in Gloo AI Studio and set it as the GLOO_API_KEY environment variable.
  3. The OpenAI SDK. Gloo’s API is OpenAI-compatible, so the official SDK works when you point it at Gloo:
Most lessons use Direct Responses so the examples show the model’s own output. Gloo has two main kinds of endpoint: direct endpoints add nothing between you and the model and bill the model’s rate, while guarded endpoints give you guardrails, output moderation and values alignment (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.
Each lesson also has a Try it on Gloo tip, after its key takeaway, that points to the place in the docs where you’ll use the idea.
Try it on Gloo: if you haven’t made a request yet, start with the Developer Quickstart, then come back for Lesson 1.

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.