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
Actor stats
0
Bookmarked
3
Total users
0
Monthly active users
6 days ago
Last modified
Categories
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)
You can test with Demo Mode first (free, no key needed) to see the output format before committing.
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 | true | No | Run with sample data (no API calls) |
*Required when Demo Mode is off.
Pricing
This actor uses pay-per-event billing:
| Event | Description | Price |
|---|---|---|
| Inference Completed | Each Hugging Face model inference completed | $0.02 |
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