SHANNON A.I. লোগো
SHANNON A.I.
চ্যাট মূল্য API গবেষণা কোম্পানি Pentest AI স্টার্টআপ বুস্ট
সাইন ইন
প্ল্যান এবং ব্যবহার
চ্যাট মূল্য API গবেষণা কোম্পানি Pentest AI স্টার্টআপ বুস্ট সাইন ইন প্ল্যান এবং ব্যবহার

আপনার ভাষা বেছে নিন

সব ভাষাই সমান। যে ভাষায় ব্রাউজ করতে চান সেটি বেছে নিন।

API ডকুমেন্টেশন

Shannon API

OpenAI ও Anthropic-সামঞ্জস্যপূর্ণ AI API, ফাংশন কলিং, ওয়েব সার্চ ও স্ট্রাকচার্ড আউটপুটসহ।

আপনার API কী নিন প্লেগ্রাউন্ড চেষ্টা করুন V2
ডকুমেন্টেশন
  • OV সংক্ষিপ্ত বিবরণ
  • CP ক্ষমতাসমূহ
  • QS কুইক স্টার্ট
  • PG API প্লেগ্রাউন্ড নতুন
  • AU প্রমাণীকরণ
  • ML মডেলসমূহ
  • FN ফাংশন কলিং
  • JS স্ট্রাকচার্ড আউটপুট
  • SS স্ট্রিমিং
  • WS ওয়েব সার্চ
  • AN Anthropic
  • SD SDKসমূহ
  • ER এরর হ্যান্ডলিং
  • CL পরিবর্তনের তালিকা
  • AK আপনার API Key
  • US আপনার ব্যবহার

Shannon AI API Documentation

সংক্ষিপ্ত বিবরণ

Public docs

Shannon-এর OpenAI ও Anthropic-সামঞ্জস্যপূর্ণ API দিয়ে শিপ করতে যা দরকার সবকিছু।

বেস URL OpenAI-Compatible
https://api.shannon-ai.com/v1/chat/completions

Use the Chat Completions API with function calling and streaming.

বেস URL Anthropic-Compatible
https://api.shannon-ai.com/v1/messages

Claude Messages format with tools and anthropic-version header.

হেডার প্রমাণীকরণ
অনুমোদন: Bearer <apnar-key>

Or X-API-Key with anthropic-version for Claude-style calls.

Access Status
Public docs - Key required to call

Streaming, function calling, structured outputs, web search.

Launch checklist
  • +
    Point your SDK at Shannon
    Set baseURL to the OpenAI or Anthropic endpoints above.
    Setup
  • +
    Attach your API key
    Use Bearer tokens for OpenAI calls or X-API-Key + anthropic-version.
    Security
  • +
    Enable tools & structured outputs
    Supports OpenAI tools/functions, JSON schema, and built-in web_search.
    ক্ষমতাসমূহ
  • +
    Track usage
    View token and search consumption on this page when signed in to your account.
    Analytics

ক্ষমতাসমূহ

OpenAI + Anthropic

OpenAI ও Anthropic API-এর জন্য ড্রপ‑ইন রিপ্লেসমেন্ট, টুলস, স্ট্রাকচার্ড আউটপুট এবং বিল্ট‑ইন ওয়েব সার্চ সাপোর্টসহ।

AI

ড্রপ‑ইন প্রতিস্থাপন

সামঞ্জস্যপূর্ণ

OpenAI ও Anthropic SDK‑এর সাথে কাজ করে। শুধু বেস URL বদলান।

AI

ফাংশন কলিং

টুলস

টুল নির্ধারণ করুন, Shannon সেগুলো কল করবে। auto, forced ও none মোড সমর্থিত।

AI

বিল্ট‑ইন ওয়েব সার্চ

সার্চ

রিয়েল‑টাইম ওয়েব সার্চ সোর্স উদ্ধৃতিসহ। স্বয়ংক্রিয়ভাবে উপলব্ধ।

AI

স্ট্রাকচার্ড আউটপুট

JSON

নির্ভরযোগ্য ডেটা এক্সট্র্যাকশনের জন্য JSON মোড ও JSON স্কিমা এনফোর্সমেন্ট।

AI

মাল্টি‑টার্ন টুলস

এজেন্টিক

স্বয়ংক্রিয় ফাংশন এক্সিকিউশন লুপ। প্রতি অনুরোধে সর্বোচ্চ ১০ ইটারেশন।

AI

স্ট্রিমিং

দ্রুত

রিয়েল‑টাইম টোকেন স্ট্রিমিংয়ের জন্য server‑sent events.

কুইক স্টার্ট

৫ মিনিট

তিন ধাপে শুরু করুন। Shannon OpenAI ও Anthropic ক্লায়েন্ট মিরর করে।

1

আপনার বেস URL সেট করুন

OpenAI‑compatible endpoint ব্যবহার করুন।

https://api.shannon-ai.com/v1/chat/completions
2

আপনার API key যোগ করুন

Authorization হেডারে Bearer auth ব্যবহার করুন।

3

আপনার প্রথম বার্তা পাঠান

ভাষা নির্বাচন করে আপনার key বসান।

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

response = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello, Shannon!"}
    ],
    max_tokens=1024
)

print(response.choices[0].message.content)
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

const response = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [
    { role: 'system', content: 'You are a helpful assistant.' },
    { role: 'user', content: 'Hello, Shannon!' }
  ],
  max_tokens: 1024
});

console.log(response.choices[0].message.content);
Go
package main

import (
    "context"
    "fmt"
    openai "github.com/sashabaranov/go-openai"
)

func main() {
    config := openai.DefaultConfig("YOUR_API_KEY")
    config.BaseURL = "https://api.shannon-ai.com/v1"
    client := openai.NewClientWithConfig(config)

    resp, err := client.CreateChatCompletion(
        context.Background(),
        openai.ChatCompletionRequest{
            Model: "shannon-1.6-lite",
            Messages: []openai.ChatCompletionMessage{
                {Role: "system", Content: "You are a helpful assistant."},
                {Role: "user", Content: "Hello, Shannon!"},
            },
            MaxTokens: 1024,
        },
    )
    if err != nil {
        panic(err)
    }
    fmt.Println(resp.Choices[0].Message.Content)
}
cURL
curl -X POST "https://api.shannon-ai.com/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "shannon-1.6-lite",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Hello, Shannon!"}
    ],
    "max_tokens": 1024
  }'

রেসপন্স ফরম্যাট

সফল রেসপন্স
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "created": 1234567890,
  "model": "Shannon 1.6 Lite",
  "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
  }
}

API প্লেগ্রাউন্ড

নতুন

ব্রাউজারেই Shannon API টেস্ট করুন। রিকোয়েস্ট তৈরি করে রান করুন এবং রিয়েল‑টাইম রেসপন্স দেখুন।

1

Chat, Responses, Messages

Switch across OpenAI Chat Completions, Responses, and Anthropic Messages without leaving the playground.

2

Stream live output

Run real requests, inspect raw JSON, and view stream events from the same operator console.

3

Reuse your key

Signed-in users can pull their Shannon API key straight into the dedicated playground workspace.

/bn/docs/playground

The playground now lives on its own route so the API docs stay Astro-rendered while the request builder remains an explicitly interactive client tool.

প্লেগ্রাউন্ড চেষ্টা করুন V2 আপনার API কী নিন

প্রমাণীকরণ

সব API অনুরোধে আপনার Shannon API কী দিয়ে প্রমাণীকরণ প্রয়োজন।

OpenAI Format (Recommended)

HTTP
Authorization: Bearer YOUR_API_KEY

Anthropic

HTTP
X-API-Key: YOUR_API_KEY
anthropic-version: 2023-06-01

মডেলসমূহ

Shannon বিভিন্ন ব্যবহারের জন্য অপ্টিমাইজড একাধিক মডেল সরবরাহ করে।

AI
shannon-1.6-lite Shannon 1.6 Lite

Fast, efficient responses for everyday tasks

প্রেক্ষাপট 128K
সর্বোত্তম জন্য Chat, Q&A, Content Generation
AI
shannon-1.6-pro Shannon 1.6 Pro

Advanced reasoning for complex problems

প্রেক্ষাপট 128K
সর্বোত্তম জন্য Analysis, Research, Complex Tasks
AI
shannon-2-lite Shannon 2 Lite

প্রেক্ষাপট 128K
সর্বোত্তম জন্য
AI
shannon-2-pro Shannon 2 Pro

প্রেক্ষাপট 128K
সর্বোত্তম জন্য
AI
shannon-coder-1 Shannon Coder

Optimized for Claude Code CLI with call-based quota

প্রেক্ষাপট 128K
সর্বোত্তম জন্য Code Generation, Tool Use, CLI Integration
Call-based quota

ফাংশন কলিং

Shannon যে টুলগুলো কল করে কাজ করতে বা তথ্য আনতে পারে সেগুলো সংজ্ঞায়িত করুন।

Python
from openai import OpenAI
import json

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

# Define available tools/functions
tools = [
    {
        "type": "function",
        "function": {
            "name": "get_weather",
            "description": "Get current weather for a location",
            "parameters": {
                "type": "object",
                "properties": {
                    "location": {
                        "type": "string",
                        "description": "City name, e.g., 'Tokyo'"
                    },
                    "unit": {
                        "type": "string",
                        "enum": ["celsius", "fahrenheit"]
                    }
                },
                "required": ["location"]
            }
        }
    }
]

response = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[{"role": "user", "content": "What's the weather in Tokyo?"}],
    tools=tools,
    tool_choice="auto"
)

# Check if model wants to call a function
if response.choices[0].message.tool_calls:
    tool_call = response.choices[0].message.tool_calls[0]
    print(f"Function: {tool_call.function.name}")
    print(f"Arguments: {tool_call.function.arguments}")
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

const tools = [
  {
    type: 'function',
    function: {
      name: 'get_weather',
      description: 'Get current weather for a location',
      parameters: {
        type: 'object',
        properties: {
          location: { type: 'string', description: "City name" },
          unit: { type: 'string', enum: ['celsius', 'fahrenheit'] }
        },
        required: ['location']
      }
    }
  }
];

const response = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [{ role: 'user', content: "What's the weather in Tokyo?" }],
  tools,
  tool_choice: 'auto'
});

if (response.choices[0].message.tool_calls) {
  const toolCall = response.choices[0].message.tool_calls[0];
  console.log('Function:', toolCall.function.name);
  console.log('Arguments:', toolCall.function.arguments);
}

টুল নির্বাচন অপশন

"auto" Model decides whether to call a function (default)
"none" Disable function calling for this request
{"type": "function", "function": {"name": "..."}} Force a specific function call

ফাংশন কল রেসপন্স

When model calls a function
{
  "id": "chatcmpl-xyz",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": null,
        "tool_calls": [
          {
            "id": "call_abc123",
            "type": "function",
            "function": {
              "name": "get_weather",
              "arguments": "{\"location\": \"Tokyo\", \"unit\": \"celsius\"}"
            }
          }
        ]
      },
      "finish_reason": "tool_calls"
    }
  ]
}

স্ট্রাকচার্ড আউটপুট

আপনার স্কিমার সাথে মিলিয়ে বৈধ JSON দিতে Shannon‑কে বাধ্য করুন।

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

# Force JSON output with schema
response = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[
        {"role": "user", "content": "Extract: John Doe, 30 years old, engineer"}
    ],
    response_format={
        "type": "json_schema",
        "json_schema": {
            "name": "person_info",
            "schema": {
                "type": "object",
                "properties": {
                    "name": {"type": "string"},
                    "age": {"type": "integer"},
                    "occupation": {"type": "string"}
                },
                "required": ["name", "age", "occupation"]
            }
        }
    }
)

import json
data = json.loads(response.choices[0].message.content)
print(data)  # {"name": "John Doe", "age": 30, "occupation": "engineer"}
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

const response = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [
    { role: 'user', content: 'Extract: John Doe, 30 years old, engineer' }
  ],
  response_format: {
    type: 'json_schema',
    json_schema: {
      name: 'person_info',
      schema: {
        type: 'object',
        properties: {
          name: { type: 'string' },
          age: { type: 'integer' },
          occupation: { type: 'string' }
        },
        required: ['name', 'age', 'occupation']
      }
    }
  }
});

const data = JSON.parse(response.choices[0].message.content);
console.log(data); // { name: "John Doe", age: 30, occupation: "engineer" }

রেসপন্স ফরম্যাট অপশন

{"type": "json_object"} Force valid JSON output (no specific schema)
{"type": "json_schema", "json_schema": {...}} Force output matching your exact schema

স্ট্রিমিং

রেসপন্সিভ UI-এর জন্য Server‑Sent Events দিয়ে রিয়েল‑টাইম টোকেন স্ট্রিমিং চালু করুন।

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

# Enable streaming for real-time responses
stream = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[
        {"role": "user", "content": "Write a short poem about AI"}
    ],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

// Enable streaming for real-time responses
const stream = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [
    { role: 'user', content: 'Write a short poem about AI' }
  ],
  stream: true
});

for await (const chunk of stream) {
  const content = chunk.choices[0]?.delta?.content;
  if (content) process.stdout.write(content);
}
টিপ: Streaming responses arrive as Server-Sent Events. Each chunk contains a delta with partial content.

ওয়েব সার্চ

Shannon‑এ বিল্ট‑ইন web_search ফাংশন আছে যা স্বয়ংক্রিয়ভাবে উপলব্ধ।

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/v1"
)

# Web search is automatically available!
# Shannon will use it when needed for current information

response = client.chat.completions.create(
    model="shannon-1.6-lite",
    messages=[
        {"role": "user", "content": "What are the latest AI news today?"}
    ],
    # Optionally, explicitly define web_search tool
    tools=[{
        "type": "function",
        "function": {
            "name": "web_search",
            "description": "Search the web for current information",
            "parameters": {
                "type": "object",
                "properties": {
                    "query": {"type": "string", "description": "Search query"}
                },
                "required": ["query"]
            }
        }
    }]
)

print(response.choices[0].message.content)
# Response includes sources and citations
JavaScript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/v1'
});

// Web search is automatically available!
// Shannon will use it when needed for current information

const response = await client.chat.completions.create({
  model: 'shannon-1.6-lite',
  messages: [
    { role: 'user', content: 'What are the latest AI news today?' }
  ],
  // Optionally, explicitly define web_search tool
  tools: [{
    type: 'function',
    function: {
      name: 'web_search',
      description: 'Search the web for current information',
      parameters: {
        type: 'object',
        properties: {
          query: { type: 'string', description: 'Search query' }
        },
        required: ['query']
      }
    }
  }]
});

console.log(response.choices[0].message.content);
// Response includes sources and citations
প্রো টিপ: Web search results include citations. Shannon will automatically cite sources.

Anthropic

Shannon Anthropic-এর Messages API ফরম্যাটও সমর্থন করে।

https://api.shannon-ai.com/v1/messages
Python
import anthropic

client = anthropic.Anthropic(
    api_key="YOUR_API_KEY",
    base_url="https://api.shannon-ai.com/messages"
)

response = client.messages.create(
    model="shannon-1.6-lite",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Hello, Shannon!"}
    ],
    # Tool use (Anthropic format)
    tools=[{
        "name": "web_search",
        "description": "Search the web",
        "input_schema": {
            "type": "object",
            "properties": {
                "query": {"type": "string"}
            },
            "required": ["query"]
        }
    }]
)

print(response.content[0].text)
JavaScript
import Anthropic from '@anthropic-ai/sdk';

const client = new Anthropic({
  apiKey: 'YOUR_API_KEY',
  baseURL: 'https://api.shannon-ai.com/messages'
});

const response = await client.messages.create({
  model: 'shannon-1.6-lite',
  max_tokens: 1024,
  messages: [
    { role: 'user', content: 'Hello, Shannon!' }
  ],
  // Tool use (Anthropic format)
  tools: [{
    name: 'web_search',
    description: 'Search the web',
    input_schema: {
      type: 'object',
      properties: {
        query: { type: 'string' }
      },
      required: ['query']
    }
  }]
});

console.log(response.content[0].text);
আবশ্যিক হেডার: Anthropic format requires anthropic-version: 2023-06-01.

SDKসমূহ

সামঞ্জস্যপূর্ণ

যে কোনো OpenAI বা Anthropic SDK ব্যবহার করুন—শুধু বেস URL পরিবর্তন করুন।

OpenAI-Compatible SDKs

SDK Python

Official OpenAI Python SDK - works with Shannon

pip install openai
View Docs ->
SDK JavaScript / TypeScript

Official OpenAI Node.js SDK - works with Shannon

npm install openai
View Docs ->
SDK Go

Community Go client for OpenAI-compatible APIs

go get github.com/sashabaranov/go-openai
View Docs ->
SDK Ruby

Community Ruby client for OpenAI-compatible APIs

gem install ruby-openai
View Docs ->
SDK PHP

Community PHP client for OpenAI-compatible APIs

composer require openai-php/client
View Docs ->
SDK Rust

Async Rust client for OpenAI-compatible APIs

cargo add async-openai
View Docs ->

Anthropic-Compatible SDKs

SDK Python (Anthropic)

Official Anthropic Python SDK - works with Shannon

pip install anthropic
View Docs ->
SDK TypeScript (Anthropic)

Official Anthropic TypeScript SDK - works with Shannon

npm install @anthropic-ai/sdk
View Docs ->

এরর হ্যান্ডলিং

Shannon স্ট্যান্ডার্ড HTTP স্ট্যাটাস কোড ব্যবহার করে এবং বিস্তারিত এরর বার্তা দেয়।

400 খারাপ অনুরোধ অবৈধ রিকোয়েস্ট ফরম্যাট বা প্যারামিটার
401 অননুমোদিত API key অবৈধ বা অনুপস্থিত
402 কোটা অতিক্রম টোকেন বা সার্চ কোটা অতিক্রম
429 রেট লিমিটেড অনেক অনুরোধ, ধীরে করুন
500 সার্ভার ত্রুটি অভ্যন্তরীণ ত্রুটি, পরে আবার চেষ্টা করুন

এরর রেসপন্স ফরম্যাট

এরর রেসপন্স
{
  "error": {
    "message": "Invalid API key provided",
    "type": "authentication_error",
    "code": "invalid_api_key"
  }
}

পরিবর্তনের তালিকা

LOG

Shannon API-এর সাম্প্রতিক আপডেট ও উন্নয়ন।

v2.1.0
2025-01-03
  • নতুন Added shannon-coder-1 model for Claude Code CLI integration
  • নতুন Call-based quota system for Coder model
  • Improved Improved function calling reliability
v2.0.0
2024-12-15
  • নতুন Added Anthropic Messages API compatibility
  • নতুন Multi-turn tool execution (up to 10 iterations)
  • নতুন JSON Schema response format support
  • Improved Enhanced web search with better citations
v1.5.0
2024-11-20
  • নতুন Added shannon-deep-dapo model for complex reasoning
  • নতুন Built-in web_search function
  • Improved Reduced latency for streaming responses
v1.0.0
2024-10-01
  • নতুন Initial API release
  • নতুন OpenAI-compatible chat completions endpoint
  • নতুন Function calling support
  • নতুন Streaming via Server-Sent Events

আপনার API Key

Access
Use Bearer tokens for OpenAI calls or X-API-Key + anthropic-version.
YOUR_API_KEY
আপনার API কী নিন

আপনার API key গোপন রাখুন। রিজেনারেট করলে নতুন key হবে এবং পুরনোটি বাতিল হবে।

ভার্সন: 1
সর্বশেষ রোটেশন: কখনও নয়
সর্বশেষ ব্যবহার: কখনও নয়

আপনার ব্যবহার

View token and search consumption on this page when signed in to your account.

-- API কল
-- ব্যবহৃত টোকেন

Shannon Coder (shannon-coder-1)

Shannon Coder (shannon-coder-1)‑এর জন্য কল‑ভিত্তিক কোটা। প্রতি 4 ঘন্টায় রিসেট হয়।

0 ব্যবহৃত কল
0 অবশিষ্ট কল

শুরু করতে প্রস্তুত?

আপনার API কী নিন এবং আজই Shannon AI দিয়ে তৈরি শুরু করুন।

API কী তৈরি করুন ডকুমেন্টেশন দেখুন

জনপ্রিয় সার্চ:

ভিন্ন কীওয়ার্ড চেষ্টা করুন
নেভিগেট: ↑ ↓ নির্বাচন: Enter বন্ধ: Esc