登录开始免费试用
Meta Tech Provider

通过 OpenRouter,在 WhatsApp 上使用任意 AI 模型:Gemini、Llama、DeepSeek 等

当自动化使用您自己的密钥调用 OpenRouter 时,Google、Meta、DeepSeek、Mistral、Qwen、xAI 等众多实验室的模型都可以回复 WhatsApp Business 客户。OpenRouter 兼容 OpenAI 的聊天 API,因此一个密钥和一份额度余额即可通过模型 ID 调用数百个模型,例如 google/gemini-3.8-flash,而号码仍保留在您手机上的 WhatsApp Business 应用中。

easyCoexistence 让您选择的模型在您的 WhatsApp Business 号码上回复:Claude 或 GPT 使用各自的密钥,OpenRouter 目录中的任何模型则通过一个 OpenRouter 密钥调用;聊天记录、回复上限,以及您在手机上回复时的暂停机制,均由我们为您处理。

466 models

截至 2026 年 11 月 11 日,OpenRouter 公开模型 API 中的条目来自 Google、Qwen、Mistral、DeepSeek、Meta、xAI 等实验室。

447 of 466

截至 2026 年 11 月 11 日,目录中仅输出文本的条目;其余条目还可返回图像、音频或视频。

openrouter.ai/api/v1

OpenRouter 的基础 URL,可作为即插即用的替换项,与 OpenAI SDK 配合使用。

402

账户或 API 密钥额度不足时 OpenRouter 返回的错误;添加额度即可解决。

:batch

模型的批量定价版本,通过 OpenRouter 的 Batch API 使用,而非实时回复。

3 providers

Anthropic、OpenAI 和 OpenRouter 密钥均可用于“Reply with AI”步骤;OpenRouter 是通往其他实验室的途径。

Gemini、Llama 或 DeepSeek 模型如何进入 WhatsApp 聊天?

通过 OpenRouter。它是“Reply with AI”步骤中,与 Anthropic 和 OpenAI 并列的第三个提供方。将 Provider 设为 OpenRouter 后,该步骤会把您的 Instructions、easyCoexistence 添加的五条规则以及近期聊天记录,连同您的密钥和所选模型 ID,发送至 OpenRouter 的 chat completions 端点。OpenRouter 将请求路由至提供该模型的主机,并返回文本,文本随后像其他回复一样从您的号码发出。

模型周围的一切与使用 Claude 或 GPT 时相同:24 小时窗口、您在手机上回复后该聊天的暂停机制、每个聊天每小时 AI 回复数量上限,以及记录输入和输出 token 的运行日志。

1Customer writesThe message reaches your number
2Reply with AIProvider OpenRouter, your key, a model id
3OpenRouter routes itTo a host serving that model
4Reply on the chatSent from your number, visible in the app

可以使用哪些模型?

OpenRouter 目录中的任何 ID 均可使用,该目录在 2026 年 11 月 11 日共有 466 个条目。ID 的格式为 lab/model。OpenRouter 也列出 Claude 和 GPT 的 ID,因此一个 OpenRouter 密钥也能覆盖这些模型。目录会随着实验室发布和淘汰模型而变化,请访问 openrouter.ai/models 查看当前列表。以下是 2026 年 11 月 11 日列出的各实验室条目数量:

Google (45)google/gemini-3.8-flash, google/gemini-4-argon
Qwen (43)qwen/qwen3.8-flash, qwen/qwen3.8-max-prime
Mistral (21)mistralai/mistral-medium-3-5, mistralai/mistral-small-2603
DeepSeek (17)deepseek/deepseek-v4.1-flash, deepseek/deepseek-v4-pro-0813
Meta (8 Llama ids)meta-llama/llama-4-maverick, meta-llama/llama-3.3-70b-instruct
xAI and Moonshotx-ai/grok-4.7, moonshotai/kimi-k3

如何在编辑器中选择 ID?

Model 字段显示“Pick or type a model id”。保存 OpenRouter 密钥后,其列表为 OpenRouter 的全部公开目录,您输入的任何 ID 都会被接受。该列表未针对聊天用途做过滤,因此以下筛选需要您自行处理:

  • 跳过以 :batch 结尾的 ID。OpenRouter 将其定义为通过 Batch API 使用的批量定价版本,而非实时回复。
  • 跳过图像或视频生成模型。客户回复需要输出为文本的模型。
  • :free 变体有独立的速率限制,繁忙时段可能导致运行失败;依赖之前,请在真实流量下测试。
  • OpenRouter 还支持在任何 ID 后添加路由后缀,例如 :nitro 按吞吐量对主机排序,或 :floor 按价格排序。
  • 以 ~ 开头的 ID 是别名,会指向某一系列的最新模型;固定 ID 可保持回复的一致性。

保存 OpenRouter 密钥时会检查什么?

在“Automations”页面打开“AI keys”,点击 OpenRouter 旁的“Add key”,粘贴密钥,然后点击“Test and save”。easyCoexistence 会向 OpenRouter 的密钥端点询问该密钥属于谁,此过程不消耗 token。被拒绝的密钥不会被保存;通过验证的密钥仅显示为“Added”,并以其最后四位字符结尾。密钥经加密,且仅用于您自动化的 AI 回复。

额度需要留意。余额耗尽时,OpenRouter 会返回 402,easyCoexistence 会将其视为密钥被拒绝:账户中所有使用 OpenRouter 的自动化都会显示“Paused: your OpenRouter key was refused. It starts again by itself once you save a key that works.”,并且您会收到一封邮件。添加额度后,再次点击“Test and save”即可恢复。其他错误(例如 429 速率限制、模型宕机时的 502,或无可用主机时的 503)仅会导致该次运行失败,并向您发送邮件。

使用 OpenRouter,还是直接使用 Anthropic 或 OpenAI 密钥?

两者均可在同一个“Reply with AI”步骤中使用,并且在同一号码的不同自动化之间可以混用:例如,在兜底自动化中使用 Anthropic 密钥调用 Claude,在关键词自动化中通过 OpenRouter 调用 Gemini 模型。二者的区别在于覆盖面与直接性。OpenRouter 在您与模型之间增加了一家公司,但让您可以用一份账单支付多家实验室的费用;直接使用密钥则让请求与账单都只涉及一家提供方:

OpenRouter keyDirect Anthropic or OpenAI key
Models reachedMany labs, including Claude and GPT idsThat provider's models only
Model list in the editorThe full public catalog, unfilteredModels your key can use; OpenAI's list shows chat models only
BillOne OpenRouter credit balanceYour account with that provider
Out of credit402 pauses OpenRouter automationsAnthropic's 402 pauses Claude ones; OpenAI's 429 fails each run
Who handles the requestOpenRouter and the host it routes toThe provider directly

您自行托管的模型能否回复?

可以,通过“Call my webhook”步骤实现,而非作为第四个提供方。将其指向您的服务器或 n8n 工作流;easyCoexistence 会发送消息以及该聊天的最后 10 条消息,并使用 X-EC-Signature 签名。如果您的端点在 20 秒内返回 {"reply": "..."},该文本就会发送给客户。您的代码可以调用运行在自有硬件上的模型、微调模型,或依次调用多个模型。

代价是,您的端点需要自行负责“Reply with AI”步骤为您完成的工作,包括提示词、回复长度和速度。24 小时窗口以及您在手机上回复后的暂停机制,仍适用于您返回的回复。

通过 OpenRouter 使用模型的费用是多少?

共有三笔独立账单。OpenRouter 按其列出的该模型费率,从您的额度中扣除每次回复的 token 费用;“Runs”标签页显示每个 AI 步骤的输入和输出 token 数量,因此,平均 token 数 × 费率 × 预计回复数,即可得出每月估算。Meta 按消息类别和国家/地区,对其收费的消息逐条计入您自己的 WhatsApp Business 账户。easyCoexistence 按每个已连接号码收费,而非按 AI 回复收费,且 token 或消息均不加价。“Test run”同样会消耗真实的 token。

设置方法

  1. Create an OpenRouter key and add creditsIn your OpenRouter account, create an API key and add credits, so replies are not refused for balance.
  2. Save it under AI keysOn the Automations page, open AI keys, click Add key next to OpenRouter, paste the key and click Test and save.
  3. Start from the AI assistant exampleClick New automation, pick Blank, add a Reply with AI step from the step menu, and set Provider to OpenRouter.
  4. Choose the model idPick an id from the list or type it in lab/model form, such as google/gemini-3.8-flash, avoiding :batch and image models.
  5. Test before customers see itSwitch it Off, click Save, then Test and Run test with real questions. Switch it On and save when the replies read right.

常见错误

  • 选择以 :batch 结尾的 ID。这是 OpenRouter 的 Batch API 版模型,用于排队任务,而非客户等待的回复。
  • 输入模型名称时未加实验室前缀,例如 gemini-3.8-flash。OpenRouter 的 ID 格式为 lab/model,因此请求会失败,运行日志会显示错误。
  • 在繁忙的号码上运行 :free 变体。免费变体有各自的速率限制,超出限制的运行会失败,而不会回复。
  • 让 OpenRouter 余额归零。出现 402 后,账户中所有 OpenRouter 自动化都会暂停,直到您添加额度并重新保存密钥。
使用 EasyCoexistence 完成这些操作

我们不对 AI 本身收费,也不对 token 加价。每个号码每月 US$ 9 起,号码越多越便宜,最低降至 US$ 0.75,前 3 天免费试用。

常见问题

我能直接粘贴 Google Gemini API 密钥吗?

不能。“Reply with AI”步骤接受 Anthropic、OpenAI 和 OpenRouter 密钥。Gemini 模型需通过 OpenRouter 调用,使用 google/gemini-3.8-flash 这样的 ID,或通过位于“Call my webhook”步骤之后的您自己的代码调用。

不同的自动化能否使用不同的模型?

可以。Provider 和 model 按每个“Reply with AI”步骤和每个 AI 代理单独设置,因此关键词自动化可以使用小型快速模型,而兜底自动化可以使用更大的模型,二者均使用同一个 OpenRouter 密钥。

使用 OpenRouter 时,谁能看到消息?

Instructions、该步骤读取的聊天记录以及新消息,会发送给 OpenRouter 以及提供该模型的主机,并受其各自条款约束。语音留言的录音会发送到您的 OpenAI 密钥,若只保存了 OpenRouter 密钥,则发送到 OpenRouter,以便转写成文字。easyCoexistence 会将经由它的号码的对话按您选择的 30、90 或 365 天保存(默认 90 天),作为该上下文,运行日志保存 30 天。

实验室更新模型后,回复会改变吗?

使用固定 ID 时不会。以 ~ 开头的 ID 是别名,会跟随某一系列的最新模型,因此回复可能在没有通知的情况下发生变化;如需保持行为稳定,请使用带日期或版本号的 ID。

继续阅读

准备开始了吗?

几分钟即可设置 WhatsApp Coexistence,而不是几个月。应用会继续在手机上运行。

开始免费试用

验证时间