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
- Go to the Registration Page
- Sign up with your email or use OAuth (Google, GitHub)
- Verify your email address
After registration, you’ll be automatically redirected to the Dashboard.
Step 2: Log in to Dashboard
- Go to the Login Page
- Enter your credentials or use OAuth
- You’ll see the main Dashboard
Step 3: Top Up Your Account
- Go to Dashboard → Billing
- Click Top Up
- Choose your payment method and amount
- Complete the payment
Your balance will be updated immediately after payment confirmation.
Step 4: Create API Key
- Navigate to Dashboard → API Keys
- Click Create New Key
- Give it a name (e.g., “claude-code-key” or “codex-key”)
- 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
- Base URL:
-
Codex CLI: Uses OpenAI API format
- Base URL:
https://api.fizzlyapi.com/v1 - Environment variables:
OPENAI_API_KEY,OPENAI_BASE_URL
- 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);