[{"data":1,"prerenderedAt":333},["ShallowReactive",2],{"docs-zh-/zh/docs/service/ai/apikey":3},{"id":4,"title":5,"body":6,"description":325,"extension":326,"meta":327,"navigation":328,"path":329,"seo":330,"stem":331,"__hash__":332},"docs_zh/zh/docs/service/ai/apikey.md","AI 翻译服务（API Key）",{"type":7,"value":8,"toc":318},"minimark",[9,13,17,20,23,28,213,216,219,224,233,240,244,247,250,253,259,263,270,273,279,285,288,291,302,308,310,313,315],[10,11,5],"h1",{"id":12},"ai-翻译服务api-key",[14,15,16],"p",{},"Doco Translate 支持您通过自己的 API Key 接入大语言模型厂商提供的 AI 服务进行翻译",[14,18,19],{},"通常情况下，AI 大语言模型服务翻译质量和效果会比机器翻译更好，且支持自定义翻译提示词来调整翻译风格",[14,21,22],{},"Doco Translate 支持市面上主流的 AI 大语言模型提供商",[24,25,27],"h2",{"id":26},"ai-大模型服务商","AI 大模型服务商",[29,30,31,50],"table",{},[32,33,34],"thead",{},[35,36,37,41,44,47],"tr",{},[38,39,40],"th",{},"服务",[38,42,43],{},"提供商",[38,45,46],{},"API Key",[38,48,49],{},"免费模型",[51,52,53,74,90,106,121,136,152,167,183,198],"tbody",{},[35,54,55,65,68,71],{},[56,57,58],"td",{},[59,60,64],"a",{"href":61,"rel":62},"https://aistudio.google.com/",[63],"nofollow","Gemini",[56,66,67],{},"Google",[56,69,70],{},"需要",[56,72,73],{},"有",[35,75,76,83,85,87],{},[56,77,78],{},[59,79,82],{"href":80,"rel":81},"https://platform.openai.com/",[63],"OpenAI",[56,84,82],{},[56,86,70],{},[56,88,89],{},"无",[35,91,92,99,102,104],{},[56,93,94],{},[59,95,98],{"href":96,"rel":97},"https://console.anthropic.com/",[63],"Claude",[56,100,101],{},"Anthropic",[56,103,70],{},[56,105,89],{},[35,107,108,115,117,119],{},[56,109,110],{},[59,111,114],{"href":112,"rel":113},"https://platform.deepseek.com/",[63],"DeepSeek",[56,116,114],{},[56,118,70],{},[56,120,89],{},[35,122,123,130,132,134],{},[56,124,125],{},[59,126,129],{"href":127,"rel":128},"https://open.bigmodel.cn/",[63],"Zhipu AI",[56,131,129],{},[56,133,70],{},[56,135,73],{},[35,137,138,145,148,150],{},[56,139,140],{},[59,141,144],{"href":142,"rel":143},"https://platform.moonshot.cn/",[63],"Kimi",[56,146,147],{},"Moonshot AI",[56,149,70],{},[56,151,89],{},[35,153,154,161,163,165],{},[56,155,156],{},[59,157,160],{"href":158,"rel":159},"https://platform.minimaxi.com/",[63],"MiniMax",[56,162,160],{},[56,164,70],{},[56,166,89],{},[35,168,169,176,179,181],{},[56,170,171],{},[59,172,175],{"href":173,"rel":174},"https://platform.xiaomimimo.com/",[63],"Xiaomi MiMo",[56,177,178],{},"Miaomi",[56,180,70],{},[56,182,89],{},[35,184,185,192,194,196],{},[56,186,187],{},[59,188,191],{"href":189,"rel":190},"https://cloud.siliconflow.cn/",[63],"SiliconFlow",[56,193,191],{},[56,195,70],{},[56,197,73],{},[35,199,200,207,209,211],{},[56,201,202],{},[59,203,206],{"href":204,"rel":205},"https://openrouter.ai/",[63],"OpenRouter",[56,208,206],{},[56,210,70],{},[56,212,73],{},[24,214,215],{"id":215},"接入流程",[14,217,218],{},"以 Deepseek 为例，介绍如何接入 API Key 进行翻译",[220,221,223],"h4",{"id":222},"申请-api-key","申请 API Key",[14,225,226,227,232],{},"打开 Doco Translate 设置-服务-高级服务-DeepSeek，点击申请密钥，或直接手动访问 ",[59,228,231],{"href":229,"rel":230},"https://platform.deepseek.com/api_keys",[63],"DeepSeek Platform 官网"," 进入 Api Keys 页面，创建 API Key 并复制",[14,234,235],{},[236,237],"img",{"alt":238,"src":239},"创建 DeepSeek API Key","/images/docs/deepseek-create-api-key.webp",[220,241,243],{"id":242},"验证-api-key","验证 API Key",[14,245,246],{},"将生成的 API Key 在 Doco Translate 设置-服务-高级服务-DeepSeek 中填写或粘贴",[14,248,249],{},"选择想要使用的模型，如：deepseek-v4-flash",[14,251,252],{},"点击右上角验证服务，验证服务和模型可用性",[14,254,255],{},[236,256],{"alt":257,"src":258},"配置 DeepSeek API Key","/images/docs/deepseek-api-settings.webp",[220,260,262],{"id":261},"使用-ai-服务翻译","使用 AI 服务翻译",[14,264,265,266,269],{},"进入翻译器，打开翻译选项面板，选择翻译服务 ",[267,268,114],"strong",{},"，点击翻译",[14,271,272],{},"AI 大模型服务翻译过程会呈现流式输出效果",[14,274,275],{},[236,276],{"alt":277,"src":278},"使用 DeepSeek 翻译","/images/docs/deepseek-translation.webp",[14,280,281,282,284],{},"若准备将 AI 翻译服务作为全局翻译引擎，可在 Doco Translate 首页或 设置-翻译 中将翻译服务设置为 ",[267,283,114],{}," 或其他 AI 翻译服务",[24,286,287],{"id":287},"添加模型",[14,289,290],{},"第三方 AI 大语言模型服务商可能会更新升级模型版本，或发布新模型，Doco Translate 中内置的模型列表可能会过时",[14,292,293,294,297,298,301],{},"Doco Translate 提供 ",[267,295,296],{},"拉取模型列表"," 和 ",[267,299,300],{},"手动添加模型"," 功能保证模型列表的更新和可用性",[14,303,304],{},[236,305],{"alt":306,"src":307},"添加 AI 模型","/images/docs/ai-model-list.webp",[220,309,296],{"id":296},[14,311,312],{},"填写 API Key 之后，点击拉取模型列表按钮，会自动从远端拉取当前模型服务商可用的所有模型列表，可选择您想要使用的模型，添加到 Doco Translate 中用于翻译",[220,314,300],{"id":300},[14,316,317],{},"除了拉取模型列表，也支持可以手动添加模型，点击添加模型按钮，在添加面板的输入框中输入正确的模型标识，添加到模型列表中，手动添加之后建议验证一下模型服务的可用性",{"title":319,"searchDepth":320,"depth":320,"links":321},"",2,[322,323,324],{"id":26,"depth":320,"text":27},{"id":215,"depth":320,"text":215},{"id":287,"depth":320,"text":287},"通过自己的 API Key 接入主流 AI 大模型服务进行翻译。","md",{},true,"/zh/docs/service/ai/apikey",{"title":5,"description":325},"zh/docs/service/ai/apikey","xs5p7hf0ZZnQE1eQM9XlxFLetczSQAqib9pmAesM0Co",1787207636137]