Hugging Face
Access 100K+ open-source models via Hugging Face's Serverless Inference API.
Overview
Hugging Face is the world's leading platform for open-source AI models, hosting over 100,000 models across NLP, computer vision, audio, and multimodal domains.
Official Website: https://huggingface.co Model Hub: https://huggingface.co/models
Key Features
- Largest Model Hub — 100,000+ open-source models
- Serverless Inference — No infrastructure management required
- Multiple Modalities — Text, image, audio, video models
- Community-Driven — Models from leading AI labs and researchers
Usage Example
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.yuhuanstudio.com/v1"
)
response = client.chat.completions.create(
model="model-id",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)Available Models
Use the Models API to query available models:
curl https://api.yuhuanstudio.com/v1/models?provider=huggingface \
-H "Authorization: Bearer YOUR_API_KEY"Models and pricing are synced automatically. Check the dashboard for current availability and rates.
Official Resources
How is this guide?