Skip to main content
Sign up, add as little as $1 in credits, create an API key, and send a request. Most of this is account setup; the request itself is one command. Before your first request you need:
  1. A Gloo AI Studio account and organization.
  2. Funded prepaid credits (Inference is pay as you go).
  3. An API key.
Once you have a key, this is the whole request:
This is a direct endpoint, billed at the model’s published rate. Gloo adds nothing between your prompt and the model you name: nothing screens your input or reviews the output, so your application owns its own safety. To have Gloo apply guardrails, output moderation and values alignment (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:
  1. Create your Organization: Give your team a name to manage projects and collaboration.
  2. 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.
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.
Once your products are active, create an API key below. With a key, you can call the API directly or open the Playground in Studio to chat with models in the browser. The Playground asks you to paste your key, and both routes count against your usage limit.
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:
  1. Click API Keys in the Studio sidebar.
  2. Click Create New Key. Enter a name for the key and click Create.
  3. 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. See API Key Security.
Stuck creating a key? See Get help.
4

Set your API key

Set GLOO_API_KEY to the key you copied in step 3. For example, in your shell:
Or add it to a .env file in your project:
5

Make an API call

Send your API key as a bearer token in the 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.
The Responses format, with text, vision, tools and image generation.
Learn more in Direct Responses.
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):
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.
  1. On the Billing page, find the Auto-refill switch on the Wallet card.
  2. Set the amount to add each time ($10 to $100).
  3. Flip the switch on and confirm.
Gloo then charges your saved card when your balance runs low, up to $1,000 per rolling 7 days. If you reach that cap, or your organization’s monthly API spend limit, requests can still stop. Only organization Admins can add credits. See Prepaid Credits.
Want Gloo Code too? It is a monthly plan per seat, from $20 a month, and it does not draw from your credits. See Pricing.

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.
Not sure? Endpoint Types compares them side by side, and Guarded endpoints shows what guarded gives you and how to switch.

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.
  1. Point your client at https://platform.ai.gloo.com/ai/v2/direct, or https://platform.ai.gloo.com/ai/v2/guarded for Gloo’s guardrails and values alignment.
  2. Use your Gloo API key as the key.
  3. 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

New to prompts, tokens and models? Prompting & Generation in the AI Learning Center explains the ideas behind these requests. Ready to build a full app? AI 104: Building with Gloo takes you from streaming to production, and Best Practices covers retries, key safety and request structure once you ship.

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.