Skip to main content
Hugging Face logo

Hugging Face

Hugging Face Hub: models, datasets, spaces, repos, inference endpoints. Exposes 24 actions covering the API surface an agent needs - read and write.

What it can do

MethodWhat it does
huggingface_whoamiGet authenticated user info - GET /user.
huggingface_models_listList models - GET /models.
huggingface_model_getGet one model info - GET /models/{repo_id}.
huggingface_model_createCreate a new model repository - POST /models.
huggingface_model_deleteDelete a model repository - DELETE /models/{repo_id}.
huggingface_model_update_settingsUpdate model settings - PATCH /models/{repo_id}.
huggingface_model_refsGet model refs (branches/tags) - GET /models/{repo_id}/refs.
huggingface_model_treeList model files (tree) - GET /models/{repo_id}/tree.
huggingface_datasets_listList datasets - GET /datasets.
huggingface_dataset_getGet one dataset info - GET /datasets/{repo_id}.
huggingface_dataset_createCreate a new dataset repository - POST /datasets.
huggingface_dataset_deleteDelete a dataset repository - DELETE /datasets/{repo_id}.
huggingface_dataset_treeList dataset files (tree) - GET /datasets/{repo_id}/tree.
huggingface_spaces_listList spaces - GET /spaces.
huggingface_space_getGet one space info - GET /spaces/{repo_id}.
huggingface_likes_listList user's liked models - GET /user/likes.
huggingface_like_modelLike a model - POST /user/likes/{repo_id}.
huggingface_unlike_modelUnlike a model - DELETE /user/likes/{repo_id}.
huggingface_model_commits_listList model commits - GET /models/{repo_id}/commits.
huggingface_dataset_commits_listList dataset commits - GET /datasets/{repo_id}/commits.
huggingface_repo_moveMove/rename a repository - POST /repos/move.
huggingface_org_members_listList organization members - GET /organizations/{org}/members.
huggingface_inference_endpoints_listList inference endpoints - GET /endpoints.
huggingface_inference_endpoint_getGet inference endpoint details - GET /endpoints/{endpoint_name}.

How to get credentials

This connector uses an API key / token. Create one in the provider dashboard, then paste it into FlyMyAI:

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
HUGGINGFACE_TOKENHugging Face - Settings - Access Tokens (hf_...).

Troubleshooting

  • 401 Unauthorized / 403 Forbidden - the token is wrong, expired, or missing a required scope; regenerate it.
  • 429 Too Many Requests - provider rate limit; retry after a short backoff.
  • Unexpected 4xx on writes - double-check required fields; the agent confirms before write actions.
We love our partners - FlyMy.AI builds with the best. Thanks, Hugging Face!