[{"data":1,"prerenderedAt":110},["ShallowReactive",2],{"doc-key-zh-get-openrouter-key":3},{"id":4,"title":5,"body":6,"description":98,"extension":99,"meta":100,"navigation":105,"path":106,"seo":107,"stem":108,"__hash__":109},"pages\u002Fzh\u002Fdoc\u002Fget-key\u002Fget-openrouter-key.md","获取 OpenRouter API Key",{"type":7,"value":8,"toc":92},"minimark",[9,13,22,26,63,66,74,77],[10,11,5],"h1",{"id":12},"获取-openrouter-api-key",[14,15,16,17,21],"p",{},"不想给每家模型各注册一遍？",[18,19,20],"strong",{},"OpenRouter"," 用一套 OpenAI 兼容接口聚合很多模型，WriteX 里配一把 Key 就能切换。",[23,24,25],"h2",{"id":25},"步骤",[27,28,29,41,50,53],"ol",{},[30,31,32,33,40],"li",{},"打开 ",[34,35,39],"a",{"href":36,"rel":37},"https:\u002F\u002Fopenrouter.ai\u002F",[38],"nofollow","openrouter.ai"," 注册并登录。",[30,42,43,44,49],{},"进入 ",[34,45,48],{"href":46,"rel":47},"https:\u002F\u002Fopenrouter.ai\u002Fkeys",[38],"Keys"," 创建 API Key，立刻复制保存。",[30,51,52],{},"按官网规则充值或绑定支付方式（没余额通常调不通）。",[30,54,55,56,59,60,62],{},"WriteX → ",[18,57,58],{},"设置 → 模型 \u002F Provider"," → ",[18,61,20],{},"，粘贴 Key，选一个模型后测试保存。",[14,64,65],{},"模型名要用 OpenRouter 列表里的完整 id（往往带厂商前缀），不要照搬某家官网的短名。",[14,67,68,69,73],{},"若只想接某一家的原生接口，也可以看 ",[34,70,72],{"href":71},"\u002Fdoc\u002Fget-key\u002Fget-other-key","自定义 \u002F 兼容接口","。",[23,75,76],{"id":76},"相关阅读",[78,79,80,86],"ul",{},[30,81,82],{},[34,83,85],{"href":84},"\u002Fguides\u002Fconfigure-byok","在 WriteX 中配置 BYOK",[30,87,88],{},[34,89,91],{"href":90},"\u002Fdoc\u002Fget-key","全部 API Key 教程",{"title":93,"searchDepth":94,"depth":94,"links":95},"",2,[96,97],{"id":25,"depth":94,"text":25},{"id":76,"depth":94,"text":76},"用一把 OpenRouter Key 路由多家模型，减少在 WriteX 里来回换凭证。","md",{"seoTitle":101,"summary":102,"provider":103,"order":104},"获取 OpenRouter API Key｜WriteX 教程","一个 Key 聚合多家模型，适合想少配几套账号的用户。","openrouter",8,true,"\u002Fzh\u002Fdoc\u002Fget-key\u002Fget-openrouter-key",{"title":5,"description":98},"zh\u002Fdoc\u002Fget-key\u002Fget-openrouter-key","gb6BC8EpaWxZoptl5qYfmAfv2eIJbdbywQ9xUwLH9hI",1785483020219]