PASAR API

Hugging Face Inference Providers ~ run open models

← directory
Hugging FaceAItier: commercialauth: tokenpricing: freemiumverified 2026-06-13

HF token; one token across many providers, has free tier. Global, works for MY.

View docs ↗ More AI APIs

Get started

# Hugging Face Inference Providers ~ run open models needs an access token ~ get yours at:
# https://huggingface.co/docs/inference-providers/index
curl 'https://router.huggingface.co/v1' \
  -H 'Authorization: Bearer YOUR_TOKEN'

AI prompt

I'm integrating a Malaysian API into my app.

API: Hugging Face Inference Providers ~ run open models
Provider: Hugging Face
Auth: requires an access token (sign up: https://huggingface.co/docs/inference-providers/index)
Pricing: freemium
Base URL: https://router.huggingface.co/v1

Help me set up authentication and make my first successful request ~ explain exactly where the credentials go.

Related AI APIs

OpenAI API ~ GPT models, embeddings, images, audioAnthropic Claude API ~ Claude LLM messagesGoogle Gemini API ~ multimodal LLMGroq API ~ fast LLM inferenceMistral AI API ~ open and frontier LLMsCohere API ~ LLMs, embeddings, rerankPerplexity API ~ web-grounded answers and searchOpenRouter API ~ one endpoint for many LLMsReplicate API ~ run and host ML modelsElevenLabs API ~ text-to-speech and voices