Hugging Face Master avatar

Hugging Face Master

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Hugging Face Master

Hugging Face Master

Unified Apify actor for Hugging Face Inference API access 200K+ AI models for text image audio processing Text Generation LLMs Llama Summarization Condense documents Translation 100+ languages Sentiment Analysis Image Generation Stable Diffusion Speech transcription Semantic search QA classification

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

The Howlers

The Howlers

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

20 days ago

Last modified

Features

Limited permissions

Share

Unified API for Hugging Face inference - text generation, summarization, translation, image generation, speech-to-text, and more across 200K+ models.

BYOK (Bring Your Own Key) -- you provide your own API credentials.


Before You Start

This actor requires your own API credentials to fetch real data.

Where to get your key: Your Hugging Face API token (from hf.co/settings/tokens)

Demo Mode is off by default, so runs fetch real data. Set demoMode to true to get free sample data that shows the output format, no key needed.


Quick Start

Test with Demo Mode (free, no API key needed)

{
"demoMode": true,
"imageUrl": "https://example.com",
"audioUrl": "https://example.com"
}

Run with real data

{
"demoMode": false,
"task": "text_generation",
"apiToken": "YOUR_API_KEY_HERE",
"imageUrl": "https://example.com",
"audioUrl": "https://example.com",
"maxTokens": 256,
"temperature": 0.7,
"topP": 0.9,
"numImages": 1,
"width": 1024,
"height": 1024,
"guidanceScale": 7.5,
"numInferenceSteps": 50,
"waitForModel": true,
"useCache": true
}

Input Parameters

ParameterTypeDefaultRequiredDescription
taskstring"text_generation"Yes*The operation to perform
apiTokenstring-Yes*Your Hugging Face API token (from hf.co/settings/tokens)
modelstring-NoHugging Face model ID (e.g., meta-llama/Llama-2-7b-chat-hf, stabilityai/stable-diffusion-xl-base-1.0)
textstring-NoText input for text-based tasks
promptstring-NoPrompt for generation tasks
contextstring-NoContext for question answering
questionstring-NoQuestion for Q&A tasks
sourceLanguagestring-NoSource language for translation
targetLanguagestring-NoTarget language for translation
candidateLabelsstring-NoComma-separated labels for zero-shot classification
imageUrlstring-NoURL of image for image-based tasks
audioUrlstring-NoURL of audio file for audio-based tasks
negativePromptstring-NoNegative prompt for image generation
maxTokensinteger256NoMaximum tokens to generate
temperaturenumber0.7NoSampling temperature (0.0-2.0)
topPnumber0.9NoNucleus sampling parameter
numImagesinteger1NoNumber of images to generate
widthinteger1024NoImage width in pixels
heightinteger1024NoImage height in pixels
guidanceScalenumber7.5NoCFG scale for image generation
numInferenceStepsinteger50NoNumber of diffusion steps
waitForModelbooleantrueNoWait for model to load if not ready
useCachebooleantrueNoUse cached results if available
webhookUrlstring-NoURL to receive results via webhook
demoModebooleanfalseNoRun with sample data (no API calls)

*Required when Demo Mode is off.


Pricing

This actor uses pay-per-event billing:

EventWhen it is chargedPrice
Actor startOnce when the run starts, one event per GB of memory (minimum one). At the default 4 GB of memory a run starts at $0.40$0.10 per GB
Text GenerationGenerate text using LLMs like Llama, Mistral, GPT$0.01
Text SummarizationSummarize long documents and articles$0.01
TranslationTranslate text between languages$0.01
Sentiment AnalysisAnalyze sentiment and emotions in text$0.01
Text ClassificationClassify text into predefined categories$0.01
Question AnsweringAnswer questions based on provided context$0.01
Fill MaskPredict missing words in sentences$0.01
Text EmbeddingsGenerate vector embeddings for semantic search$0.01
Image GenerationGenerate images from text prompts with Stable Diffusion$0.01
Image CaptioningGenerate captions and descriptions for images$0.01
Image ClassificationClassify images into categories$0.01
Object DetectionDetect and locate objects in images$0.01
Speech to TextTranscribe audio using Whisper models$0.01
Text to SpeechConvert text to natural speech audio$0.01
Audio ClassificationClassify sounds, music, and speech$0.01
Zero-Shot ClassificationClassify text without training data$0.01
ResultEach item written to the default dataset$0.00001

Demo mode is free -- no charges for sample data.


Troubleshooting

"API key is required"

You have Demo Mode turned off but didn't provide an API key. Either:

  • Turn Demo Mode on to test with sample data
  • Add your API key in the input

"API error 403" or "Unauthorized"

Your API key is invalid, expired, or doesn't have access to this specific API endpoint. Double-check your key and account permissions.

"API error 429" or "Rate limit"

Too many requests. Wait a minute and try again, or reduce the number of items per run.

No results or empty dataset

Check the run log for error messages. Common causes:

  • Invalid input format (check the examples above)
  • API key without proper permissions
  • The target data doesn't exist or is too small to track

How do I test without an API key?

Enable Demo Mode in the input. This returns realistic sample data so you can verify the output format works for your workflow.


Built by John Rippy | Actor Arsenal