docsGetting Started

Getting Started

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

Programming Tool APIs at 0.35x Price! — Claude Code, Codex, and other programming tools get significant discounts.

Step 1: Create an Account

  1. Go to the Registration Page
  2. Sign up with your email or use OAuth (Google, GitHub)
  3. Verify your email address

After registration, you’ll be automatically redirected to the Dashboard.

Step 2: Log in to Dashboard

  1. Go to the Login Page
  2. Enter your credentials or use OAuth
  3. You’ll see the main Dashboard

Step 3: Top Up Your Account

  1. Go to DashboardBilling
  2. Click Top Up
  3. Choose your payment method and amount
  4. Complete the payment

Your balance will be updated immediately after payment confirmation.

Step 4: Create API Key

  1. Navigate to DashboardAPI Keys
  2. Click Create New Key
  3. Give it a name (e.g., “claude-code-key” or “codex-key”)
  4. Copy the generated API key immediately
⚠️

Important: API Key Format

Different tools require different API formats:

  • Claude Code: Uses Anthropic API format

    • Base URL: https://api.fizzlyapi.com
    • Environment variables: ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL
  • Codex CLI: Uses OpenAI API format

    • Base URL: https://api.fizzlyapi.com/v1
    • Environment variables: OPENAI_API_KEY, OPENAI_BASE_URL

Make sure to use the correct format for your tool!

🚫

Security Tip: Keep your API key secure. Never expose it in client-side code or public repositories. If your key is compromised, delete it immediately and create a new one.

Step 5: Configure Your Tool

Choose the tool you want to configure:

Or verify your API key with a quick test:

curl https://api.fizzlyapi.com/v1/chat/completions \
  -H "Authorization: Bearer your-fizzly-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

If successful, you’ll receive a JSON response with the AI’s reply. Your setup is complete!

Quick Integration Examples

Python (OpenAI SDK)

from openai import OpenAI
 
client = OpenAI(
    api_key="your-fizzly-api-key",
    base_url="https://api.fizzlyapi.com/v1"
)
 
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)
 
print(response.choices[0].message.content)

Python (Anthropic SDK)

from anthropic import Anthropic
 
client = Anthropic(
    api_key="your-fizzly-api-key",
    base_url="https://api.fizzlyapi.com"
)
 
message = client.messages.create(
    model="claude-sonnet-4-20250514",  # or use anthropic/claude-sonnet-4
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello!"}]
)
 
print(message.content[0].text)

Node.js

import OpenAI from 'openai';
 
const openai = new OpenAI({
  apiKey: 'your-fizzly-api-key',
  baseURL: 'https://api.fizzlyapi.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