docsGetting Started

Getting Started

This guide will help you integrate Fizzly API in 5 minutes.

Get Your API Key

  1. Log in to the Fizzly Console
  2. Navigate to “API Key Management”
  3. Click “Create Key”
  4. 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/v1

Make 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