Hugging Face
AI / ML Live verified

Hugging Face Connector

Connect to Hugging Face to run hosted model inference across the full task set (text generation, chat completion, embeddings, classification, NER, vision, and audio) and to search models, datasets, and Spaces on the Hub.

$pip install "toolsconnector[huggingface]"
30
Actions
AI / ML
Category
Free
Apache 2.0

All 30 Actions

Action Description Parameters Returns
audio_classificationClassify audio into labelsmodel, audio  [top_k, provider]list
automatic_speech_recognitionTranscribe speech audio to textmodel, audio  [return_timestamps, provider]HFTranscription
chat_completionCreate a chat completion via the OpenAI-compatible routermodel, messages  [temperature, max_tokens, top_p, frequency_penalty, presence_penalty, seed, stop, tools, tool_choice, response_format]HFChatCompletion
feature_extractionExtract embedding vectors from textmodel, inputs  [provider]list
fill_maskFill a masked token in text with a hosted modelmodel, inputs  [provider]list
get_datasetGet metadata for a dataset on the Hubdataset_idHFDatasetInfo
get_modelGet metadata for a model on the Hubmodel_id  [expand]HFModelInfo
get_model_providersList the inference providers that serve a Hub modelmodel_idlist
get_spaceGet metadata for a Space on the Hubspace_idHFSpaceInfo
image_classificationClassify an image into labelsmodel, image  [top_k, provider]list
image_segmentationSegment an image into labelled masksmodel, image  [mask_threshold, threshold, subtask, provider]list
image_to_textGenerate a caption for an imagemodel, image  [provider]list
list_datasetsSearch datasets on the Hugging Face Hub[search, author, filter, sort, direction, limit]list
list_inference_catalogList the Inference Providers model catalog with pricinglist
list_modelsSearch models on the Hugging Face Hub[search, author, filter, pipeline_tag, library, sort, direction, limit]list
list_repo_filesList files in a Hub repository's treerepo_id  [repo_type, revision]list
list_spacesSearch Spaces on the Hugging Face Hub[search, author, filter, sort, direction, limit]list
object_detectionDetect objects and bounding boxes in an imagemodel, image  [threshold, provider]list
question_answeringAnswer a question from a context passagemodel, question, context  [provider]HFQuestionAnswer
sentence_similarityScore a sentence against candidates for similaritymodel, source_sentence, sentences  [provider]list
summarizeSummarize text with a hosted modelmodel, inputs  [min_length, max_length, provider]list
table_question_answeringAnswer a question about a tablemodel, query, table  [provider]HFTableQuestionAnswer
text_classificationClassify text with a hosted modelmodel, inputs  [provider]list
text_generationGenerate text from a prompt with a hosted modelmodel, inputs  [max_new_tokens, temperature, top_p, top_k, repetition_penalty, do_sample, return_full_text, wait_for_model, provider]list
text_to_imageGenerate an image from a text promptmodel, inputs  [negative_prompt, guidance_scale, num_inference_steps, width, height, seed, provider]bytes
text_to_speechSynthesize speech audio from textmodel, inputs  [provider]bytes
token_classificationTag tokens in text (NER / part-of-speech)model, inputs  [aggregation_strategy, provider]list
translateTranslate text with a hosted modelmodel, inputs  [src_lang, tgt_lang, provider]list
whoamiGet the authenticated Hugging Face identityHFWhoAmI
zero_shot_classificationClassify text against candidate labels without trainingmodel, inputs, candidate_labels  [multi_label, provider]HFZeroShotResult
Open Interactive Docs & Playground →

Full schema explorer, code generation, and live API testing