[{"data":1,"prerenderedAt":535},["ShallowReactive",2],{"docs-en-/en/docs/services/ai-services":3},{"id":4,"title":5,"body":6,"description":527,"extension":528,"meta":529,"navigation":530,"path":531,"seo":532,"stem":533,"__hash__":534},"docs/en/docs/services/ai-services.md","AI Services",{"type":7,"value":8,"toc":508},"minimark",[9,13,17,22,215,227,231,236,239,243,265,269,272,291,300,304,311,315,319,322,342,346,349,371,375,378,392,400,404,407,420,423,435,442,466,470,473,484,487,490],[10,11,5],"h1",{"id":12},"ai-services",[14,15,16],"p",{},"Doco Translate supports a wide range of AI and large language model (LLM) services for high-quality, context-aware translations. These services require an API key and typically produce better results than basic translation engines.",[18,19,21],"h2",{"id":20},"supported-ai-services","Supported AI Services",[23,24,25,44],"table",{},[26,27,28],"thead",{},[29,30,31,35,38,41],"tr",{},[32,33,34],"th",{},"Service",[32,36,37],{},"Provider",[32,39,40],{},"API Key",[32,42,43],{},"Strengths",[45,46,47,68,84,101,117,133,150,166,183,199],"tbody",{},[29,48,49,59,62,65],{},[50,51,52],"td",{},[53,54,58],"a",{"href":55,"rel":56},"https://ai.google.dev/gemini-api/docs/api-key",[57],"nofollow","Gemini",[50,60,61],{},"Google",[50,63,64],{},"Required",[50,66,67],{},"Multimodal capabilities, fast processing, generous free tier",[29,69,70,77,79,81],{},[50,71,72],{},[53,73,76],{"href":74,"rel":75},"https://platform.openai.com/api-keys",[57],"OpenAI",[50,78,76],{},[50,80,64],{},[50,82,83],{},"High-quality translations, excellent context understanding",[29,85,86,93,96,98],{},[50,87,88],{},[53,89,92],{"href":90,"rel":91},"https://console.anthropic.com/settings/keys",[57],"Claude",[50,94,95],{},"Anthropic",[50,97,64],{},[50,99,100],{},"Excellent for nuanced, context-aware translations",[29,102,103,110,112,114],{},[50,104,105],{},[53,106,109],{"href":107,"rel":108},"https://platform.deepseek.com/api_keys",[57],"DeepSeek",[50,111,109],{},[50,113,64],{},[50,115,116],{},"Cost-effective, good performance for technical content",[29,118,119,126,128,130],{},[50,120,121],{},[53,122,125],{"href":123,"rel":124},"https://docs.bigmodel.cn/cn/guide/start/quick-start",[57],"Zhipu AI",[50,127,125],{},[50,129,64],{},[50,131,132],{},"Strong Chinese language support, free models available",[29,134,135,142,145,147],{},[50,136,137],{},[53,138,141],{"href":139,"rel":140},"https://platform.moonshot.cn/console/api-keys",[57],"Kimi",[50,143,144],{},"Moonshot AI",[50,146,64],{},[50,148,149],{},"Long context support, good for lengthy documents",[29,151,152,159,161,163],{},[50,153,154],{},[53,155,158],{"href":156,"rel":157},"https://platform.minimaxi.com/user-center/basic-information/interface-key",[57],"MiniMax",[50,160,158],{},[50,162,64],{},[50,164,165],{},"High-speed model variants available",[29,167,168,175,178,180],{},[50,169,170],{},[53,171,174],{"href":172,"rel":173},"https://platform.xiaomimimo.com/console/api-keys",[57],"Xiaomi MiMo",[50,176,177],{},"Xiaomi",[50,179,64],{},[50,181,182],{},"Good general-purpose performance",[29,184,185,192,194,196],{},[50,186,187],{},[53,188,191],{"href":189,"rel":190},"https://cloud.siliconflow.cn/account/ak",[57],"SiliconFlow",[50,193,191],{},[50,195,64],{},[50,197,198],{},"Multi-model platform with free tiers (Qwen, DeepSeek, GLM)",[29,200,201,208,210,212],{},[50,202,203],{},[53,204,207],{"href":205,"rel":206},"https://openrouter.ai/settings/keys",[57],"OpenRouter",[50,209,207],{},[50,211,64],{},[50,213,214],{},"Unified interface to access models from multiple providers",[14,216,217,218,222,223,226],{},"Click the service name to visit the provider's website and get an API key. You can also find these links in ",[219,220,221],"strong",{},"Settings → Services"," within the app via the ",[219,224,225],{},"Apply for API Key"," button.",[18,228,230],{"id":229},"configuring-an-ai-service","Configuring an AI Service",[232,233,235],"h3",{"id":234},"step-1-get-an-api-key","Step 1: Get an API Key",[14,237,238],{},"Visit the provider's website using the links above to create an account and generate an API key.",[232,240,242],{"id":241},"step-2-enter-the-api-key-in-doco-translate","Step 2: Enter the API Key in Doco Translate",[244,245,246,253,256,262],"ol",{},[247,248,249,250,252],"li",{},"Go to ",[219,251,221],{},".",[247,254,255],{},"Select the AI service from the list on the left.",[247,257,258,259,261],{},"Paste your API key in the ",[219,260,40],{}," field.",[247,263,264],{},"The key icon next to the service name changes from empty to filled, indicating the key is configured.",[232,266,268],{"id":267},"step-3-select-a-model","Step 3: Select a Model",[14,270,271],{},"Each AI service offers multiple models with different capabilities:",[244,273,274,281,284],{},[247,275,276,277,280],{},"In the service settings, find the ",[219,278,279],{},"Model"," dropdown.",[247,282,283],{},"Select the model you want to use.",[247,285,286,287,290],{},"Models marked as ",[219,288,289],{},"(Free)"," can be used without charges from the provider.",[292,293,294],"blockquote",{},[14,295,296,299],{},[219,297,298],{},"Tip:"," Smaller/faster models (e.g., flash, mini, haiku) are cheaper and faster but may produce slightly lower quality. Larger models (e.g., pro, opus) produce the best results but cost more.",[232,301,303],{"id":302},"step-4-verify","Step 4: Verify",[14,305,306,307,310],{},"Click ",[219,308,309],{},"Verify service"," to test the connection with a sample translation.",[18,312,314],{"id":313},"managing-models","Managing Models",[232,316,318],{"id":317},"fetching-the-model-list","Fetching the Model List",[14,320,321],{},"Some services support fetching the latest available models directly from the provider:",[244,323,324,330,333,336],{},[247,325,306,326,329],{},[219,327,328],{},"Fetch model list"," in the service settings.",[247,331,332],{},"The app connects to the provider and retrieves available models.",[247,334,335],{},"New models not already in your list are presented for selection.",[247,337,338,339,252],{},"Select the models you want to add and click ",[219,340,341],{},"Add",[232,343,345],{"id":344},"adding-custom-models","Adding Custom Models",[14,347,348],{},"You can manually add models that aren't in the preset list:",[244,350,351,356,364,367],{},[247,352,306,353,329],{},[219,354,355],{},"Add Model",[247,357,358,359,363],{},"Enter the exact model identifier (e.g., ",[360,361,362],"code",{},"gpt-4o-2024-08-06",").",[247,365,366],{},"Optionally mark it as a free model.",[247,368,306,369,252],{},[219,370,341],{},[232,372,374],{"id":373},"deleting-custom-models","Deleting Custom Models",[14,376,377],{},"To remove a manually added model:",[244,379,380,383,389],{},[247,381,382],{},"Select the model in the model dropdown.",[247,384,306,385,388],{},[219,386,387],{},"Delete"," next to the model selector.",[247,390,391],{},"Confirm the deletion.",[292,393,394],{},[14,395,396,399],{},[219,397,398],{},"Note:"," You can only delete custom (manually added) models. Preset models that ship with Doco Translate cannot be deleted.",[18,401,403],{"id":402},"custom-api-host","Custom API Host",[14,405,406],{},"For advanced users, you can customize the API host for any service:",[244,408,409,414,417],{},[247,410,276,411,261],{},[219,412,413],{},"API Host",[247,415,416],{},"Enter the custom endpoint URL.",[247,418,419],{},"The preview below shows the full request URL (host + path).",[14,421,422],{},"This is useful for:",[424,425,426,429,432],"ul",{},[247,427,428],{},"Using API proxies or mirrors",[247,430,431],{},"Enterprise deployments with custom endpoints",[247,433,434],{},"Self-hosted API-compatible services",[14,436,437,438,441],{},"Click the ",[219,439,440],{},"gear icon"," next to the API Host field to access advanced settings:",[424,443,444,454,460],{},[247,445,446,449,450,453],{},[219,447,448],{},"API Path"," — The request path (e.g., ",[360,451,452],{},"/v1/chat/completions",")",[247,455,456,459],{},[219,457,458],{},"Request Body"," — Additional JSON fields merged into each request",[247,461,462,465],{},[219,463,464],{},"Request Headers"," — Additional HTTP headers",[18,467,469],{"id":468},"restore-defaults","Restore Defaults",[14,471,472],{},"If you've customized a service's host, path, or other settings and want to revert:",[244,474,475,481],{},[247,476,306,477,480],{},[219,478,479],{},"Restore Default"," at the bottom of the service settings.",[247,482,483],{},"The host, path, request body, and headers are reset to the built-in defaults.",[14,485,486],{},"Your API key and model selection are preserved.",[488,489],"hr",{},[14,491,492,495,496,500,501,495,504],{},[219,493,494],{},"Previous:"," ",[53,497,499],{"href":498},"./built-in-services","Built-in Services"," · ",[219,502,503],{},"Next:",[53,505,507],{"href":506},"./local-llm-services","Local LLM Services",{"title":509,"searchDepth":510,"depth":510,"links":511},"",2,[512,513,520,525,526],{"id":20,"depth":510,"text":21},{"id":229,"depth":510,"text":230,"children":514},[515,517,518,519],{"id":234,"depth":516,"text":235},3,{"id":241,"depth":516,"text":242},{"id":267,"depth":516,"text":268},{"id":302,"depth":516,"text":303},{"id":313,"depth":510,"text":314,"children":521},[522,523,524],{"id":317,"depth":516,"text":318},{"id":344,"depth":516,"text":345},{"id":373,"depth":516,"text":374},{"id":402,"depth":510,"text":403},{"id":468,"depth":510,"text":469},"Doco Translate supports a wide range of AI and large language model (LLM) services for high-quality, context-aware translations. These services require an API k","md",{},true,"/en/docs/services/ai-services",{"title":5,"description":527},"en/docs/services/ai-services","Fkjgq9n6CCOdfuDmtbjC3SIDzhRuboHSX7DBSOeuy1Y",1780845388797]