Skip to main content
Hands-on, step-by-step builds on the Gloo AI platform, with code in several languages. The tutorials follow the same order as the sidebar. New here? Start with Build with Direct Responses or Using the Guarded Responses API. Want the ideas behind them first? AI 104: Building with Gloo in the AI Learning Center covers streaming, conversations, structured output, tools, coding agents, images, cost and production, with a short example in each lesson. For the search and grounded tutorials, AI 103 explains RAG (retrieval-augmented generation) from the ground up.

Get started

Authentication with Gloo AI

Learn how to authenticate with the Gloo AI API using an API key.

AI-Assisted Development

Use AI coding assistants to quickly build applications with Gloo AI.

Responses and Completions

Build with Direct Responses

Make your first Direct Responses call, pick a model from the live catalog, stream answers, hold a conversation and call one of your functions.

Using the Guarded Responses API

Build with the Guarded Responses API. Covers typed output parsing, tradition values-alignment, SSE streaming, and vision input.

Understand Images with Claude

Send a photo or screenshot to Claude: turn a fridge photo into a recipe and a message screenshot into suggested replies.

Answer from Your Content with Grounded Responses

Ground answers in your publisher content, check whether sources were used, and show readers where an answer came from.

Use Claude through Anthropic Messages

Point the official Anthropic SDKs, Claude Code or the Claude Agent SDK at Gloo, then stream, see Claude’s thinking and call a tool.

Control Reasoning Effort

Pick a reasoning effort, read reasoning summaries, size the output limit and catch cut-off answers on every endpoint.

Using the Completions API

Learn how to integrate with the Completions API.

Streaming AI Responses in Real Time

Learn how to stream Gloo AI completions token-by-token using SSE, build a typing-effect renderer, and set up a server-side proxy to keep credentials secure.

Completions with Tool Use

Learn how to extend model capabilities via the Completions API with tool use.

Grounded Completions with RAG

Build knowledge-grounded chatbots that answer from your content using Retrieval-Augmented Generation to reduce hallucinations.

Working with Bible Translations, Reliably

Use output transforms to replace Scripture references with verse text fetched reliably from your selected Bible API.

Production

Cut Cost and Latency with Prompt Caching

Structure prompts around a stable prefix, turn on caching for Claude and OpenAI models, and confirm cache hits in usage.

Build a Resilient Client

Classify errors, retry with backoff and jitter, honor Retry-After, work with provider failover and recover interrupted streams.

Your content

Upload Files to Data Engine

Build automated pipelines that ingest content via the Upload Files API and make it available for search and AI interaction.

Build an End-to-End RAG Pipeline

A connected series: set up a publisher, ingest and enrich content, verify indexing, and wire it into search and grounded completions.

Search and recommendations

Building Custom Search

Build custom search experiences with the Search API. Full control over branding and UI.

Building Custom Recommendations

Surface relevant resources using the Recommendations API. Covers publisher-scoped ranked items and cross-publisher affiliate network discovery.

Embeddings

Semantic Search with the Embeddings API

Chunk a corpus, index it with the Embeddings API, rank chunks by cosine similarity, and generate a cited answer with Guarded Responses.

Decisions

Triage Support Tickets with System One

Send a ticket and two questions to System One, read the typed answers, and route the ticket automatically or to a person based on the probabilities.

System One Examples

Short patterns to adapt: moderation with a review band, intent routing, yes-or-no policy checks, and choosing a next step.

Next steps

Developer Quickstart

Create an API key and send your first request.

Best Practices

Security, reliability and trust once you are ready to ship.