How to Connect Bluehost AI Credits to Dify

This guide walks you through connecting AI Credits to Dify, so you can run models in your apps and workflows without needing a separate account. You'll learn how to install and configure the provider with your AI Credits API key and gateway URL, retrieve your Dify initialization password if you're on a Bluehost Self-Managed VPS or Virtual Dedicated Server (VDS), set a default model, and test the connection to confirm everything is working before you build.

Connect Bluehost AI Credits to Dify

AI Credits reach Dify through Dify's built-in model provider — the same provider you'd use to connect a normal account — except you also fill in its API URL field with the AI Credits gateway address instead of leaving it on Anthropic's default endpoint.

  1. Log in to your Bluehost Portal.
  2. In the left-hand menu, click the Hosting tab.

    Self Managed VPS
     

  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.

    Self Managed VPS
     

  4. Click the Reset Password.

    Self Managed VPS
     

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

    Self Managed VPS
     

Run the following command to view the password stored in Dify's environment file:

cat /opt/dify/docker/.env | grep INIT_PASSWORD

Example Output:

root@123456:~# cat /opt/dify/docker/.env | grep INIT_PASSWORD
INIT_PASSWORD=test123LMfQhKkW//c4Vdh

Initialization 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. Locate and Retrieve the Initialization Password
  3. Click the Manage button.

    Manage
     

  4. Log in to your Dify dashboard.

    Dify Dashboard
     

  5. Open Integrations, then click Model Provider.

    Dify Dashboard - Integrations
     

  6. Find the model you want to use under Install model providers (or the Marketplace) and install it if it isn't already added.

    Dify Dashboard - Integrations - Models
     

  7. Click Add API Key on the Anthropic provider card.

    Dify Dashboard -Anthropic set up
     

  8. Fill in the two fields:
    • API Key: your AI Credits API key
    • API URL: https://gateway.ai.bluehost.com/

    Dify Dashboard -API Key
     

  9. Click Save. Dify validates the key against that URL before the models become available.

    Dify Dashboard - Models Available
     

Once saved, models appear anywhere you pick a model in Dify — building an app, setting a workspace default, or configuring a node in a workflow — and each call is billed against your AI Credits balance rather than a direct Anthropic account.

Testing the Connection

To test the integrated model in Dify, follow these steps:

  1. On your current screen, click the Default Models button in the top-right corner.

    Dify Dashboard - Models Available- Default
     

  2. Set your primary Anthropic model (e.g., claude-sonnet-4-6) as the default system model for System Reasoning or Chat. (Optional)

     

    • System Reasoning Model – the default for general LLM tasks
    • Embedding Model – indexes and retrieves knowledge base content
    • Rerank Model – reorders retrieval results by relevance
    • Speech-to-Text Model – turns audio into text
    • Text-to-Speech Model – turns text into audio
    Dify Dashboard - Default Model- Settings
     

     

  3. Click Studio in the left sidebar menu.

    Dify Dashboard - Studio
     

  4. Click Create from Blank.

    Dify Dashboard - Studio - Create Blank
     

  5. Choose Chatbot or Text Generator, give it a name, and click Create Ctrl.

    Dify Dashboard - Studio - Create Blank- Chatbot
     

  6. Type a message or prompt in the Preview / Debug chat panel on the right and click Send to verify the model responses.

    Dify Dashboard - Chatbot
     

Summary

To connect AI Credits to Dify, install the Anthropic provider under Integrations > Model Provider, then enter your AI Credits API key along with the gateway URL (https://gateway.ai.bluehost.com/) in the API URL field and save. You'll need owner or admin access to your Dify workspace and an AI Credits API key before you start. Once you save the connection, you can set your Anthropic model as the default and test it by sending a message through a new Chatbot or Text Generator app. A working response confirms Dify is now billing your usage to your AI Credits balance.