[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/workers-ai/configuration/hugging-face-chat-ui/ [Back]  [Original]

Hugging Face Chat UI Cloudflare Workers AI docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /Workers AI
  3. /Configuration
  4. /Hugging Face Chat UI

Hugging Face Chat UI

Last updated Apr 21, 2026Copy as MarkdownView as MarkdownAgent setup
OverviewPrerequisitesSetupSupported models

Use Workers AI with Chat UI , an open-source chat interface offered by Hugging Face.

Prerequisites

You will need the following:

Setup

First, decide how to reference your Account ID and API token (either directly in your .env.local using the CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN variables or in the endpoint configuration).

Then, follow the rest of the setup instructions in the Chat UI GitHub repository .

When setting up your models, specify the cloudflare endpoint.

{
  "name" : "nousresearch/hermes-2-pro-mistral-7b",
  "tokenizer": "nousresearch/hermes-2-pro-mistral-7b",
  "parameters": {
    "stop": ["<|im_end|>"]
  },
  "endpoints" : [
    {
      "type": "cloudflare",
      // optionally specify these if not included in .env.local
      "accountId": "your-account-id",
      "apiToken": "your-api-token"
      //
    }
  ]
}

Supported models

This template works with any text generation models that begin with the @hf parameter.

PreviousVercel AI SDKNextOverview

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page