Hugging Face Kernels API
Search compute kernels by id or owner, with driver support, downloads and publisher trust.
GET /v1/hugging-face/kernels1 credit Failed requests are free
About this endpoint
GET /v1/hugging-face/kernels returns a page of kernels and a page block. Filter with query for an id substring or author for the owner, then set limit up to 1000 and continue with cursor.
Each kernel has id, uid, url, author, createdAt, lastModified, likes, downloads, trendingScore, sha, tags, supportedDriverFamilies and trustedPublisher. The endpoint pages by offset, so its cursor is minted by this API rather than the platform.
Hugging Face Kernels API FAQ
What are kernels used for?
They are repositories of GPU compute kernels. The record lists the driver families the kernel supports and whether the publisher is trusted.
Can I list one author's kernels?
Yes. Pass author as the account name.
How do I page through kernels?
Send page.nextCursor as cursor while page.hasMore is true. The cursor is an offset this API mints, so one from another list is refused.
How much does a kernel page cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.
Other Hugging Face endpoints
- Search modelsGET /v1/hugging-face/models
- Get modelGET /v1/hugging-face/models/{owner}/{name}
- Search datasetsGET /v1/hugging-face/datasets
- Get datasetGET /v1/hugging-face/datasets/{owner}/{name}
- Search SpacesGET /v1/hugging-face/spaces
- Get SpaceGET /v1/hugging-face/spaces/{owner}/{name}
- READMEGET /v1/hugging-face/repos/{repoType}/{owner}/{name}/readme
- FilesGET /v1/hugging-face/repos/{repoType}/{owner}/{name}/files