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.
To enable API access, you must set up a Pay-As-You-Go plan.
Add a Payment Method: Enter your credit card details to enable API usage. You are only charged for what you use.
Set a Spend Limit: You can define a weekly spending limit (e.g., $50/week) to control costs. If you don’t set a limit, you’ll be capped at $100/week which is also the maximum you can spend in a week for the Pay-As-You-Go plan.
If you skip billing: You can select “I’ll do this later”, but your account will be restricted to the Studio Playground (web interface only). You will not be able to make API calls until a payment method is added.
Want more details? See our comprehensive guides:
Billing & Plans - Plan comparison, upgrades, and payment management
If you skipped the payment setup step you will land in Studio Playground where you can use a chat interface to the Completions API.If you added a payment method, you will be able to generate API credentials and make your first API call.
The Gloo AI APIs use OAuth2 client credentials flow for authentication. To make an API call, you:
Get API Credentials (Client ID and Client Secret) from Gloo AI Studio
Use those credentials to get a short-lived access token
Use the access token to authenticate your API calls
Repeat step (2) whenever the access token expires
Here’s how to get your API credentials:
Navigate to API Credentials in the Studio Dashboard.
Copy the Client ID and Client Secret values if there are existing credentials, otherwise go to the next step.
Click Create New Key to generate a Client ID and Client Secret.
Prefer using an SDK? Now that you have credentials, you can use the OpenAI Python or Node.js libraries with Gloo AI Studio. See Libraries & SDKs for a streamlined approach that handles token exchange for you.
Access tokens expire after one hour. Monitor the token’s expiration by checking the ‘exp’ claim in the JWT payload. Since refresh tokens are not provided with client credentials, you will need to request a new access token when the current one expires.