API Overview
Fizzly API provides a unified interface compatible with OpenAI API format, allowing you to access multiple AI models through a single API.
Base URL
https://api.fizzlyapi.com/v1For Anthropic-compatible endpoints:
https://api.fizzlyapi.comAuthentication
All API requests require authentication using an API key. Include your key in the Authorization header:
Authorization: Bearer your-api-key⚠️
Keep your API key secure. Never expose it in client-side code or public repositories.
Request Format
All requests should be JSON-encoded with the following headers:
Content-Type: application/json
Authorization: Bearer your-api-keyResponse Format
All responses are JSON-encoded. A successful response looks like:
{
"id": "chatcmpl-xxx",
"object": "chat.completion",
"created": 1234567890,
"model": "gpt-4o",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 15,
"total_tokens": 25
}
}Available Endpoints
| Endpoint | Method | Description |
|---|---|---|
/v1/chat/completions | POST | Create chat completions |
/v1/models | GET | List available models |
/v1/embeddings | POST | Create embeddings |
Rate Limits
Default rate limits:
- Requests per minute: 60
- Tokens per minute: 100,000
Contact support for higher limits if needed.
Quick Example
curl https://api.fizzlyapi.com/v1/chat/completions \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'Next Steps
- Authentication - Learn about authentication methods
- Chat Completions - Create chat completions
- Streaming - Handle streaming responses
- Error Handling - Handle errors gracefully