Hugging Face
Hub models, datasets and Spaces, and inference on providers
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
- At huggingface.co/settings/tokens click “Create new token” and choose the “Fine-grained” type.
- Select “Make calls to Inference Providers” and, to read private repositories or your organization's, their read permissions.
- Copy the token. Inference is pay-per-use: PRO accounts and Team or Enterprise organizations include monthly credit; free ones must buy it.
OAuth 2.0
PKCEYour OAuth appBring 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
- 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.
- 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).
- Click “Create app” and copy the application ID (Client ID) and its secret (Client Secret): the secret is shown only once.
Default scopes
openidprofileread-reposinference-api
Tools (1)
Hugging Face API request
HUGGINGFACE_SEND_REQUESTAuthenticated 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 Name Type Description 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.

