ToolKiti
Home/机器学习/Hugging Face Inference API

Hugging Face Inference API

Hugging Face 推理接口

Access 200,000+ models for inference including transformers, diffusion, and audio models.

访问 20 万+ 模型进行推理,包括 Transformer、扩散模型和音频模型。

Pricing

free tier, pay-as-you-go for accelerated inference

Authentication

  • API Key (Bearer Token)

Popularity

50/100

Endpoints

https://api-inference.huggingface.co/models/{model_id}

SDKs

PythonJavaScriptcurl

Key Features

Code Examples

Inference APIbash
curl https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3.1-405B-Instruct \
  -H "Authorization: Bearer $HF_API_KEY" \
  -d '{"inputs": "Hello!", "parameters": {"max_new_tokens": 100}}'

Tags

mltransformersinference

Last updated: 2026-07-27