Skip to main content
Gloo AI Responses and Completions endpoints belong to one of three families. All three share the same model catalog, authentication, metering and rate limits. What differs is what runs around your request.

Pricing at a glance

Coming from another gateway? Direct endpoints cost what you would pay the model providers; guarded endpoints build in Gloo’s safety and values alignment, priced at the model’s rate plus 6.5%.
Published rates are listed on Supported Models and returned by GET /platform/v2/models, except System One’s, which is in the System One guide. See Billing & Plans for how credits are drawn down. Each generation family (Direct, Guarded and Grounded) comes in both request shapes, the OpenAI-compatible Responses format and the Chat Completions format, so you choose family and shape independently for generation requests. Embeddings and System One each have their own request shape.

Guarded endpoints

Choose these when you want Gloo’s safety and values alignment built in: input guardrails, output moderation and values-aligned (tradition) responses. On Guarded Completions you also get model_family selection and opt-in auto-routing, and Grounded Completions builds on Guarded Completions.
  • Responses (POST /ai/v2/guarded/responses) — the Responses format with Gloo’s guardrails.
  • Completions (POST /ai/v2/guarded/chat/completions) — fully supported, and the home of routing and model_family.

When to choose guarded

Choose direct when you want the provider’s model as-is and handle safety yourself; choose guarded when you want Gloo’s safety and values alignment built in. What guarded gives you:
  • Input guardrails and output moderation: unsafe requests are refused (403) and unsafe replies replaced before your user sees them. A model’s reasoning isn’t moderated, so decide whether to show it; see Reasoning is not moderated.
  • Values-aligned responses through the tradition parameter.
  • On Completions, model_family selection and opt-in auto_routing.
Price: the model’s published rate plus 6.5% for all of the above.

Switch between direct and guarded

Keep the request body and change the path.
If you use an OpenAI SDK, change the base URL from https://platform.ai.gloo.com/ai/v2/direct to https://platform.ai.gloo.com/ai/v2/guarded.

Direct endpoints

Direct endpoints send your request straight to the model you name, with no guardrails, output moderation, values-alignment or routing in between. What you send is what the model sees; what the model returns is what you get. Direct endpoints have /direct/ in their path. Use them when your application owns its own safety and prompting end to end: an agent framework with its own moderation, a backend that composes prompts itself, or tooling that needs the model’s own behavior, with nothing added to your request.
  • Direct Responses (POST /ai/v2/direct/responses) — the Responses shape with nothing added, for apps that own their safety; multimodal.
  • Direct Completions (POST /ai/v2/direct/chat/completions) — for existing Chat Completions tooling.
  • Anthropic Messages (POST /ai/v2/direct/anthropic/v1/messages) — Anthropic’s Messages API for Claude models, for code built on the Anthropic SDKs. It serves Claude only, has no provider failover, and returns an error for a retired model instead of serving its replacement.

What runs, and what does not

Direct means direct about content, not a bypass of the platform: Still applies on direct Responses and Completions requests:
  • Authentication (Bearer API key) and organization entitlement
  • Usage metering and billing
  • The Gloo model catalog — you address models by their gloo-* Model ID
  • Provider resiliency. When the provider currently serving your model is failing or unhealthy, your request fails over to another provider that serves the same model, and a stream cut mid-answer can be continued on a fallback provider. The model you receive is the model you asked for: resiliency changes who serves it, never what you get. See Provider Failover.
  • Platform rate limits
Deliberately not applied:
  • Input guardrails and output moderation
  • Values-alignment (tradition)
  • model_family selection and auto-routing — nothing picks a different model than the one you named (distinct from provider resiliency above, which only changes which provider serves that same model). The one exception is a deprecated model ID: once the catalog names a replacement_model, requests for it are served by that replacement. See Model Lifecycle.
  • Additions to your request — your messages go to the model verbatim
On direct endpoints, safety is your application’s responsibility. Nothing screens the input before the model sees it, and nothing reviews the output before your user does. If any part of your traffic needs screening, route it through the guarded Responses or Completions endpoints.
For what owning safety looks like in practice, see Direct Endpoints and Untrusted Content.

Images and moderation

Images and files you accept from users. On guarded and direct endpoints alike, review images and PDFs from people you don’t control with your own content checks before you send them. The model’s maker may also decline an image under its own content policy (Content Policy Refusals). See Images in Conversations.

Grounded endpoints

Grounded endpoints retrieve relevant passages from your uploaded content, add them as context before generation, and tell you whether the answer was grounded in your sources.
  • Grounded Responses (POST /ai/v1/grounded/responses) — grounding in the Responses shape.
  • Grounded Completions (POST /ai/v2/grounded/chat/completions) — grounding on Completions V2, with citation metadata and tradition.

Which endpoint should I use?

Not sure? Pick by who owns safety: Direct Responses if your app already does, guarded Responses if Gloo should screen, moderate and align answers. Both take the same request body, so switching is a URL change.

Choosing a model

Every endpoint takes a model ID, for example gloo-openai-gpt-6-luna or gloo-anthropic-claude-sonnet-4.6.
  • Pin a model for production (AI Select). A pinned model ID gives predictable behavior. Auto-routing and model_family selection (Completions endpoints) can change the model between calls.
  • See the live catalog. Supported Models lists current model IDs, capabilities, and rates, rendered from GET /platform/v2/models.
  • Pick by capability and cost. Check the catalog for each model’s capabilities (such as vision or tool calling) and rates, and test candidates with your own prompts.
  • Plan for deprecation. Models can be deprecated and retired. See Model lifecycle for how notice works and how to migrate.
For choosing, pinning and moving between models in production, see Choosing, Pinning and Updating Models.

Legacy endpoint aliases

The previous v2 paths remain as aliases for existing integrations. New integrations should use the canonical paths: The /ai/v1/grounded/responses endpoint is unchanged.
/ai/v1/responses is not an alias of the guarded endpoint. It runs without guardrails or output moderation, like the direct endpoint, so /ai/v2/direct/responses is the behavior-preserving move (a URL change only). Errors on /ai/v2/direct/responses follow the direct endpoint error contract; /ai/v1/responses keeps its existing error responses. Use /ai/v2/guarded/responses for guardrails, moderation and tradition, at the guarded platform price; it refuses unsafe requests and replaces unsafe replies.

Next steps

To build with each type step by step, follow Build with Direct Responses or Using the Guarded Responses API. Building with Guarded Endpoints and Direct Endpoints and Untrusted Content cover running each in production.

Direct Responses

The Responses shape, straight to the model.

Responses

Responses with Gloo’s guardrails, moderation and tradition.

Completions V2

Guarded Completions with model families and auto-routing.

Supported Models

Model IDs, capabilities, and pricing.