Piloterr

Hugging Face Model

GET
/v2/huggingface/model

Read one public Hugging Face model by an id such as google-bert/bert-base-uncased.

Credit cost: 1 credit per call

Autorização

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Parâmetros de consulta

query*string

Required. A public model id (owner/name) or a huggingface.co model URL. Reserved site paths such as models, datasets, or spaces return 400.

Example:

google-bert/bert-base-uncased

URL example:

https://huggingface.co/google-bert/bert-base-uncased

Corpo da resposta

Successful response

application/json
  1. response
id?string
sha?string
url?string
tags?array<string>
gated?boolean
likes?integer
author?string
license?string
private?boolean
datasets?array<string>
disabled?boolean
language?array<string>
downloads?integer
created_at?string
mask_token?string
library_name?string
pipeline_tag?string
last_modified?string
trending_score?unknown
Example Request
curl -X GET 'https://api.piloterr.com/v2/huggingface/model?query=string'
Example Response
{  "id": "google-bert/bert-base-uncased",  "sha": "86b5e0934494bd15c9632b12f734a8a67f723594",  "url": "https://huggingface.co/google-bert/bert-base-uncased",  "tags": [    "transformers",    "pytorch",    "tf",    "jax",    "rust",    "coreml",    "onnx",    "safetensors",    "bert",    "fill-mask",    "exbert",    "en",    "dataset:bookcorpus",    "dataset:wikipedia",    "arxiv:1810.04805",    "license:apache-2.0",    "endpoints_compatible",    "deploy:sagemaker",    "deploy:azure",    "region:us"  ],  "gated": false,  "likes": 3060,  "author": "google-bert",  "license": "apache-2.0",  "private": false,  "datasets": [    "bookcorpus",    "wikipedia"  ],  "disabled": false,  "language": [    "en"  ],  "downloads": 29160167,  "created_at": "2022-03-02T23:29:04.000Z",  "mask_token": "[MASK]",  "library_name": "transformers",  "pipeline_tag": "fill-mask",  "last_modified": "2024-02-19T11:06:12.000Z",  "trending_score": null}