Loading...

Knowledge Base

How to Connect HostGator AI Credits to Langflow

Connect your Langflow instance to the AI Credits balance on your HostGator account, and call supported models right away using one HostGator-issued key, instead of creating a separate provider account and API key for each model.

This article assumes you already have Langflow running on a HostGator Self-Managed VPS.

Connect HostGator AI Credits to Langflow

AI Credits let you call supported models through HostGator without a separate provider account. Usage draws from your existing credit balance instead of the provider billing you directly.

First Time Setup

Follow these steps to connect to your VPS, log in to Langflow for the first time, and configure your AI Credits key as a model provider.

  1. Log in to your Customer Portal.
  2. From the left-hand menu, navigate to Hosting and select My Plans.

    Customer Portal - Hosting tab - View Details
     

  3. Locate the server you want to manage, then click View Details in the bottom-left corner to expand the section and access additional server information.

    Customer Portal - Hosting tab - View Details
     

  4. Click the Reset Password button.

    Customer Portal - Hosting tab - View Details - Reset Password
     

  5. In the pop-up window, type your new root password, then click Reset Password again to confirm and save the changes.

    Customer Portal - Hosting tab - View Details - Reset Password
     

  1. Connect to your VPS via SSH.
    Use your VPS IP and credentials with an SSH client, follow the prompts, and enter your root password when asked:
    ssh root@your_server_ip
  2. Click the Manage button.

    Log in - Langflow Dashboard
     

  3. Log in to your Langflow dashboard.

    Log in - Langflow Dashboard
     

  4. Click + Create first flow to open your workspace.

    Log in - Langflow Dashboard - Create first flow
     

  5. Click Configure Model Providers in the center of your screen.

    Log in - Langflow Dashboard - Create first flow - Configure
     

  6. Click the + icon next to OpenAI (or OpenRouter) in the list.

    Log in - Langflow Dashboard - Create first flow
     

  7. Paste your AI Credits key into the OpenAI API Key field.

    Langflow Dashboard- Configure Model
     

  8. Your OpenAI provider connection is now configured and active, showing available models ready to use.

    Langflow Dashboard - Create first flow - Configure - Model - Add API Key-connected
     

Adding AI Credits to an Existing Langflow Install

If Langflow is already configured with a different provider and you want to add AI Credits (or switch to it) without repeating full setup, edit Langflow's configuration file directly.

  1. On your Langflow dashboard and go to your profile icon > Settings > Model Providers.

    Langflow Dashboard- Model Provider
     

  2. Select the OpenAI option from the list of providers (or choose the generic/OpenAI-compatible provider option if AI Credits isn't listed as a named provider in your version of Langflow).

    Langflow Dashboard - Model Providers - Select
     

  3. Paste your AI Credits key into the API Key field. If a Base URL field is present, enter the endpoint provided in your HostGator Portal AI Credits section.

    Langflow Dashboard- Configure Model
     

  4. Click Save, then enable the specific models you want available in your flows.
  5. Add a Language Model or Agent component to a flow, and select your AI Credits connection from the Model Provider dropdown to use it.

Test Your Connection

Once a connection is configured (AI Credits or a third-party provider), confirm it works before building a larger flow:

  1. Create a new flow, or open the Basic Prompting template from the template gallery.
  2. Add Chat Input and Chat Output components, and a Language Model (or Agent) component.
  3. Connect Chat Input to the Language Model component's input, and connect the Language Model component's output to Chat Output.
  4. In the Language Model component, select the connection you just configured and choose an enabled model.
  5. Open the Playground and send a test message, such as "Hello?"
  6. If you get a response, the connection is working.

    Langflow Dashboard - Model - Test
     

Maintenance & Support

If your connection test doesn't work as expected, use the table below to identify the likely cause and next steps.

Issue Likely Cause What to Check
"Insufficient credits" or similar error AI credit balance is depleted Check your balance in the HostGator Portal and add more credits
"Invalid API key" error Key was mistyped, expired, or revoked Re-copy the key from the provider (or the HostGator Portal for AI Credits) and re-enter it
Model doesn't appear in the dropdown Model isn't enabled, or your key doesn't have access to it Return to Model Providers settings and confirm the model is enabled for that key
Ollama connection fails Ollama isn't running, or the base URL is wrong Confirm Ollama is running on the server and that the base URL and port match your setup
Flow runs but returns no output Components aren't connected correctly Confirm Chat Input → Language Model → Chat Output are linked, and that a model is selected

Loading...