- A Gloo AI Studio account and organization.
- Funded prepaid credits (Inference is pay as you go).
- An API key.
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.
Step 1: Create Your Account & Organization
Start by creating your account at Gloo AI Studio. Once your email is verified, the onboarding wizard will guide 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.
As the account creator, you are the Organization Admin. You can invite team
members, create Publishers, and manage your organization at any time from the
Studio sidebar. See the Admin Quickstart
for a full walkthrough.
Step 2: Choose Your Products & 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.
Step 3: Create Your API Key
The Gloo AI API uses API keys for authentication. A single API key is all you need to make API calls.Creating an API key requires a funded wallet or a payment method on file. 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.
- 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).
Treat your API key like a password. Store it in a secure location, such as
a secrets manager or environment variable. Do not commit it to source control.
Step 4: Set Your API Key
SetGLOO_API_KEY to the key you copied in Step 3. For example, in your shell:
.env file in your project:
Step 5: Make An API Call
Send your API key as a bearer token in theAuthorization header. Pick the request format you already know. Both are direct endpoints, and both are well tested.
- Direct Responses
- Direct Completions
The recommended format for new builds, with text, vision, tools and image generation.Learn more in Direct Responses.
Step 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 is the default, and you can change your mind later. The request body stays the same when you switch between direct and guarded Responses, so moving is a URL change.Direct Responses
Direct Completions
Guarded
Grounded
Guarded endpoints: when and how
Direct sends your request straight to the model you name. Guarded runs Gloo’s safety and values pipeline around the same request. What Guarded adds:- Input guardrails and output moderation. Requests that guardrails reject outright return a
403error, and moderation can replace a response. - Values-aligned responses through the
traditionparameter. - On Completions,
model_familyselection and opt-inauto_routing. - A 6.5% platform fee on top of the model’s published rate. Direct endpoints add no fee.
tradition) responses, and you would rather Gloo apply that than build it yourself. Stay on Direct when your application owns its own safety and prompting.
How to switch: keep the request body and change the path. Only the URL differs.
https://platform.ai.gloo.com/ai/v2/direct to https://platform.ai.gloo.com/ai/v2/guarded.
Learn more in Guarded Responses, Guarded Completions and Endpoint Types.
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. - Use your Gloo API key as the key.
- Use a Gloo model ID, such as
gloo-anthropic-claude-opus-5.5.

