Skip to main content

Anthropic Messages API ને aicharged.io સાથે કનેક્ટ કરો

215 ટૂલ્સ, એક એન્ડપોઇન્ટ: https://aicharged.io/api/v1/mcp

Anthropic Messages API

Anthropic Messages API MCP કનેક્ટર (beta): mcp_servers સાથે mcp_toolset — Claude સીધા API માંથી aicharged.io ને કૉલ કરે છે.

  • API કી (Bearer)

હોસ્ટેડ MCP ટૂલ — API તમારા વતી aicharged.io ને કૉલ કરે છે

ભલામણ કરેલ
import os
import anthropic

client = anthropic.Anthropic()
response = client.beta.messages.create(
    model="claude-opus-5-5",
    max_tokens=16000,
    betas=["mcp-client-2025-11-20"],
    messages=[{"role": "user", "content": "List my recent aicharged.io runs"}],
    mcp_servers=[{
        "type": "url",
        "url": "https://aicharged.io/api/v1/mcp",
        "name": "aicharged",
        "authorization_token": os.environ["AICHARGED_API_KEY"],
    }],
    tools=[{"type": "mcp_toolset", "mcp_server_name": "aicharged"}],
)
print(response.content)

Beta સુવિધા: mcp-client-2025-11-20 beta ફ્લેગ રાખો. API authorization_token ને aicharged.io ને Bearer ટોકન તરીકે મોકલે છે.

એ જ રિક્વેસ્ટ curl સાથે

curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 16000,
    "messages": [{"role": "user", "content": "List my recent aicharged.io runs"}],
    "mcp_servers": [{"type": "url", "url": "https://aicharged.io/api/v1/mcp", "name": "aicharged", "authorization_token": "<API_KEY>"}],
    "tools": [{"type": "mcp_toolset", "mcp_server_name": "aicharged"}]
  }'

અથવા CLI ને તેને સેટ અપ કરવા દો

aicharged setup આ મશીન પર AI ક્લાયન્ટ્સ શોધે છે, બ્રાઉઝર દ્વારા તમને સાઇન ઇન કરે છે અને તેમનું કન્ફિગરેશન લખે છે.

એક લાઇનમાં કનેક્ટ કરો

CLI ઇન્સ્ટોલ કરો · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
CLI ઇન્સ્ટોલ કરો · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
MCP એન્ડપોઇન્ટ
https://aicharged.io/api/v1/mcp

સ્ટ્રીમેબલ HTTP. હેડર Authorization: Bearer <API_KEY> મોકલો, અથવા જ્યાં તમારો ક્લાયન્ટ સપોર્ટ કરતો હોય ત્યાં OAuth સાથે સાઇન ઇન કરો.

અથવા તમારા એજન્ટને કહો
https://aicharged.io/agent.md વાંચો અને aicharged.io સાથે મને સેટ અપ કરો

આ પ્રોમ્પ્ટ સાથે આમાં ખોલો Claude (નવા ટેબમાં ખુલે છે) ChatGPT (નવા ટેબમાં ખુલે છે) Perplexity (નવા ટેબમાં ખુલે છે)