- A Gloo AI Studio account and organization.
- Funded prepaid credits (Inference is pay as you go).
- An API key.
tradition), use Guarded: same request, different path.
Inference needs funded credits. Grounded endpoints and Search also need Data Engine access, which is separate and currently at capacity for new organizations. See Billing & Plans.
Set up and send your first request
1
Create your account and organization
Start by creating your account at Gloo AI Studio.Once your email is verified, the onboarding wizard guides you through setting up your organization:
- Create your Organization: Give your team a name to manage projects and collaboration.
- Invite your Team: (Optional) Add email addresses to invite collaborators immediately, or skip this step.
2
Choose your products and add credits
Onboarding asks what brings you to Gloo. For API access, choose Inference. It’s pay as you go, funded by prepaid credits. You can add Gloo Code in the same checkout if you want the coding agent too.
- Add opening credits: Pick a starting credit balance on the review screen: $10, $25, $50 or $100, or any custom amount from $1 to $100. API usage draws it down at each model’s rate, and you can turn on auto-refill later from the Billing page.
- Turn on auto-refill: From the Billing page, auto-refill charges your saved card when your balance runs low, so you do not have to watch the balance. See Prepaid Credits.
- Pay once for everything: One checkout covers your opening credits and the first month of any Gloo Code tier. Your card is saved for future fills.
- Know the cap: Credit-funded API usage is capped per organization at $4,000 per calendar month by default, regardless of balance. Support can raise or lower it on request.
3
Create your API key
A single API key is all you need to authenticate API calls. Creating one requires credit in your wallet (a legacy plan needs a payment method on file instead). If you skipped adding credits in step 2, the API Keys page sends you to the Billing page first. See Prepaid Credits to add credits.To create one:
- Click API Keys in the Studio sidebar.
- Click Create New Key. Enter a name for the key and click Create.
- Copy the API key immediately. It is shown only once; after that, Studio displays only the obfuscated value (e.g.,
sk_...3456).
4
Set your API key
Set Or add it to a
GLOO_API_KEY to the key you copied in step 3. For example, in your shell:.env file in your project:5
Make an API call
Send your API key as a bearer token in the Request failed? The usual causes are a mistyped key, an empty balance, or a wrong model ID. See Get help.A Direct Responses reply looks like this (abridged):
Authorization header. Pick the request format you already know. The tabs use direct endpoints; for Gloo’s guardrails and values alignment, change /direct/ to /guarded/ in the Responses or Chat Completions URL.- Direct Responses
- Direct Completions
- Anthropic Messages
6
Keep your wallet flowing
Without auto-refill, requests stop when your balance reaches zero. Turn it on once and Gloo keeps your wallet topped up, within the limits below.
- On the Billing page, find the Auto-refill switch on the Wallet card.
- Set the amount to add each time ($10 to $100).
- Flip the switch on and confirm.
Choose your path
Direct or 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. The request body is the same, so switching later is a URL change. See When to choose guarded.
Guarded
For new builds where Gloo should handle safety and values. Input guardrails, output moderation and
tradition; on Completions, also model families and auto-routing. Grounded Completions builds on it. Priced at the model’s rate plus 6.5%.Direct Responses
For new builds that own their safety. You name the model and your request goes straight to it. Billed at the model’s rate.
Direct Completions
For existing Chat Completions tooling. Same directness, the
messages format you already use. Billed at the model’s rate.Anthropic Messages
For code on the Anthropic SDKs. Anthropic’s Messages API for Claude models, with your Gloo API key. Billed at the model’s rate.
Grounded
Answer from your own content. Retrieval over your library, with optional citations. Needs Data Engine access.
Coming from another provider?
If you already call OpenAI or another gateway, you can usually move with three changes. See Migrate from another provider for the step-by-step version.- Point your client at
https://platform.ai.gloo.com/ai/v2/direct, orhttps://platform.ai.gloo.com/ai/v2/guardedfor Gloo’s guardrails and values alignment. - Use your Gloo API key as the key.
- Use a Gloo model ID, such as
gloo-anthropic-claude-opus-5.5.
Getting help
Stuck? Check the common problems, then open Support at the bottom of the Studio sidebar. It is the fastest way to reach us, for API, account, billing and key questions. See Get help.More to explore
- Stream responses as tokens arrive.
- Cut repeat costs with prompt caching.
- Use the OpenAI SDK for Python and Node.js.
- Browse more than 160 models with context windows and rates.
- Ground answers in your content (needs Data Engine access).
- Get typed decisions with probabilities from System One.
- Keep your wallet topped up with auto-refill.
- Add Gloo Code seats: a coding agent from $20 per seat per month that signs in with your Gloo AI account and is billed separately from your credits (see Pricing).
Next steps
Build with Direct Responses
A step-by-step tutorial: your first request, streaming, multi-turn chat, tools and error handling.
Compare endpoint types
Direct, guarded and grounded side by side, and how to pick a model.
Try tools
Let the model call your functions and return structured results.
Handle errors and retries
Know which failures to retry before you ship.

