跳到正文
TakoAPI
返回技能列表

aisa-llm-router-skill

由 bowen-dotcom 提供

AI & LLMs
670下载量由 clawskills.sh 提供
0浏览量
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, and others through a single API key. The endpoint is OpenAI-compatible, so existing OpenAI SDK code works by changing only the base URL and key. Billing and cost tracking are consolidated across all providers.

Replaces per-provider API keys and SDKs with one OpenAI-compatible endpoint, eliminating credential sprawl and fragmented billing across AI providers.

何时使用

  • Switching between GPT-4 and Claude without changing application code
  • Routing simple queries to cheap models and complex ones to GPT-4
  • Comparing outputs from multiple models on the same prompt
  • Analyzing images with vision models through a single shared endpoint
  • Setting up automatic fallback when a primary model fails or is unavailable

示例工作流

输入

User asks: Compare how GPT-4.1, Claude-3-Sonnet, and Gemini-2.0-Flash each explain quantum computing

智能体
  1. 1

    Sends the same prompt to all three models via the unified /v1/chat/completions endpoint

  2. 2

    Receives each response with per-model latency and token cost in the usage field

  3. 3

    Formats responses side by side with cost and latency metadata

输出

Three model responses with per-model token cost and latency shown together for comparison

前置要求

  • aisa.one account (signup required at aisa.one)
  • AISA_API_KEY from the aisa.one dashboard
  • Pay-as-you-go credits added to the aisa.one account

安装

clawhub install bowen-dotcom/aisa-llm-router-skill

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接