Hugging Face Model
GET
Read one public Hugging Face model by an id such as google-bert/bert-base-uncased.
Credit cost: 1 credit per call
ApiKeyAuthheader
x-api-key<token>Your API key. Include it in the x-api-key header for every request.
query*stringRequired. 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-uncasedURL example:
https://huggingface.co/google-bert/bert-base-uncasedSuccessful response
application/json- response
id?stringsha?stringurl?stringtags?array<string>gated?booleanlikes?integerauthor?stringlicense?stringprivate?booleandatasets?array<string>disabled?booleanlanguage?array<string>downloads?integercreated_at?stringmask_token?stringlibrary_name?stringpipeline_tag?stringlast_modified?stringtrending_score?unknowncurl -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}