[{"data":1,"prerenderedAt":353},["ShallowReactive",2],{"docs-en-/en/docs/service/ai/apikey":3},{"id":4,"title":5,"body":6,"description":345,"extension":346,"meta":347,"navigation":348,"path":349,"seo":350,"stem":351,"__hash__":352},"docs/en/docs/service/ai/apikey.md","AI Services (API Key)",{"type":7,"value":8,"toc":338},"minimark",[9,13,17,20,23,28,213,217,220,225,239,246,250,256,263,266,272,276,282,285,291,300,304,307,318,324,328,331,335],[10,11,5],"h1",{"id":12},"ai-services-api-key",[14,15,16],"p",{},"Doco Translate lets you connect AI services from large language model providers using your own API key.",[14,18,19],{},"Large language models usually produce better translations than conventional machine translation and support custom prompts for adjusting translation style.",[14,21,22],{},"Doco Translate supports mainstream AI model providers.",[24,25,27],"h2",{"id":26},"ai-model-providers","AI Model Providers",[29,30,31,50],"table",{},[32,33,34],"thead",{},[35,36,37,41,44,47],"tr",{},[38,39,40],"th",{},"Service",[38,42,43],{},"Provider",[38,45,46],{},"API Key",[38,48,49],{},"Free Models",[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],{},"Required",[56,72,73],{},"Available",[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],{},"None",[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],{},"Xiaomi",[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,216],{"id":215},"setup-workflow","Setup Workflow",[14,218,219],{},"The following example uses DeepSeek to demonstrate how to connect an API-key-based service.",[221,222,224],"h4",{"id":223},"create-an-api-key","Create an API Key",[14,226,227,228,232,233,238],{},"Open ",[229,230,231],"strong",{},"Settings → Services → Advanced Services → DeepSeek"," and click Apply for Key. Alternatively, visit the ",[59,234,237],{"href":235,"rel":236},"https://platform.deepseek.com/api_keys",[63],"DeepSeek Platform",", create an API key, and copy it.",[14,240,241],{},[242,243],"img",{"alt":244,"src":245},"Creating a DeepSeek API key","/images/docs/deepseek-create-api-key.webp",[221,247,249],{"id":248},"verify-the-api-key","Verify the API Key",[14,251,252,253,255],{},"Paste the generated API key into ",[229,254,231],{},".",[14,257,258,259,255],{},"Choose a model, such as ",[260,261,262],"code",{},"deepseek-v4-flash",[14,264,265],{},"Click Verify Service in the upper-right corner to confirm that both the service and model are available.",[14,267,268],{},[242,269],{"alt":270,"src":271},"Configuring a DeepSeek API key","/images/docs/deepseek-api-settings.webp",[221,273,275],{"id":274},"translate-with-the-ai-service","Translate with the AI Service",[14,277,278,279,281],{},"Open the translation settings panel in the translator, choose ",[229,280,114],{},", and click Translate.",[14,283,284],{},"AI model services display translated text as a stream while it is generated.",[14,286,287],{},[242,288],{"alt":289,"src":290},"Translating with DeepSeek","/images/docs/deepseek-translation.webp",[14,292,293,294,296,297,255],{},"To use an AI service as your global translation engine, choose ",[229,295,114],{}," or another AI service on the Doco Translate home screen or under ",[229,298,299],{},"Settings → Translation",[24,301,303],{"id":302},"add-models","Add Models",[14,305,306],{},"AI providers regularly update existing models and release new ones, so the model list built into Doco Translate may eventually become outdated.",[14,308,309,310,313,314,317],{},"Doco Translate provides ",[229,311,312],{},"Fetch Model List"," and ",[229,315,316],{},"Add Model Manually"," to keep your available models current.",[14,319,320],{},[242,321],{"alt":322,"src":323},"Adding AI models","/images/docs/ai-model-list.webp",[221,325,327],{"id":326},"fetch-the-model-list","Fetch the Model List",[14,329,330],{},"After entering an API key, click Fetch Model List. Doco Translate retrieves all models currently available from that provider. Select the models you want to add for translation.",[221,332,334],{"id":333},"add-a-model-manually","Add a Model Manually",[14,336,337],{},"You can also add a model manually. Click Add Model, enter the exact model identifier, and add it to the list. We recommend verifying the model after adding it.",{"title":339,"searchDepth":340,"depth":340,"links":341},"",2,[342,343,344],{"id":26,"depth":340,"text":27},{"id":215,"depth":340,"text":216},{"id":302,"depth":340,"text":303},"Connect mainstream AI model providers with your own API key for higher-quality translation.","md",{},true,"/en/docs/service/ai/apikey",{"title":5,"description":345},"en/docs/service/ai/apikey","MvgA3CLM9MZ8ihQPfrvnYCNwRthHK-mSx0nVl-l9pyk",1787207634214]