Hugging Face hub

Hugging Face Kernels API

Search compute kernels by id or owner, with driver support, downloads and publisher trust.

GET /v1/hugging-face/kernels

1 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.