Get started with Halfred in less than 5 minutes. Learn how to create an account, generate an API key, and make your first API call.
Step 1: Create Your Account
Go to halfred.ai and sign up for a free account using Google, GitHub, or email
Verify your email address (if using email sign-up)
Log in to your dashboard
Step 2: Get Your API Key
When you log in for the first time, Halfred automatically:
Creates a default project for you
Generates your first API key
Displays it on your dashboard
Important: Copy and securely store your API key immediately - this is the only time you'll see it!
Your API key will look like this:halfred_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
⚠️ Security Note: Never expose your API key in client-side code or commit it to version control.
If You Need to Generate a New Key Later
If you lost your key or need to revoke it:
Go to your dashboard
Find the "Your Key" section
Click the 3-dots menu (⋮)
Select "Revoke Key & Get New One"
Copy your new key immediately
Step 3: Add Credits (Optional for Testing)
Go to Credits in your dashboard
Click "Top up Credits"
Select the amount you want to add ($5 minimum)
Complete the secure payment via Stripe
Halfred offers a free DEV profile for testing, but it has rate limits and is limited to Lite profile models, making it unsuitable for production use. For production applications:
Step 4: Make Your First API Call
Choose your preferred method:
Using the Halfred Node.js SDK
Using the Halfred Python SDK
Using cURL (REST API)
Step 5: Understanding the Response
You'll receive a response in this format:
Key fields:
choices[0].message.content: The AI's response
usage: Token consumption for billing
profile: The Halfred profile used
provider & model: The actual model that handled your request
💡 Tip: Try the Playground
Your Halfred dashboard includes an advanced Playground interface where you can:
Test API requests interactively
Experiment with different profiles (Lite, Standard, DeepThink, Dev)
See real-time responses
View recent logs and request status
Fine-tune parameters before integrating into your code
This is a great way to explore Halfred's capabilities without writing any code!
Step 6: Choose Your Profile
Halfred offers different profiles optimized for various use cases:
Profile
Use Case
Price per M tokens (output)
LITE
Simple tasks, UI assistants, cost-sensitive apps
$0.50
STANDARD
Most production applications (recommended)
$2.50
DEEPTHINK
Complex reasoning, long documents, R&D
$12.50
DEV
Free tier for development and testing
$0.00
For the most up-to-date pricing, please refer to the Profile Dashboard (requires login).