Skip to content
Docs menu

models

Model-kind repo extras: model meta, and the policies listed from the Hugging Face Hub

2 operations · 3 schemas

PUT /v1/models/{owner}/{repo}/meta

Set model meta

putModelMeta · scope key:write

Replaces the model meta block on a model-kind repo in full. The training worker sets source_run_id when packaging a trained model. Returns a 409 problem if the repo kind is not model. robot must be a robot repo the caller can read. A missing, private or malformed one gets the same 422, word for word. embodiment_fingerprint is the interface fingerprint the policy's manifest records. datasets names the datasets it was trained on, under the same rule for a lucen:// ref.

Parameters

putModelMeta parameters
NameInTypeDescription
ownerrequiredpathHandle

Repo owner handle (username or org slug).

reporequiredpathSlug

Repo slug. A renamed repo's former slug also finds it, and the answer names its current address.

Request body

application/json · required · ModelMetaPut

putModelMeta request body
FieldTypeDescription
policy_typerequiredstring

length ≤ 128

base_modelstring | null

length ≤ 256

source_run_idstring | null

Must reference an existing run visible to the caller.

control_classControlClass | null

reflex | skill | planner. Omit or null to leave it undeclared.

robotstring | null

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of the robot repo the policy was built for. It must be a robot repo the caller can read. A missing, private or malformed one is the same 422, word for word. Omit or null to record none (a full replace clears it).

embodiment_fingerprintstring | null

pattern ^[0-9a-f]{64}$

The interface fingerprint the policy's manifest records (embodiment_fingerprint). Never derived: omit it when the manifest has none.

datasetsarray of DatasetRef

items ≤ 16

The datasets the policy was trained on. A lucen:// ref must name a dataset repo the caller can read. A missing, private or malformed one is the same 422. Other schemes are checked for format only. Omit it to record none (a full replace clears it).

methodstring | null

length ≤ 64 · pattern ^[a-z0-9](?:[a-z0-9_.-]{0,62}[a-z0-9])?$

A method id of listMethods, or a LeRobot policy.type. Not checked against the registry: an upload may declare a type the hub has no row for yet. Omit or null to record none.

taskPolicyTask | null

Omit or null to record none.

skillstring | null

length ≤ 64

Free text. Omit or null to record none.

licensestring | null

length ≤ 64 · pattern ^[A-Za-z0-9][A-Za-z0-9.+-]{0,63}$

An SPDX identifier. Omit or null to record none.

Responses

putModelMeta responses
StatusDescriptionBody
200

Stored model meta.

ModelMeta
401

Missing or invalid credentials.

Problemapplication/problem+json
403

Authenticated but not allowed (visibility, membership or scope).

Problemapplication/problem+json
404

Resource not found (or hidden from the caller).

Problemapplication/problem+json
409

State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...).

Problemapplication/problem+json
422

Request failed validation.

Problemapplication/problem+json

GET /v1/external-models

List the policies listed from Hugging Face

listExternalModels · scope none

Policies from the Hugging Face Hub's LeRobot library, listed beside the hub's own. The hub stores their public metadata only. It hosts none of their files and has checked none of them. Each item links to its page on Hugging Face. downloads and likes are Hugging Face's own counts. They are kept apart from the hub's own counts and sorts. A daily sync refreshes the list, and synced_at says when it last succeeded. A failed sync keeps the last list.

Parameters

listExternalModels parameters
NameInTypeDescription
qquerystring

length ≤ 256

Search text. It matches the id (author/name) and the tags, case-insensitive.

sortquerystring

one of downloads · likes · updated

default "downloads"

Order by Hugging Face's downloads in the last 30 days, its likes, or its last update. Always descending.

limitqueryinteger

default 20 · ≥ 1 · ≤ 100

Page size.

cursorquerystring

length ≤ 512

Opaque cursor from the previous page's next_cursor.

Responses

listExternalModels responses
StatusDescriptionBody
200

Page of listed policies.

ExternalModelPage
422

Request failed validation.

Problemapplication/problem+json

Schemas (3)

The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.

ModelMetaPut

object

ModelMetaPut fields
FieldTypeDescription
policy_typerequiredstring

length ≤ 128

base_modelstring | null

length ≤ 256

source_run_idstring | null

Must reference an existing run visible to the caller.

control_classControlClass | null

reflex | skill | planner. Omit or null to leave it undeclared.

robotstring | null

length ≤ 129 · pattern ^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$

owner/slug of the robot repo the policy was built for. It must be a robot repo the caller can read. A missing, private or malformed one is the same 422, word for word. Omit or null to record none (a full replace clears it).

embodiment_fingerprintstring | null

pattern ^[0-9a-f]{64}$

The interface fingerprint the policy's manifest records (embodiment_fingerprint). Never derived: omit it when the manifest has none.

datasetsarray of DatasetRef

items ≤ 16

The datasets the policy was trained on. A lucen:// ref must name a dataset repo the caller can read. A missing, private or malformed one is the same 422. Other schemes are checked for format only. Omit it to record none (a full replace clears it).

methodstring | null

length ≤ 64 · pattern ^[a-z0-9](?:[a-z0-9_.-]{0,62}[a-z0-9])?$

A method id of listMethods, or a LeRobot policy.type. Not checked against the registry: an upload may declare a type the hub has no row for yet. Omit or null to record none.

taskPolicyTask | null

Omit or null to record none.

skillstring | null

length ≤ 64

Free text. Omit or null to record none.

licensestring | null

length ≤ 64 · pattern ^[A-Za-z0-9][A-Za-z0-9.+-]{0,63}$

An SPDX identifier. Omit or null to record none.

ExternalModelPage

object

ExternalModelPage fields
FieldTypeDescription
itemsrequiredarray of ExternalModel
next_cursorrequiredstring | null
totalrequiredinteger

≥ 0

How many listed policies match q, across every page.

synced_atrequiredstring (date-time) | null (date-time)

When the last sync succeeded. Null when the hub has never listed any.

ExternalModel

object

A policy on the Hugging Face Hub, listed by the hub. Every string is someone else's text: the hub strips control characters, caps lengths and keeps only values of the documented shape. Show them as plain text.

ExternalModel fields
FieldTypeDescription
sourcerequiredExternalSource
idrequiredstring

length ≤ 193 · pattern ^[A-Za-z0-9](?:[A-Za-z0-9._-]{0,94}[A-Za-z0-9])?/[A-Za-z0-9](?:[A-Za-z0-9._-]{0,94}[A-Za-z0-9])?$

The repo id on Hugging Face, author/name.

authorrequiredstring

length ≤ 96

The part of id before the slash.

namerequiredstring

length ≤ 96

The part of id after the slash.

urlrequiredstring (uri)

https://huggingface.co/{id}. The hub builds it from id. It takes no link from Hugging Face's answer.

tagsrequiredarray of string

items ≤ 30

Hugging Face's plain tags, lowercased (smolvla, act, vision-language-action). Tags of the form key:value are left out or moved to datasets and license.

datasetsrequiredarray of string

items ≤ 10

The dataset ids its dataset: tags name, author/name.

pipeline_tagrequiredstring | null

length ≤ 64

Hugging Face's task for it, such as robotics.

libraryrequiredstring | null

length ≤ 64

The library Hugging Face names for it, such as lerobot.

licenserequiredstring | null

length ≤ 64

The licence its license: tag names, such as apache-2.0.

downloadsrequiredinteger

≥ 0

Downloads on Hugging Face in the last 30 days, as Hugging Face counts them.

likesrequiredinteger

≥ 0

Likes on Hugging Face.

last_modifiedrequiredstring (date-time)

When it last changed on Hugging Face.

synced_atrequiredstring (date-time)

When the hub last read it from Hugging Face.