Skip to content

Add a Hugging Face Channel

What You Need Before You Start

You only need three things:

RequirementPurpose
Hugging Face accountUsed to generate an access token and own the repository.
Hugging Face User Access TokenUsed by ImgBed to access the Hugging Face API, create repositories, and upload files.
Repository nameYou can enter only the repository name, for example image.

Setup Steps

Step 1: Sign in to Hugging Face and Create an Access Token

  1. Sign in to Hugging Face.
  2. Click your avatar in the upper-right corner and open Settings.
  3. Open Access Tokens from the left sidebar.
  4. Create a new token.
  5. Give the token a recognizable name.
  6. Select write permission.
  7. Copy and save the token immediately after it is created.

Create a token

Step 2: Fill in the Hugging Face Channel in ImgBed

After selecting Hugging Face in Upload Settings, fill in the fields as follows:

UI FieldWhat to Enter
Channel nameA name you choose, such as hf-primary.
Repository nameEither a short repo name such as image, or a full path such as username/image.
Access TokenThe Hugging Face User Access Token you just created.
Private repositoryTurn on or off based on your needs.
RemarkOptional, for example Primary upload channel.

Add the channel

Step 3: Save the Channel

After filling in the fields, click Save.

The system will then handle these details:

System BehaviorDescription
Short repository nameImgBed identifies the current Hugging Face account and expands the value into a full repository path.
Full repository pathImgBed uses the username/repository path exactly as entered.
Repository checkIf you use the current personal account path, ImgBed tries to create the repository when it does not exist. If you enter a full path manually, ImgBed uses that path directly.
Repository typeThis channel uses a dataset repository.
Public/private stateThe repository visibility is synchronized according to the current switch.

Quick Checklist

text
Sign in to Hugging Face
-> Create an Access Token
-> Select write permission
-> Return to ImgBed and enter the token and repository name
-> Save
-> If only a repo name is entered, ImgBed adds the current username automatically
-> If username/repo is entered, ImgBed uses it as-is
-> ImgBed checks or creates the dataset repository
-> Upload a test image

Released as user documentation for CloudFlare ImgBed.