SHANNON A.I. ಲೋಗೋ
SHANNON A.I.
ಚಾಟ್ ಬೆಲೆ API ಸಂಶೋಧನೆ ಕಂಪನಿ Pentest AI ಸ್ಟಾರ್ಟ್ಅಪ್ ಬೂಸ್ಟ್
ಸೈನ್ ಇನ್
ಯೋಜನೆ ಮತ್ತು ಬಳಕೆ
ಚಾಟ್ ಬೆಲೆ API ಸಂಶೋಧನೆ ಕಂಪನಿ Pentest AI ಸ್ಟಾರ್ಟ್ಅಪ್ ಬೂಸ್ಟ್ ಸೈನ್ ಇನ್ ಯೋಜನೆ ಮತ್ತು ಬಳಕೆ

ನಿಮ್ಮ ಭಾಷೆಯನ್ನು ಆಯ್ಕೆಮಾಡಿ

ಎಲ್ಲಾ ಭಾಷೆಗಳೂ ಸಮಾನ. ನಿಮಗೆ ಬೇಕಾದ ಭಾಷೆಯನ್ನು ಆಯ್ಕೆಮಾಡಿ.

API ದಸ್ತಾವೇಜು

Shannon API

ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್, ವೆಬ್ ಹುಡುಕಾಟ ಮತ್ತು ರಚಿತ ಔಟ್‌ಪುಟ್‌ಗಳೊಂದಿಗೆ OpenAI ಮತ್ತು Anthropic ಹೊಂದಾಣಿಕೆಯ AI API.

ನಿಮ್ಮ API ಕೀ ಪಡೆಯಿರಿ Playground ಪ್ರಯತ್ನಿಸಿ V2
ದಸ್ತಾವೇಜು
  • OV ಸಮಗ್ರ ಅವಲೋಕನ
  • CP ಸಾಮರ್ಥ್ಯಗಳು
  • QS ವೇಗದ ಆರಂಭ
  • PG API Playground ಹೊಸ
  • AU ದೃಢೀಕರಣ
  • ML ಮಾಡೆಲ್‌ಗಳು
  • FN ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್
  • JS ರಚಿತ ಔಟ್‌ಪುಟ್‌ಗಳು
  • SS ಸ್ಟ್ರೀಮಿಂಗ್
  • WS ಒಳನಿರ್ಮಿತ ವೆಬ್ ಹುಡುಕಾಟ
  • AN Anthropic ಫಾರ್ಮ್ಯಾಟ್
  • CT cli-tools ಹೊಸ
  • SD SDKಗಳು
  • ER ದೋಷ ನಿರ್ವಹಣೆ
  • CL ಬದಲಾವಣೆ ದಾಖಲಾತಿ
  • AK ನಿಮ್ಮ API ಕೀ
  • US ನಿಮ್ಮ ಬಳಕೆ

Shannon AI API Documentation

ಸಮಗ್ರ ಅವಲೋಕನ

ಸಾರ್ವಜನಿಕ ದಸ್ತಾವೇಜು

Shannon OpenAI ಮತ್ತು Anthropic ಹೊಂದಾಣಿಕೆಯ API ಜೊತೆಗೆ ಆರಂಭಿಸಲು ಅಗತ್ಯವಿರುವ ಎಲ್ಲವೂ.

URL OpenAI-ಹೊಂದಾಣಿಕೆ
https://api.shannon-ai.com/v1/chat/completions

Chat Completions API ಅನ್ನು ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್ ಮತ್ತು ಸ್ಟ್ರೀಮಿಂಗ್‌ನೊಂದಿಗೆ ಬಳಸಿರಿ.

URL Anthropic-ಹೊಂದಾಣಿಕೆ
https://api.shannon-ai.com/v1/messages

Claude Messages ಫಾರ್ಮ್ಯಾಟ್ ಸಾಧನಗಳು ಮತ್ತು anthropic-version ಹೆಡರ್‌ನೊಂದಿಗೆ.

ಹೆಡರ್‌ಗಳು ದೃಢೀಕರಣ
Authorization: Bearer <api-key>

ಅಥವಾ Claude ಶೈಲಿ ಕರೆಗೆ X-API-Key ಮತ್ತು anthropic-version ಬಳಸಿ.

ಪ್ರವೇಶ ಸ್ಥಿತಿ
ಸಾರ್ವಜನಿಕ ದಸ್ತಾವೇಜು - ಕರೆ ಮಾಡಲು ಕೀ ಅಗತ್ಯ

ಸ್ಟ್ರೀಮಿಂಗ್, ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್, ರಚಿತ ಔಟ್‌ಪುಟ್‌ಗಳು, ವೆಬ್ ಹುಡುಕಾಟ.

ಪ್ರಾರಂಭ ಚೆಕ್‌ಲಿಸ್ಟ್
  • +
    SDK ಅನ್ನು Shannon ಗೆ ದಾರಿಗೊಳಿಸಿ
    baseURL ಅನ್ನು ಮೇಲಿನ OpenAI ಅಥವಾ Anthropic ಎಂಡ್‌ಪಾಯಿಂಟ್‌ಗಳಿಗೆ ಹೊಂದಿಸಿ.
    ಸೆಟಪ್
  • +
    ನಿಮ್ಮ API ಕೀ ಸೇರಿಸಿ
    OpenAI ಕರೆಗಳಿಗೆ Bearer ಟೋಕನ್‌ಗಳು ಅಥವಾ X-API-Key + anthropic-version ಬಳಸಿ.
    ಭದ್ರತೆ
  • +
    ಸಾಧನಗಳು ಮತ್ತು ರಚಿತ ಔಟ್‌ಪುಟ್‌ಗಳನ್ನು ಸಕ್ರಿಯಗೊಳಿಸಿ
    OpenAI tools/functions, JSON schema ಮತ್ತು ಒಳನಿರ್ಮಿತ web_search ಬೆಂಬಲ.
    ಸಾಮರ್ಥ್ಯಗಳು
  • +
    ಬಳಕೆಯನ್ನು ಟ್ರ್ಯಾಕ್ ಮಾಡಿ
    ನೀವು ಸೈನ್ ಇನ್ ಆಗಿರುವಾಗ ಈ ಪುಟದಲ್ಲಿ ಟೋಕನ್ ಮತ್ತು ಹುಡುಕಾಟ ಬಳಕೆಯನ್ನು ನೋಡಿ.
    ವಿಶ್ಲೇಷಣೆ

ಸಾಮರ್ಥ್ಯಗಳು

OpenAI + Anthropic

OpenAI ಮತ್ತು Anthropic API ಗಳಿಗೆ Drop-in ಬದಲಾವಣೆ; ಸಾಧನಗಳು, ರಚಿತ ಔಟ್‌ಪುಟ್‌ಗಳು ಮತ್ತು встроенный ವೆಬ್ ಹುಡುಕಾಟ ಬೆಂಬಲ.

AI

Drop-in ಬದಲಾವಣೆ

ಹೊಂದಾಣಿಕೆ

OpenAI ಮತ್ತು Anthropic SDK ಗಳೊಂದಿಗೆ ಕೆಲಸ ಮಾಡುತ್ತದೆ. Base URL ಅನ್ನು ಮಾತ್ರ ಬದಲಿಸಿ.

AI

ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್

ಸಾಧನಗಳು

ಸಾಧನಗಳನ್ನು ನಿರ್ಧರಿಸಿ, Shannon ಅವುಗಳನ್ನು ಕರೆಸಲು ಬಿಡಿ. auto, forced ಮತ್ತು none ಮೋಡ್‌ಗಳನ್ನು ಬೆಂಬಲಿಸುತ್ತದೆ.

AI

ಒಳನಿರ್ಮಿತ ವೆಬ್ ಹುಡುಕಾಟ

ಹುಡುಕಾಟ

ಮೂಲ ಉಲ್ಲೇಖಗಳೊಂದಿಗೆ ರಿಯಲ್-ಟೈಮ್ ವೆಬ್ ಹುಡುಕಾಟ. ಸ್ವಯಂಚಾಲಿತವಾಗಿ ಲಭ್ಯ.

AI

ರಚಿತ ಔಟ್‌ಪುಟ್‌ಗಳು

JSON

विश्वಾಸಾರ್ಹ ಡೇಟಾ ಎಕ್ಸ್ಟ್ರಾಕ್ಷನ್‌ಗಾಗಿ JSON ಮೋಡ್ ಮತ್ತು JSON Schema ಅನುಷ್ಠಾನ.

AI

ಮಲ್ಟಿ-ಟರ್ನ್ ಸಾಧನಗಳು

Agentic

ಸ್ವಯಂಚಾಲಿತ ಫಂಕ್ಷನ್ ಎಕ್ಸಿಕ್ಯೂಷನ್ ಲೂಪ್‌ಗಳು. ಪ್ರತಿ ವಿನಂತಿಗೆ ಗರಿಷ್ಠ 10 ಇಟರೇಷನ್‌ಗಳು.

AI

ಸ್ಟ್ರೀಮಿಂಗ್

ವೇಗ

ರಿಯಲ್-ಟೈಮ್ ಟೋಕನ್ ಸ್ಟ್ರೀಮಿಂಗ್‌ಗೆ Server-sent events.

ವೇಗದ ಆರಂಭ

5 ನಿಮಿಷ

ಮೂರು ಹೆಜ್ಜೆಗಳಲ್ಲಿ ಪ್ರಾರಂಭಿಸಿ. Shannon OpenAI ಮತ್ತು Anthropic ಕ್ಲೈಂಟ್‌ಗಳನ್ನು ಪ್ರತಿಬಿಂಬಿಸುತ್ತದೆ.

1

Base URL ಅನ್ನು ಹೊಂದಿಸಿ

OpenAI-ಹೊಂದಾಣಿಕೆಯ endpoint ಬಳಸಿ.

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

API ಕೀ ಸೇರಿಸಿ

Authorization ಹೆಡರ್‌ನಲ್ಲಿ Bearer auth ಬಳಸಿ.

3

ಮೊದಲ ಸಂದೇಶ ಕಳುಹಿಸಿ

ಭಾಷೆ ಆಯ್ಕೆ ಮಾಡಿ ಮತ್ತು ನಿಮ್ಮ ಕೀ ಬದಲಿಸಿ.

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 Playground

ಹೊಸ

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.

/kn/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.

Playground ಪ್ರಯತ್ನಿಸಿ V2 ನಿಮ್ಮ API ಕೀ ಪಡೆಯಿರಿ

ದೃಢೀಕರಣ

ಎಲ್ಲಾ API ವಿನಂತಿಗಳಿಗೆ ನಿಮ್ಮ Shannon API ಕೀಯೊಂದಿಗೆ ದೃಢೀಕರಣ ಅಗತ್ಯ.

OpenAI ಫಾರ್ಮ್ಯಾಟ್ (ಶಿಫಾರಸು)

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

ದೈನಂದಿನ ಕೆಲಸಗಳಿಗೆ ವೇಗವಾದ ಹಾಗೂ ಕಾರ್ಯಕ್ಷಮ ಪ್ರತಿಕ್ರಿಯೆಗಳು

ಸಂದರ್ಭ 128K
ಅತ್ಯುತ್ತಮ ಚಾಟ್, ಪ್ರಶ್ನೋತ್ತರ, ಕಂಟೆಂಟ್ ರಚನೆ
AI
shannon-1.6-pro Shannon 1.6 Pro

ಸಂಕೀರ್ಣ ಸಮಸ್ಯೆಗಳಿಗೆ ಆಳವಾದ ತರ್ಕ

ಸಂದರ್ಭ 128K
ಅತ್ಯುತ್ತಮ ವಿಶ್ಲೇಷಣೆ, ಸಂಶೋಧನೆ, ಸಂಕೀರ್ಣ ಕಾರ್ಯಗಳು
AI
shannon-2-lite Shannon 2 Lite

ಸಂದರ್ಭ 128K
ಅತ್ಯುತ್ತಮ
AI
shannon-2-pro Shannon 2 Pro

ಸಂದರ್ಭ 128K
ಅತ್ಯುತ್ತಮ
AI
shannon-coder-1 Shannon Coder

Claude Code CLI ಗೆ ಕಾಲ್ ಕೋಟಾ ಜೊತೆಗೆ ಹೊಂದಾಣಿಕೆ

ಸಂದರ್ಭ 128K
ಅತ್ಯುತ್ತಮ ಕೋಡ್ ರಚನೆ, ಸಾಧನ ಬಳಕೆ, CLI ಇಂಟಿಗ್ರೇಶನ್
ಕಾಲ್ ಆಧಾರಿತ ಕೋಟಾ

ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್

ಕ್ರಿಯೆಗಳನ್ನು ನಡೆಸಲು ಅಥವಾ ಮಾಹಿತಿ ಪಡೆಯಲು 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" ಮಾಡೆಲ್ ಫಂಕ್ಷನ್ ಅನ್ನು ಕರೆವುದನ್ನು ತಾನೇ ನಿರ್ಧರಿಸುತ್ತದೆ (ಡೀಫಾಲ್ಟ್)
"none" ಈ ವಿನಂತಿಗೆ ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್ ಅನ್ನು ನಿಷ್ಕ್ರಿಯಗೊಳಿಸಿ
{"type": "function", "function": {"name": "..."}} ನಿರ್ದಿಷ್ಟ ಫಂಕ್ಷನ್ ಕಾಲ್ ಅನ್ನು ಬಲವಂತಗೊಳಿಸಿ

ಫಂಕ್ಷನ್ ಕಾಲ್ ಪ್ರತಿಕ್ರಿಯೆ

ಮಾಡೆಲ್ ಫಂಕ್ಷನ್ ಅನ್ನು ಕರೆಯುವಾಗ
{
  "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"
    }
  ]
}

ರಚಿತ ಔಟ್‌ಪುಟ್‌ಗಳು

ನಿಮ್ಮ schema ಗೆ ಹೊಂದುವ ಮಾನ್ಯ 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"} ಮಾನ್ಯ JSON ಔಟ್‌ಪುಟ್ ಬಲವಂತಗೊಳಿಸಿ (ನಿಶ್ಚಿತ schema ಇಲ್ಲ)
{"type": "json_schema", "json_schema": {...}} ನಿಮ್ಮ ನಿಖರ 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);
}
ಸಲಹೆ: ಸ್ಟ್ರೀಮಿಂಗ್ ಪ್ರತಿಕ್ರಿಯೆಗಳು Server-Sent Events ಆಗಿ ಬರುತ್ತವೆ. ಪ್ರತಿಯೊಂದು ತುಂಡಿನಲ್ಲಿ ಭಾಗಶಃ ವಿಷಯ ಹೊಂದಿರುವ delta ಇರುತ್ತದೆ.

ಒಳನಿರ್ಮಿತ ವೆಬ್ ಹುಡುಕಾಟ

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
ಪ್ರೋ ಸಲಹೆ: ವೆಬ್ ಹುಡುಕಾಟ ಫಲಿತಾಂಶಗಳಲ್ಲಿ ಉಲ್ಲೇಖಗಳು ಇರುತ್ತವೆ. Shannon ಸ್ವಯಂಚಾಲಿತವಾಗಿ ಮೂಲಗಳನ್ನು ಉಲ್ಲೇಖಿಸುತ್ತದೆ.

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 ಫಾರ್ಮ್ಯಾಟ್‌ಗೆ anthropic-version: 2023-06-01 ಅಗತ್ಯ.

CLI Coding Agents

NEW

Use Shannon as the AI backend for popular CLI coding agents. Read files, edit code, run tests — all powered by Shannon's API.

CLI Claude Code

Anthropic's official CLI coding agent. Point it at Shannon to use as your AI backend for reading, editing, and running code directly in your terminal.

ANTHROPIC_BASE_URL=https://api.shannon-ai.com ANTHROPIC_API_KEY=sk-YOUR_KEY claude --bare
ದಸ್ತಾವೇಜು ನೋಡಿ ->
CLI Codex CLI

OpenAI's open-source coding agent. Uses the Responses API for multi-turn tool use, file editing, and shell commands — all routed through Shannon.

OPENAI_BASE_URL=https://api.shannon-ai.com/v1 OPENAI_API_KEY=sk-YOUR_KEY codex
ದಸ್ತಾವೇಜು ನೋಡಿ ->

Claude Code

Anthropic's official CLI coding agent. Set two environment variables and launch with --bare to skip Anthropic account login.

Bash
# Install Claude Code (requires Node.js 18+)
npm install -g @anthropic-ai/claude-code

# Connect to Shannon AI as backend
export ANTHROPIC_BASE_URL=https://api.shannon-ai.com
export ANTHROPIC_API_KEY=sk-YOUR_API_KEY

# Launch Claude Code in bare mode (no Anthropic account needed)
claude --bare

# Or run a one-shot command
claude --bare -p "Explain this codebase"

# Claude Code will use Shannon's Anthropic-compatible API
# for all AI operations: reading files, editing code,
# running tests, and multi-turn tool use.
Shell Config
# Alternative: set env vars permanently in your shell profile
# ~/.bashrc or ~/.zshrc

export ANTHROPIC_BASE_URL=https://api.shannon-ai.com
export ANTHROPIC_API_KEY=sk-YOUR_API_KEY

# Then just run:
claude --bare

# Supported features through Shannon:
# - Multi-turn conversations with full context
# - File reading and editing (tool use)
# - Shell command execution
# - Streaming responses
# - All Claude Code slash commands (/compact, /clear, etc.)

Codex CLI

OpenAI's open-source coding agent. Uses the Responses API for multi-turn tool use, file editing, and shell commands.

Bash
# Install Codex CLI
npm install -g @openai/codex

# Connect to Shannon AI as backend
export OPENAI_BASE_URL=https://api.shannon-ai.com/v1
export OPENAI_API_KEY=sk-YOUR_API_KEY

# Launch Codex
codex

# Or run a one-shot command
codex "fix the bug in main.py"

# Codex uses the Responses API (POST /v1/responses)
# Shannon handles tool calls including:
# - Reading and writing files
# - Running shell commands
# - Multi-turn function calling
Shell Config
# Alternative: set env vars permanently
# ~/.bashrc or ~/.zshrc

export OPENAI_BASE_URL=https://api.shannon-ai.com/v1
export OPENAI_API_KEY=sk-YOUR_API_KEY

# Then just run:
codex

# Supported features through Shannon:
# - Responses API with full tool use
# - Function calling (file read/write, shell exec)
# - Streaming with real-time output
# - Multi-turn conversations
# - All Codex approval modes (suggest, auto-edit, full-auto)
How It Works: Both tools send standard API requests (Anthropic Messages or OpenAI Responses) to Shannon. Shannon routes them through Gemini with full tool-use support. No Anthropic or OpenAI account needed — just your Shannon API key.

SDKಗಳು

ಹೊಂದಾಣಿಕೆ

ಯಾವುದೇ OpenAI ಅಥವಾ Anthropic SDK ಬಳಸಿ — base URL ಅನ್ನು ಮಾತ್ರ ಬದಲಿಸಿ.

OpenAI-ಹೊಂದಾಣಿಕೆ SDKಗಳು

SDK Python

ಆಧಿಕೃತ OpenAI Python SDK — Shannon ಜೊತೆ ಕಾರ್ಯನಿರ್ವಹಿಸುತ್ತದೆ

pip install openai
ದಸ್ತಾವೇಜು ನೋಡಿ ->
SDK JavaScript / TypeScript

ಆಧಿಕೃತ OpenAI Node.js SDK — Shannon ಜೊತೆ ಕಾರ್ಯನಿರ್ವಹಿಸುತ್ತದೆ

npm install openai
ದಸ್ತಾವೇಜು ನೋಡಿ ->
SDK Go

OpenAI-ಹೊಂದಾಣಿಕೆ API ಗಾಗಿ ಸಮುದಾಯ Go ಕ್ಲೈಂಟ್

go get github.com/sashabaranov/go-openai
ದಸ್ತಾವೇಜು ನೋಡಿ ->
SDK Ruby

OpenAI-ಹೊಂದಾಣಿಕೆ API ಗಾಗಿ ಸಮುದಾಯ Ruby ಕ್ಲೈಂಟ್

gem install ruby-openai
ದಸ್ತಾವೇಜು ನೋಡಿ ->
SDK PHP

OpenAI-ಹೊಂದಾಣಿಕೆ API ಗಾಗಿ ಸಮುದಾಯ PHP ಕ್ಲೈಂಟ್

composer require openai-php/client
ದಸ್ತಾವೇಜು ನೋಡಿ ->
SDK Rust

OpenAI-ಹೊಂದಾಣಿಕೆ API ಗಾಗಿ Async Rust ಕ್ಲೈಂಟ್

cargo add async-openai
ದಸ್ತಾವೇಜು ನೋಡಿ ->

Anthropic-ಹೊಂದಾಣಿಕೆ SDKಗಳು

SDK Python (Anthropic)

ಆಧಿಕೃತ Anthropic Python SDK — Shannon ಜೊತೆ ಕಾರ್ಯನಿರ್ವಹಿಸುತ್ತದೆ

pip install anthropic
ದಸ್ತಾವೇಜು ನೋಡಿ ->
SDK TypeScript (Anthropic)

ಆಧಿಕೃತ Anthropic TypeScript SDK — Shannon ಜೊತೆ ಕಾರ್ಯನಿರ್ವಹಿಸುತ್ತದೆ

npm install @anthropic-ai/sdk
ದಸ್ತಾವೇಜು ನೋಡಿ ->

ದೋಷ ನಿರ್ವಹಣೆ

Shannon ಮಾನಕ HTTP ಸ್ಥಿತಿ ಕೋಡ್‌ಗಳನ್ನು ಬಳಸುತ್ತದೆ ಮತ್ತು ವಿವರವಾದ ದೋಷ ಸಂದೇಶಗಳನ್ನು ಹಿಂದಿರುಗಿಸುತ್ತದೆ.

400 ತಪ್ಪು ವಿನಂತಿ ವಿನಂತಿ ಸ್ವರೂಪ ಅಥವಾ ಪರಾಮಿತಿಗಳು ತಪ್ಪಾಗಿದೆ
401 ಅನಧಿಕೃತ API ಕೀ ತಪ್ಪಾಗಿದೆ ಅಥವಾ ಕಾಣೆಯಾಗಿದೆ
402 ಕೋಟಾ ಮೀರಿದೆ ಟೋಕನ್ ಅಥವಾ ಹುಡುಕಾಟ ಕೋಟಾ ಮೀರಿದೆ
429 ವೇಗ ಮಿತಿ ಅತಿಯಾದ ವಿನಂತಿಗಳು, ದಯವಿಟ್ಟು ನಿಧಾನಗೊಳಿಸಿ
500 ಸರ್ವರ್ ದೋಷ ಆಂತರಿಕ ದೋಷ, ನಂತರ ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ

ದೋಷ ಪ್ರತಿಕ್ರಿಯೆ ಸ್ವರೂಪ

ದೋಷ ಪ್ರತಿಕ್ರಿಯೆ
{
  "error": {
    "message": "Invalid API key provided",
    "type": "authentication_error",
    "code": "invalid_api_key"
  }
}

ಬದಲಾವಣೆ ದಾಖಲಾತಿ

LOG

Shannon API ಗೆ ಇತ್ತೀಚಿನ ಅಪ್ಡೇಟ್‌ಗಳು ಮತ್ತು ಸುಧಾರಣೆಗಳು.

v2.2.0
2026-03-28
  • ಹೊಸ Claude Code support — use Shannon as your Anthropic backend for the official CLI coding agent
  • ಹೊಸ Codex CLI support — full Responses API with multi-turn tool use for OpenAI's coding agent
  • ಸುಧಾರಿಸಲಾಗಿದೆ Anthropic streaming format fixes — proper content_block lifecycle, tool_use deltas, toolu_ prefixes
  • ಸುಧಾರಿಸಲಾಗಿದೆ Schema sanitization for Gemini — strips $schema, additionalProperties, $ref and other unsupported fields from tool schemas
v2.1.0
2025-01-03
  • ಹೊಸ Claude Code CLI ಏಕೀಕರಣಕ್ಕಾಗಿ shannon-coder-1 ಮಾದರಿ ಸೇರಿಸಲಾಗಿದೆ
  • ಹೊಸ Coder ಮಾದರಿಗಾಗಿ ಕಾಲ್-ಆಧಾರಿತ ಕೋಟಾ ವ್ಯವಸ್ಥೆ
  • ಸುಧಾರಿಸಲಾಗಿದೆ ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್ ವಿಶ್ವಾಸಾರ್ಹತೆ ಸುಧಾರಿಸಲಾಗಿದೆ
v2.0.0
2024-12-15
  • ಹೊಸ Anthropic Messages API ಹೊಂದಾಣಿಕೆ ಸೇರಿಸಲಾಗಿದೆ
  • ಹೊಸ ಬಹು-ಚಕ್ರ ಸಾಧನ ಕಾರ್ಯನಿರ್ವಹಣೆ (ಗರಿಷ್ಠ 10 ಇಟರೇಷನ್‌ಗಳು)
  • ಹೊಸ JSON Schema ಪ್ರತಿಕ್ರಿಯೆ ಸ್ವರೂಪ ಬೆಂಬಲ
  • ಸುಧಾರಿಸಲಾಗಿದೆ ಉತ್ತಮ ಉಲ್ಲೇಖಗಳೊಂದಿಗೆ ವೆಬ್ ಹುಡುಕಾಟ ಸುಧಾರಿಸಲಾಗಿದೆ
v1.5.0
2024-11-20
  • ಹೊಸ ಸಂಕೀರ್ಣ ತರ್ಕಕ್ಕಾಗಿ shannon-deep-dapo ಮಾದರಿ ಸೇರಿಸಲಾಗಿದೆ
  • ಹೊಸ ಒಳನಿರ್ಮಿತ web_search ಫಂಕ್ಷನ್
  • ಸುಧಾರಿಸಲಾಗಿದೆ ಸ್ಟ್ರೀಮಿಂಗ್ ಪ್ರತಿಕ್ರಿಯೆಗಳ ವಿಳಂಬ ಕಡಿಮೆಯಾಗಿದೆ
v1.0.0
2024-10-01
  • ಹೊಸ API ಮೊದಲ ಬಿಡುಗಡೆ
  • ಹೊಸ OpenAI-ಹೊಂದಾಣಿಕೆ chat completions endpoint
  • ಹೊಸ ಫಂಕ್ಷನ್ ಕಾಲಿಂಗ್ ಬೆಂಬಲ
  • ಹೊಸ Server-Sent Events ಮೂಲಕ ಸ್ಟ್ರೀಮಿಂಗ್

ನಿಮ್ಮ API ಕೀ

ಪ್ರವೇಶ
OpenAI ಕರೆಗಳಿಗೆ Bearer ಟೋಕನ್‌ಗಳು ಅಥವಾ X-API-Key + anthropic-version ಬಳಸಿ.
YOUR_API_KEY
ನಿಮ್ಮ API ಕೀ ಪಡೆಯಿರಿ

ನಿಮ್ಮ API ಕೀ ಅನ್ನು ಗುಪ್ತವಾಗಿ ಇಡಿ. ಮರುಸೃಷ್ಟಿ ಹೊಸ ಕೀ ರಚಿಸಿ ಹಳೆಯದನ್ನು ಅಮಾನ್ಯಗೊಳಿಸುತ್ತದೆ.

ಆವೃತ್ತಿ: 1
ಕೊನೆಯದಾಗಿ ಬದಲಾಯಿಸಿದ್ದು: ಎಂದಿಗೂ ಇಲ್ಲ
ಕೊನೆಯದಾಗಿ ಬಳಸಿದ್ದು: ಎಂದಿಗೂ ಇಲ್ಲ

ನಿಮ್ಮ ಬಳಕೆ

ನೀವು ಸೈನ್ ಇನ್ ಆಗಿರುವಾಗ ಈ ಪುಟದಲ್ಲಿ ಟೋಕನ್ ಮತ್ತು ಹುಡುಕಾಟ ಬಳಕೆಯನ್ನು ನೋಡಿ.

-- API ಕರೆಗಳು
-- ಬಳಸಿದ ಟೋಕನ್‌ಗಳು

Shannon Coder (shannon-coder-1)

Shannon Coder (shannon-coder-1) ಗಾಗಿ ಕಾಲ್-ಆಧಾರಿತ ಕೋಟಾ. ಪ್ರತಿ 4 ಗಂಟೆಗೆ ಮರುಹೊಂದಿಸಲಾಗುತ್ತದೆ.

0 ಬಳಸಿದ ಕರೆಗಳು
0 ಉಳಿದ ಕರೆಗಳು

ನಿರ್ಮಿಸಲು ಸಿದ್ಧರಾ?

ನಿಮ್ಮ API ಕೀ ಪಡೆಯಿರಿ ಮತ್ತು ಇಂದು Shannon AI ಜೊತೆಗೆ ನಿರ್ಮಿಸಲು ಪ್ರಾರಂಭಿಸಿ.

API ಕೀ ಪಡೆಯಿರಿ ಬೆಲೆಗಳನ್ನು ನೋಡಿ

ಜನಪ್ರಿಯ ಹುಡುಕಾಟಗಳು:

ಬೇರೆಯಾದ ಕೀವರ್ಡ್‌ಗಳನ್ನು ಪ್ರಯತ್ನಿಸಿ
ನ್ಯಾವಿಗೇಟ್: ↑ ↓ ಆಯ್ಕೆ: Enter ಮುಚ್ಚಿ: Esc