How to Manage Your HostGator API Keys
API Keys enable your applications to connect to the HostGator AI Gateway using an authenticated API key and access AI models such as GPT, Claude, Gemini, Grok, and more. This guide walks you through generating a new API key, finding your Gateway endpoint, connecting your key to an application, and deleting unused keys.
How to Manage API Keys in Your HostGator Customer Portal
API keys provide authenticated access to AI models through the HostGator AI Gateway. Once credits have been added to your account, you can create, use, and delete API keys from the AI Tooling dashboard in your HostGator Customer Portal.
Before You Begin
- Prerequisite: You must add AI Credits to your account balance before you can create or manage API keys. AI Credits are a paid add-on. For current AI Credit pricing, visit HostGator: AI Models and Credit Pricing.
- Security Notice: We show your API key only once upon creation. If you lose it, you must generate a replacement key.
Create an API Key
Follow these steps to generate a new API key and obtain your Gateway endpoint for your applications.
- Log in to your Customer Portal.
- Click Hosting on the left-hand menu.

- Click the Manage button on the hosting package where you want to create an API Key.

- Click the AI Tooling button on your hosting details page.

- Select Manage API Keys.

Note: If you have no credits, this button remains disabled until you purchase AI Credits. For current AI Credit pricing, visit HostGator: AI Models and Credit Pricing. - Note your Gateway endpoint — you'll enter this in your application:
https://gateway.ai.hostgator.com/. Click Copy to copy it to your clipboard.
- Click + Create API Key.

- Enter a Key Name to identify where you'll use it, then click Create Key.

- Click Copy on the "Save your API key" screen and store the key in a secure location.

- Click Done.
- Your new key now appears in your API Keys table showing its name, creation date, and last-used date.

After completing these steps, you can connect your application to the AI Gateway and start using your AI credits.
Using Your API Key
Point your application's SDK base URL to your HostGator Gateway endpoint and use your API key to authenticate requests. Because this connection is OpenAI-compatible, many existing integrations only need the base URL and API key updated.
- Open the settings or configuration file for the application or SDK you want to connect.
- Set the base URL (sometimes called the API endpoint) to your Gateway endpoint:
https://gateway.ai.hostgator.com/. - Enter your API key in the API key field. Store the key in an environment variable or secrets manager rather than in your source code.
- Set the model to a supported model ID from HostGator: AI Models and Credit Pricing.
- Send a test request to confirm the connection works.
For example, with an OpenAI-compatible Python SDK:
from openai import OpenAI
client = OpenAI(
base_url="https://gateway.ai.hostgator.com/",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="MODEL_ID",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
Deleting an API Key
Delete a compromised or unused key to stop it from being used with your account.
- Locate the key you want to remove and click the trash icon in its row.

- Click Delete to confirm the removal.

Frequently Asked Questions
Q: Do I need AI Credits before I can create an API key?
A: Yes. You must have an active AI Credit balance before creating an API key. See How to Purchase HostGator AI Credits for details. For current AI Credit pricing, visit HostGator: AI Models and Credit Pricing.
Q: Can I view my API key again after I create it?
A: No. For security, we show your full API key only once during creation. If you lose it, delete the old key and generate a new one.
Q: Which AI models can I access with my API key?
A: The HostGator AI Gateway provides access to models from providers like OpenAI (GPT), Anthropic (Claude), Google (Gemini), and xAI (Grok) through a single, OpenAI-compatible endpoint. Available models may change. See HostGator: AI Models and Credit Pricing for the current list.
Q: Does deleting an API key affect my AI Credit balance?
A: No. Deleting a key only revokes its access. Your credit balance and all other keys remain unchanged.
Q: Can I create more than one API key?
A: Yes. You can generate distinct keys for different applications or environments to track usage and manage access separately.