RelaySwitch

io.relayswitch由 relayswitch.io 发布官方发布者v1.0.0更新于 Nov 8, 2026

Every major chat, image and video model on one prepaid key. OpenAI, Anthropic and Gemini formats.

已验证Streamable HTTP可网页运行网页搜索与抓取媒体与设计AI 与机器学习

概览

AI 生成的概览

RelaySwitch 是一个远程网关,让助手用一个预付费 API 密钥调用多种对话、嵌入、重排、转写和媒体模型。

可以做什么
  • 查看与计价模型:浏览对话、嵌入、重排、转写模型及媒体模型和其参数,并在发送前估算或报价请求费用。
  • 发送与对比对话:用任意模型 id 对话,或把同一提示同时发给 2 到 5 个模型并比较费用与耗时。
  • 网页搜索:执行一次网页搜索,返回标题、链接、摘要和发布日期。
  • 处理文本与音频:对文本做嵌入、按相关性重排文档、把 URL 上的音频或视频转写为文字。
  • 生成与追踪媒体:运行图像、视频、语音、音乐或 3D 模型,轮询仍在运行的生成任务,并列出组织的历史生成记录。
  • 检查模型一致性:查看每日对每个模型是否仍按预期回答的判定结果。
适用场景
适合希望用一个密钥和一个端点访问多家厂商模型时使用;需要跨模型对比回答、在发送前预估费用,或希望在同一个助手里同时做对话与图像、视频、音频生成时也适用。
运行要求
远程 streamable HTTP 端点,无需本地安装包。需要 RelaySwitch API 密钥,以 bearer 形式放在 Authorization 请求头中,从服务商控制台获取。部分目录与 proof 工具无需密钥;chat、compare、search、embed、rerank、transcribe、media_quote、generate、generation 和 generations 需要密钥。还需预付费账户余额和网络访问。
安装前请注意
多数工具会按 token、每次搜索、音频秒数或媒体单位从预付费密钥扣费,使用即产生真实支出,建议先用 estimate 和 media_quote 估价。密钥是放在 Authorization 请求头中的机密。提示词、文档、音频和媒体输入会发送给第三方 API。生成内容按组织保存并可列出,文件仅保留 30 天。该服务宣称提供 abliterated 与 uncensored 模型,输出可能未经内容过滤。

安装

在 SourceWeft 中

  1. 打开 控制台中的 RelaySwitch,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.relayswitch%2Fgateway/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "relayswitch": {
      "type": "http",
      "url": "https://api.relayswitch.io/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

工具

15

list_models

List every text model and price

Every chat, embedding, rerank and transcription model on RelaySwitch with its id, type, the routes and tools that take it, our price (per million tokens, or per audio minute for transcription), the developer's list price where recorded, the wire formats it answers (openai, anthropic, gemini) and its specs. Image, video, speech, music and 3D models are in list_media_models. No key needed. Live from GET /v1/catalog.

输入参数typesearchdeveloper

list_media_models

List image, video, speech and 3D models and prices

Every media model on RelaySwitch with its id, kind, endpoint, unit and price per image, second, generation or minute at each setting, next to the developer's price where recorded. No key needed. Live from GET /v1/catalog/media.

输入参数kindsearch

media_model

One media model's settings and prices

Everything generate needs to call one image, video, speech, music or 3D model: each setting under params with its type, the values it takes, its range and its default, and the price per unit at each setting under pricing. No key needed. Live from GET /v1/catalog/media.

输入参数model必填

estimate

Estimate what a request costs

The cost of a request on every chat model (or the ids given), cheapest first, with the developer's list cost and the saving. Give input_tokens, or a prompt / messages to count from. With the caller's key, prices are the key's own (price locks included). Live from POST /v1/estimate.

输入参数modelspromptmessagesinput_tokensoutput_tokens

media_quote

Price a generation before running it

What generate would charge for exactly these settings, at the key's own rates: the units billed, the charge, and the developer's own price for the same request where one is on record. The settings are checked as a real request's would be, so a wrong value fails here, not at the model. Nothing runs and nothing is charged. Needs the key. Live from POST /v1/generations/quote.

输入参数input必填model必填

proof

Daily real-model check

Whether each model is still the model it says it is: every day one fixed prompt goes to every model and the verdict per model is stable, changed, failed or unchecked, with the time of the last check and how long the answer has been unchanged. No key needed. Live from GET /v1/proof.

输入参数model

chat

Send a chat request

Sends messages to any chat model id through POST /v1/chat/completions and returns the answer, the token usage and what the request cost. system adds instructions, image_urls lets a model that sees images look at them (a file generate made works), web_search lets the model search while it answers. Billed to the key in the MCP request's Authorization header (Bearer sk-relay-live-...); without one it fails.

输入参数model必填systemmessages必填image_urlsmax_tokensweb_searchtemperature

compare

Ask several models the same thing

Sends the same conversation (or one prompt) to 2 to 5 chat model ids at once through POST /v1/chat/completions and returns every answer side by side with its token usage, cost and time, plus the total. For a second opinion from another model, or to pick the model that answers a kind of question best. Completions are capped at max_tokens each (default 1024). Each model is billed to the key in the MCP request's Authorization header; a model that fails is reported and not charged.

输入参数models必填promptsystemmessagesimage_urlsmax_tokenstemperature

embed

Turn text into vectors

Embeds one text or up to 64 through POST /v1/embeddings with an embedding model id from list_models (type embedding) and returns one vector per text, in order, with the token usage and the charge. Billed to the key in the MCP request's Authorization header.

输入参数input必填model必填

rerank

Rank documents by relevance

Orders up to 100 documents by relevance to a query through POST /v1/rerank with a rerank model id from list_models (type rerank): each result's index into documents, its score and its text, best first. Billed per input token to the key in the MCP request's Authorization header.

输入参数model必填query必填top_ndocuments必填

transcribe

Transcribe audio or video

Turns the speech in an audio or video file at an https URL (25 MB at most; a file generate made works) into text through POST /v1/audio/transcriptions, or into English with translate. Use a transcription model id from list_models (type transcription). Billed per second of audio to the key in the MCP request's Authorization header; a request that fails is not charged.

输入参数model必填promptlanguageaudio_url必填translate

generate

Generate an image, video, speech, music or 3D file

Runs any media model id from list_media_models with its settings (see media_model) through POST /v1/generations, waits up to wait_seconds for the files, and returns the generation: a link per file (kept 30 days), a finished image inline, and the charge. A video that is still running when the wait ends is returned as it stands; call generation with its id to keep waiting. Charged to the key in the MCP request's Authorization header when the model accepts the task; a failed generation is refunded in full. To go from an image to a video or an edit, pass the image's URL in image_urls.

输入参数input必填model必填previewwait_seconds

generation

A generation's status and files

One generation by id: its status, progress, files and charge, waiting up to wait_seconds for it to finish first. Use it after generate answers with a video still running. Needs the key the generation was made with. Live from GET /v1/generations/{id}.

输入参数id必填previewwait_seconds

generations

List the generations made on this key's organization

The organization's generations, newest first, each with its status, model, files and charge: the asset library behind generate. Filter by kind, model or status; page with before. Files are kept 30 days. Needs the key. Live from GET /v1/generations.

输入参数kindlimitmodelbeforestatus

版本历史

1
  1. v1.0.0最新Nov 8, 2026

评分

已满足适用检查项的 83%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。