Skip to content
Maua.Culturewire

Hugging Face

Hub models, datasets and Spaces, and inference on providers

AI and machine learningCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Access token (hf_…)SecretRequired

    Where to find them

    1. At huggingface.co/settings/tokens click “Create new token” and choose the “Fine-grained” type.
    2. Select “Make calls to Inference Providers” and, to read private repositories or your organization's, their read permissions.
    3. Copy the token. Inference is pay-per-use: PRO accounts and Team or Enterprise organizations include monthly credit; free ones must buy it.

    Get credentials (opens in a new tab)

  • OAuth 2.0

    PKCEYour OAuth app

    Bring your own OAuth app: register one with Hugging Face, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide

    Registering the OAuth app

    1. At huggingface.co/settings/applications/new (“Settings” → “Connected Applications” → “Create new application”) name it “Maua.Culturewire” and set the website to https://www.example.com.
    2. In “Redirect URLs” paste the redirect URI shown below, select the permissions (scopes) listed below and let a secret be generated (do not create it as a public application).
    3. Click “Create app” and copy the application ID (Client ID) and its secret (Client Secret): the secret is shown only once.

    Default scopes

    • openid
    • profile
    • read-repos
    • inference-api

Tools (1)

  • Hugging Face API requestHUGGINGFACE_SEND_REQUEST

    Authenticated call to the Hugging Face API (https://huggingface.co). Any endpoint of the API is allowed. Examples: GET /api/models?search=…&sort=downloads&limit=10, GET /api/models/{author}/{model}, GET /api/datasets?search=…, GET /api/spaces?search=…. Inference (OpenAI format): POST https://router.huggingface.co/v1/chat/completions {"model": "author/model", "messages": […]} (add :fastest or :cheapest to the model to choose a provider), GET https://router.huggingface.co/v1/models.

    Required scopes

    No scopes required

    Input

    Hugging Face API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.