Shannon API
OpenAI & Anthropic compatible AI API with function calling, web search, and structured outputs.
🧭 Overview
Public docsEverything you need to ship with Shannon's OpenAI and Anthropic compatible API. Browse publicly, then sign in to generate or rotate your key.
http://127.0.0.1:5001/shannonai/us-central1/v1/chat/completionsUse the Chat Completions API with function calling and streaming.
http://127.0.0.1:5001/shannonai/us-central1/v1/completeClaude Messages format with tools and anthropic-version header.
Authorization: Bearer <your-key>Or X-API-Key with anthropic-version for Claude-style calls.
Public docs · Key required to callStreaming, function calling, structured outputs, web search.
- SetupPoint your SDK at ShannonSet baseURL to the OpenAI or Anthropic endpoints above.
- SecurityAttach your API keyUse Bearer tokens for OpenAI calls or X-API-Key + anthropic-version.
- CapabilitiesEnable tools & structured outputsSupports OpenAI tools/functions, JSON schema, and built-in web_search.
- AnalyticsTrack usageView token and search consumption on this page when signed in to your account.
This page stays public. Use it to explore endpoints, then sign in to generate or rotate your API key and monitor usage.
⚡ Capabilities at a Glance
OpenAI + AnthropicDrop-in replacement for OpenAI and Anthropic APIs with native support for tools, structured outputs, and built-in web search.
Drop-in Replacement
CompatibleWorks with OpenAI and Anthropic SDKs. Just change the base URL.
Function Calling
ToolsDefine tools, let Shannon call them. Supports auto, forced, and none modes.
Built-in Web Search
SearchReal-time web search with source citations. Automatically available.
Structured Outputs
JSONJSON mode and JSON Schema enforcement for reliable data extraction.
Multi-turn Tools
AgenticAutomatic function execution loops. Up to 10 iterations per request.
Streaming
FastServer-sent events for real-time token streaming.
🚀 Quick Start
5 minutesGet started in three steps. Shannon mirrors OpenAI and Anthropic clients, so you only need to swap the base URL and attach your API key.
Set your base URL
Use the OpenAI-compatible endpoint for chat completions and tools.
http://127.0.0.1:5001/shannonai/us-central1/v1/chat/completionsAdd your API key
Use Bearer auth in the Authorization header to authenticate every request.
Authorization: Bearer YOUR_API_KEYSend your first message
Pick a language example and swap in your key. Streaming and tools are on.
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="http://127.0.0.1:5001/shannonai/us-central1/v1"
)
response = client.chat.completions.create(
model="shannon-balanced-grpo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, Shannon!"}
],
max_tokens=1024
)
print(response.choices[0].message.content)Response format
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1234567890,
"model": "shannon-balanced-grpo",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! I'm Shannon, your AI assistant. How can I help you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 25,
"completion_tokens": 18,
"total_tokens": 43
}
}🔐 Authentication
All API requests require authentication using your Shannon API key. Sign in to get your API key.
OpenAI Format (Recommended)
Use the Authorization header with Bearer token:
Authorization: Bearer YOUR_API_KEYAnthropic Format
Use the X-API-Key header along with the version header:
X-API-Key: YOUR_API_KEY
anthropic-version: 2023-06-01