Getting Started
This guide will help you integrate Fizzly API in 5 minutes.
Get Your API Key
- Log in to the Fizzly Console
- Navigate to “API Key Management”
- Click “Create Key”
- Copy the generated API Key
⚠️
Keep your API Key secure. Never expose it in client-side code or public repositories.
Configure Environment Variables
Set the API Key in your environment:
export OPENAI_API_KEY=your-fizzly-api-key
export OPENAI_API_BASE=https://api.fizzly.com/v1Make Your First Request
Using cURL
curl https://api.fizzly.com/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [{"role": "user", "content": "Hello!"}]
}'Using Python
from openai import OpenAI
client = OpenAI(
api_key="your-fizzly-api-key",
base_url="https://api.fizzly.com/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)Using Node.js
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'your-fizzly-api-key',
baseURL: 'https://api.fizzly.com/v1',
});
const response = await openai.chat.completions.create({
model: 'gpt-4o',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);Next Steps
- See Authentication for more auth methods
- Browse API Endpoints for all available endpoints
- Read Integration Guides for tool integrations