Skip to content
Agentic Workflowdocs
v0.8.2Install free

use the app / connections

Connect Hugging Face

Create a Hugging Face API key and use it with Aria, agents and the Hugging Face workflow nodes.

≈ 3 min Extension Web app JWT
  • A Hugging Face account.

Use Hugging Face Embeddings in a workflow. The key is a saved credential.

  1. Create a key. In your Hugging Face settings, open Access Tokens and click Create new token. Choose Fine-grained and tick Make calls to Inference Providers, or choose Read. Copy the token. It starts with hf_.

  2. Save it in AWFlow. Open Credentials and click Add Credential (or + Add Credential in the node’s Authentication field), then fill the New Credential form. In the browser side panel the form comes in two steps: tap Simple Credential (or click Continue), then fill the rest.

    The New Credential dialog for a simple credential (no app picked, so Integration App / Service reads Select an integration...): Name and Description fields, the Auth Type menu set to JWT, a JWT field, a note that the secret is saved locally and encrypted in this browser, and the Cancel and Create Credential buttons. The New Credential dialog for a simple credential (no app picked, so Integration App / Service reads Select an integration...): Name and Description fields, the Auth Type menu set to JWT, a JWT field, a note that the secret is saved locally and encrypted in this browser, and the Cancel and Create Credential buttons.

    Numbered areas in the screenshot: 1. Integration App / Service: none (Simple Credential); 2. Name; 3. Auth Type: JWT; 4. JWT; 5. Where the secret is stored (here, locally in this browser); 6. Create Credential.

  3. Pick it in the node. In Hugging Face Embeddings, choose the credential in Authentication and type the Model id.

  • A 401, “invalid API key” or “Incorrect API key” error. The key was mistyped, revoked, or belongs to another account. Create a new key and update the credential (or the provider in Settings › Providers).
  • A 429 or “quota” error. The account is out of credit or over its rate limit. Add credit or wait, then run again.
  • An embeddings node fails with 401 while a chat node with the same key works. The credential is a Bearer Token. Embeddings nodes pass the value to the provider as it is, so use a JWT credential that holds only the key.
Ask Aria