Hugging Face Master
Pricing
from $0.01 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
20 days ago
Last modified
Categories
Features
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
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
task | string | "text_generation" | Yes* | The operation to perform |
apiToken | string | - | Yes* | Your Hugging Face API token (from hf.co/settings/tokens) |
model | string | - | No | Hugging Face model ID (e.g., meta-llama/Llama-2-7b-chat-hf, stabilityai/stable-diffusion-xl-base-1.0) |
text | string | - | No | Text input for text-based tasks |
prompt | string | - | No | Prompt for generation tasks |
context | string | - | No | Context for question answering |
question | string | - | No | Question for Q&A tasks |
sourceLanguage | string | - | No | Source language for translation |
targetLanguage | string | - | No | Target language for translation |
candidateLabels | string | - | No | Comma-separated labels for zero-shot classification |
imageUrl | string | - | No | URL of image for image-based tasks |
audioUrl | string | - | No | URL of audio file for audio-based tasks |
negativePrompt | string | - | No | Negative prompt for image generation |
maxTokens | integer | 256 | No | Maximum tokens to generate |
temperature | number | 0.7 | No | Sampling temperature (0.0-2.0) |
topP | number | 0.9 | No | Nucleus sampling parameter |
numImages | integer | 1 | No | Number of images to generate |
width | integer | 1024 | No | Image width in pixels |
height | integer | 1024 | No | Image height in pixels |
guidanceScale | number | 7.5 | No | CFG scale for image generation |
numInferenceSteps | integer | 50 | No | Number of diffusion steps |
waitForModel | boolean | true | No | Wait for model to load if not ready |
useCache | boolean | true | No | Use cached results if available |
webhookUrl | string | - | No | URL to receive results via webhook |
demoMode | boolean | false | No | Run with sample data (no API calls) |
*Required when Demo Mode is off.
Pricing
This actor uses pay-per-event billing:
| Event | When it is charged | Price |
|---|---|---|
| Actor start | Once 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 Generation | Generate text using LLMs like Llama, Mistral, GPT | $0.01 |
| Text Summarization | Summarize long documents and articles | $0.01 |
| Translation | Translate text between languages | $0.01 |
| Sentiment Analysis | Analyze sentiment and emotions in text | $0.01 |
| Text Classification | Classify text into predefined categories | $0.01 |
| Question Answering | Answer questions based on provided context | $0.01 |
| Fill Mask | Predict missing words in sentences | $0.01 |
| Text Embeddings | Generate vector embeddings for semantic search | $0.01 |
| Image Generation | Generate images from text prompts with Stable Diffusion | $0.01 |
| Image Captioning | Generate captions and descriptions for images | $0.01 |
| Image Classification | Classify images into categories | $0.01 |
| Object Detection | Detect and locate objects in images | $0.01 |
| Speech to Text | Transcribe audio using Whisper models | $0.01 |
| Text to Speech | Convert text to natural speech audio | $0.01 |
| Audio Classification | Classify sounds, music, and speech | $0.01 |
| Zero-Shot Classification | Classify text without training data | $0.01 |
| Result | Each 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