Welcome to Freddy! This guide will help you get up and running with the Freddy AI platform quickly and efficiently.
Before you begin, make sure you have:
- A Freddy account (sign up at Freddy Hub)
- Basic understanding of REST APIs
- Your preferred development environment set up
- Log in to the Freddy Hub
- Navigate to Settings → API Keys
- Click "Create New API Key"
- Copy and store your API key securely
⚠️ Important: Your API key starts with ak_ and should be kept secure.
All API requests should be made to:
https://api.freddy.ai/v2/Include your API key in every request header:
curl -H "api-key: ak_your_api_key_here" \
-H "Content-Type: application/json" \
https://api.freddy.ai/v2/modelsLet's make your first API call to list available AI models:
curl -X GET "https://api.freddy.ai/v2/models" \
-H "api-key: ak_your_api_key_here"import requests
api_key = "ak_your_api_key_here"
headers = {"api-key": api_key}
response = requests.get(
"https://api.freddy.ai/v2/models",
headers=headers
)
print(response.json())const apiKey = "ak_your_api_key_here";
fetch("https://api.freddy.ai/v2/models", {
headers: {
"api-key": apiKey
}
})
.then(response => response.json())
.then(data => console.log(data));Now let's create an AI response:
curl -X POST "https://api.freddy.ai/v2/model/response" \
-H "api-key: ak_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [
{
"role": "user",
"content": "Hello, Freddy! How can you help me?"
}
]
}'Congratulations! You've made your first API calls. Here's what to explore next:
- Authentication Guide - Learn about advanced authentication
- Best Practices - Follow recommended patterns
- Code Examples - See more practical examples
- API Reference - Explore all available endpoints
- 📖 Complete Documentation - Full guides and tutorials
- 🔌 API Reference - Detailed endpoint documentation
- 🌐 Hub - Access the main application
- 📧 Support - Contact our team for assistance
Ready to build something amazing with Freddy AI! 🚀