Μετάβαση στο περιεχόμενο
GET /v1/models

Search ML models

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/huggingface-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/huggingface-api/v1/models" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/huggingface-api/v1/models", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/huggingface-api/v1/models");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/huggingface-api/v1/models",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "count": 20,
        "models": [
            {
                "id": "google-bert/bert-base-uncased",
                "url": "https://huggingface.co/google-bert/bert-base-uncased",
                "tags": [
                    "transformers",
                    "pytorch",
                    "tf",
                    "jax",
                    "rust",
                    "coreml",
                    "onnx",
                    "safetensors",
                    "bert",
                    "fill-mask",
                    "exbert",
                    "en"
                ],
                "likes": 2670,
                "author": "google-bert",
                "created": "2022-03-02T23:29:04.000Z",
                "library": "transformers",
                "license": "apache-2.0",
                "downloads": 68246210,
                "pipeline_tag": "fill-mask",
                "last_modified": null
            },
            {
                "id": "google-bert/bert-large-uncased",
                "url": "https://huggingface.co/google-bert/bert-large-uncased",
                "tags": [
                    "transformers",
                    "pytorch",
                    "tf",
                    "jax",
                    "rust",
                    "safetensors",
                    "bert",
                    "fill-mask",
                    "en",
                    "endpoints_compatible"
                ],
                "likes": 146,
                "author": "google-bert",
                "created": "2022-03-02T23:29:04.000Z",
                "library": "transformers",
                "license": "apache-2.0",
                "downloads": 5634013,
                "pipeline_tag": "fill-mask",
                "last_modified": null
            },
            {
                "id": "google-bert/bert-base-multilingual-uncased",
                "url": "https://huggingface.co/google-bert/bert-base-multilingual-uncased",
                "tags": [
                    "transformers",
                    "pytorch",
                    "tf",
                    "jax",
                    "safetensors",
                    "bert",
                    "fill-mask",
                    "multilingual",
                    "af",
                    "sq",
                    "ar",
                    "an"
                ],
                "likes": 157,
                "author": "google-bert",
                "created": "2022-03-02T23:29:04.000Z",
                "library": "transformers",
                "license": "apache-2.0",
                "downloads": 4369054,
                "pipeline_tag": "fill-mask",
                "last_modified": null
            },
            {
                "id": "google-bert/bert-base-cased",
                "url": "https://huggingface.co/google-bert/bert-base-cased",
                "tags": [
                    "transformers",
                    "pytorch",
                    "tf",
        
…