Flourishing Engine Features
The Flourishing Engine is designed as an AI infrastructure and system that serves human flourishing.- Curated Foundational Models: Access the best foundational models available without decision fatigue or unsafe defaults.
- Safe & Values-Aligned: Values alignment and AI safety is evaluted at every layer of the input and output, considering six dimensions of AI safety (Physical, Ethical, Emotional, Factual, Theological, and Security)
- Intelligent Routing: Optional automatic model routing optimizes your outputs for quality, cost, and intent.
Why Completions V2?
Completions V2 builds on the standard chat completions format you already know, but adds three powerful routing mechanisms to help you get the best performance for every query.Choose your Routing Strategy
| Routing Mode | Best For | How It Works |
|---|---|---|
| AI Core | General chat, customer support, content generation | Analyzes each query and automatically selects the optimal model tier (speed vs. capability) |
| AI Core Select | Provider preference, testing across model families | Specify a provider (OpenAI. Anthropic, Gemini, Open Source) and let Gloo AI pick the best model from that family |
| AI Select | Full control, benchmarking, specialized tasks | Explicitly choose a specific model such as gloo-openai-gpt-5-mini or gloo-anthropic-claude-haiku-4.5 |
1. AI Core (Auto-Routing) [Recommended]
Let Gloo AI analyze your query and choose the best model automatically:2. AI Core Select (Model Provider Selection)
Use AI Core Select if you want to use a specific provider (model_family) but want Gloo AI to optimize your output by choosing the model from within that group.
3. AI Select (Direct Model Choice)
Specify the exact model for your output.Additional Features
Completions V2 isn’t just about routing—it’s designed to support the broader goal of values-aligned AI that is safe, intelligent, and production-ready.Denomination-Aware
Customize responses based on theological perspectives:"evangelical", "catholic", "mainline", or omit for a general Christian perspective
Streaming Support
Get real-time responses for better UX:Tool Calling
Function calling works seamlessly with all routing modes:Prerequisites
Before starting, ensure you have:- A Gloo AI Studio account
- Your Client ID and Client Secret from the API Credentials page
- Authentication setup - Complete the Authentication Tutorial first
https://platform.ai.gloo.com/ai/v2/completions
Operation: POST
Example CURL Request:
Request Parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
messages | array | Yes | Chat message history |
auto_routing | boolean | Conditional | Enable smart routing |
model | string | Conditional | Gloo model id |
model_family | string | Conditional | Provider family (openai, anthropic, google, open source) |
denomination | string | No | Theological Perspective |
stream | boolean | No | Enable streaming (default: false) |
temperature | float | No | Sampling temperature (0.0-2.0) |
max_tokens | integer | No | Maximum response length |
tools | array | No | Function calling definitions |
auto_routing, model, or model_family

