https://github.com/t1ckbase/free-huggingface-api
https://github.com/t1ckbase/free-huggingface-api
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/t1ckbase/free-huggingface-api
- Owner: T1ckbase
- Created: 2025-02-17T20:01:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-18T13:20:26.000Z (over 1 year ago)
- Last Synced: 2025-02-18T14:26:05.354Z (over 1 year ago)
- Language: TypeScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
pnpm install
pnpm run dev
```
## GET Model Inference Providers
Retrieves information about the inference providers available for a specific model on Hugging Face.
**Endpoint:**
```
GET https://huggingface.co/api/models/{model}?expand[]=inferenceProviderMapping
```
**Description:**
This endpoint allows you to fetch details about the inference providers that support a given model. This information can be crucial for determining where and how a model can be deployed for inference.
**Example Request:**
```
GET https://huggingface.co/api/models/deepseek-ai/DeepSeek-R1?expand[]=inferenceProviderMapping
```
**Path Parameters:**
- `model` (string, required): The unique identifier for the model. This is typically in the format `namespace/model_name`.
**Query Parameters:**
- `expand[]` (string, optional): An array of fields to expand in the response. To retrieve inference provider mappings, include `inferenceProviderMapping`.
**Response Example:**
```json
{
"_id": "678dc6fff905d106be796d8a",
"id": "deepseek-ai/DeepSeek-R1",
"inferenceProviderMapping": {
"fireworks-ai": {
"status": "live",
"providerId": "accounts/fireworks/models/deepseek-r1",
"task": "conversational"
},
"together": {
"status": "live",
"providerId": "deepseek-ai/DeepSeek-R1",
"task": "conversational"
},
"novita": {
"status": "staging",
"providerId": "deepseek/deepseek-r1",
"task": "conversational"
},
"nebius": {
"status": "staging",
"providerId": "deepseek-ai/DeepSeek-R1-fast",
"task": "conversational"
},
"hyperbolic": {
"status": "live",
"providerId": "deepseek-ai/DeepSeek-R1",
"task": "conversational"
}
}
}
```