تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

asia-llm-router-skills

بواسطة renning22

AI & LLMs
807التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Unified LLM Gateway - One API for 70+ AI models.

الوصف

ما الذي تفعله هذه المهارة

A unified API gateway that routes requests to 70+ AI models from providers including OpenAI, Anthropic, Google, Alibaba, Deepseek, and xAI. Uses a single API key and OpenAI-compatible endpoints, replacing per-provider credentials and SDKs. Supports chat completions, streaming, vision, and function calling.

One API key and one base URL replaces separate credentials, SDKs, and billing accounts for every AI provider.

متى تستخدمها

  • Switching between GPT-4 and Claude without changing SDK code
  • Routing cheap queries to fast models and complex ones to GPT-4
  • Analyzing images using GPT-4o through a unified endpoint
  • Running A/B tests across multiple models on the same prompt
  • Setting up automatic fallback when a primary model fails

مثال على سير العمل

الإدخال

User asks: Compare GPT-4.1, Claude-3-Sonnet, and Gemini-2.0-Flash on the same coding question

الوكيل
  1. 1

    Set AISA_API_KEY environment variable

  2. 2

    Call compare endpoint with models list and the coding prompt

  3. 3

    Send identical messages to all three models through api.aisa.one/v1/chat/completions

  4. 4

    Collect responses with latency and cost metadata from each

  5. 5

    Return side-by-side results with usage.cost per model

الإخراج

Three model responses with latency, token counts, and per-request cost for each

المتطلبات

  • AISA_API_KEY environment variable
  • aisa.one account with credits added

التثبيت

clawhub install renning22/asia-llm-router-skills

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط