PageSourceSearch

https://bookai.top/assets/js/a05061cc.1869a562.js

js bookai.top collected 2026-09-24 10:41:35 UTC 7,944 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbookai=self.webpackChunkbookai||[]).push([[5190],{28453:(e,n,s)=>{s.d(n,{RP:()=>o,xA:()=>l});var i=s(96540);const r=i.createContext({});function o(e){const n=i.useContext(r);return i.useMemo((()=>"function"==typeof e?e(n):{...n,...e}),[n,e])}const t={};function l({components:e,children:n,disableParentContext:s}){let l;return l=s?"function"==typeof e?e({}):e||t:o(e),i.createElement(r.Provider,{value:l},n)}},58112:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>h,frontMatter:()=>t,metadata:()=>i,toc:()=>a});const i=JSON.parse('{"id":"\u7ffb\u8bd1/Settings_01_Custom_API_Keys","title":"\u81ea\u5b9a\u4e49API\u5bc6\u94a5","description":"---","source":"@site/cursor/\u7ffb\u8bd1/05_Settings_01_Custom_API_Keys.md","sourceDirName":"\u7ffb\u8bd1","slug":"/\u7ffb\u8bd1/Settings_01_Custom_API_Keys","permalink":"/cursor/\u7ffb\u8bd1/Settings_01_Custom_API_Keys","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":5,"frontMatter":{},"sidebar":"tutorialSidebar","previous":{"title":"\u9690\u79c1\u4e0e\u5b89\u5168","permalink":"/cursor/\u7ffb\u8bd1/Account_09_Privacy_Security"},"next":{"title":"\u65e9\u671f\u4f53\u9a8c\u8ba1\u5212","permalink":"/cursor/\u7ffb\u8bd1/Settings_02_Early_Access_Program"}}');var r=s(74848),o=s(28453);const t={},l="\u81ea\u5b9a\u4e49API\u5bc6\u94a5",c={},a=[{value:"OpenAI API\u5bc6\u94a5",id:"openai-api\u5bc6\u94a5",level:2},{value:"Anthropic API\u5bc6\u94a5",id:"anthropic-api\u5bc6\u94a5",level:2},{value:"Google API\u5bc6\u94a5",id:"google-api\u5bc6\u94a5",level:2},{value:"Azure\u96c6\u6210",id:"azure\u96c6\u6210",level:2},{value:"AWS Bedrock",id:"aws-bedrock",level:2},{value:"FAQ",id:"faq",level:2},{value:"\u6211\u7684API\u5bc6\u94a5\u4f1a\u88ab\u5b58\u50a8\u6216\u79bb\u5f00\u8bbe\u5907\u5417\uff1f",id:"\u6211\u7684api\u5bc6\u94a5\u4f1a\u88ab\u5b58\u50a8\u6216\u79bb\u5f00\u8bbe\u5907\u5417",level:3},{value:"\u652f\u6301\u54ea\u4e9b\u81ea\u5b9a\u4e49LLM\u63d0\u4f9b\u5546\uff1f",id:"\u652f\u6301\u54ea\u4e9b\u81ea\u5b9a\u4e49llm\u63d0\u4f9b\u5546",level:3}];function d(e){const n={a:"a",blockquote:"blockquote",br:"br",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",hr:"hr",img:"img",li:"li",ol:"ol",p:"p",strong:"strong",...(0,o.RP)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"\u81ea\u5b9a\u4e49api\u5bc6\u94a5",children:"\u81ea\u5b9a\u4e49API\u5bc6\u94a5"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h1,{id:"\u81ea\u5b9a\u4e49api\u5bc6\u94a5-1",children:"\u81ea\u5b9a\u4e49API\u5bc6\u94a5"}),"\n",(0,r.jsx)(n.p,{children:"\u5728Cursor\u4e2d\u914d\u7f6eOpenAI\u3001Anthropic\u3001Google\u548cAzure\u7684\u81ea\u5b9a\u4e49API\u5bc6\u94a5\uff0c\u4ee5\u4f7f\u7528\u60a8\u81ea\u5df1\u7684LLM\u63d0\u4f9b\u5546\u8d26\u6237\u3002"}),"\n",(0,r.jsx)(n.p,{children:"Cursor\u5141\u8bb8\u60a8\u8f93\u5165\u4e0d\u540cLLM\u63d0\u4f9b\u5546\u7684API\u5bc6\u94a5\uff0c\u4ece\u800c\u6309\u9700\u53d1\u9001\u4efb\u610f\u6570\u91cf\u7684AI\u6d88\u606f\uff08\u8d39\u7528\u81ea\u7406\uff09\u3002\u5f53\u4f7f\u7528\u81ea\u5b9a\u4e49API\u5bc6\u94a5\u65f6\uff0c\u6211\u4eec\u5c06\u901a\u8fc7\u8be5\u5bc6\u94a5\u8c03\u7528LLM\u63d0\u4f9b\u5546\u7684\u670d\u52a1\u3002"}),"\n",(0,r.jsx)(n.p,{children:"\u8981\u4f7f\u7528\u81ea\u5b9a\u4e49API\u5bc6\u94a5\uff1a"}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\u8fdb\u5165",(0,r.jsx)(n.code,{children:"Cursor\u8bbe\u7f6e"}),">",(0,r.jsx)(n.code,{children:"\u6a21\u578b"})]}),"\n",(0,r.jsx)(n.li,{children:"\u8f93\u5165\u60a8\u7684API\u5bc6\u94a5"}),"\n",(0,r.jsx)(n.li,{children:'\u70b9\u51fb"\u9a8c\u8bc1"\u6309\u94ae\n\u5bc6\u94a5\u9a8c\u8bc1\u901a\u8fc7\u540e\u5c06\u7acb\u5373\u751f\u6548\u3002'}),"\n"]}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"\u6ce8\u610f"}),"\uff1a\u90e8\u5206\u529f\u80fd\uff08\u5982Tab\u8865\u5168\uff09\u9700\u8981\u4e13\u7528\u6a21\u578b\uff0c\u65e0\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49API\u5bc6\u94a5\u3002\u81ea\u5b9a\u4e49\u5bc6\u94a5\u4ec5\u9002\u7528\u4e8eOpenAI\u3001Anthropic\u548cGoogle\u7b49\u63d0\u4f9b\u5546\u7684\u6807\u51c6\u6a21\u578b\u529f\u80fd\u3002"]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"openai-api\u5bc6\u94a5",children:"OpenAI API\u5bc6\u94a5"}),"\n",(0,r.jsxs)(n.p,{children:["\u53ef\u901a\u8fc7",(0,r.jsx)(n.a,{href:"https://platform.openai.com/account/api-keys",children:"OpenAI\u5e73\u53f0"}),"\u83b7\u53d6\u5bc6\u94a5\u3002"]}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"\u9650\u5236"}),"\uff1a",(0,r.jsx)(n.br,{}),"\n","OpenAI\u63a8\u7406\u6a21\u578b\uff08o1, o1-mini, o3-mini\uff09\u9700\u8981\u7279\u6b8a\u914d\u7f6e\uff0c\u5f53\u524d\u6682\u4e0d\u652f\u6301\u81ea\u5b9a\u4e49API\u5bc6\u94a5\u3002"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/misc/openai-api.png",alt:"Image 3"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"anthropic-api\u5bc6\u94a5",children:"Anthropic API\u5bc6\u94a5"}),"\n",(0,r.jsx)(n.p,{children:"\u53ef\u8bbe\u7f6eAnthropic API\u5bc6\u94a5\uff0c\u7528\u4e8e\u8c03\u7528\u57fa\u4e8eClaude\u7684\u6a21\u578b\uff08\u8d39\u7528\u81ea\u7406\uff09\u3002"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/misc/anthropic-api.png",alt:"Image 4"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"google-api\u5bc6\u94a5",children:"Google API\u5bc6\u94a5"}),"\n",(0,r.jsxs)(n.p,{children:["\u8bbe\u7f6eGoogle API\u5bc6\u94a5\u540e\uff0c\u53ef\u8c03\u7528\u5982",(0,r.jsx)(n.code,{children:"gemini-1.5-flash-500k"}),"\u7b49Google\u6a21\u578b\uff08\u8d39\u7528\u81ea\u7406\uff09\u3002"]}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/misc/google-api.png",alt:"Image 5"})}),"\n",(0,r.jsx)(n.hr,{}
1),"\n",(0,r.jsx)(n.h2,{id:"azure\u96c6\u6210",children:"Azure\u96c6\u6210"}),"\n",(0,r.jsx)(n.p,{children:"\u901a\u8fc7Azure API\u5bc6\u94a5\u8c03\u7528Azure OpenAI\u6a21\u578b\uff08\u8d39\u7528\u81ea\u7406\uff09\u3002"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.img,{src:"https://mintlify.s3.us-west-1.amazonaws.com/cursor/images/misc/azure-api.png",alt:"Image 6"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"aws-bedrock",children:"AWS Bedrock"}),"\n",(0,r.jsx)(n.p,{children:"\u652f\u6301\u901a\u8fc7\u8bbf\u95ee\u5bc6\u94a5\u548c\u5bc6\u94a5\u5bf9\u8fde\u63a5AWS Bedrock\uff0c\u4f01\u4e1a\u7528\u6237\u53ef\u4f7f\u7528IAM\u89d2\u8272\u8ba4\u8bc1\u3002"}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h2,{id:"faq",children:"FAQ"}),"\n",(0,r.jsx)(n.h3,{id:"\u6211\u7684api\u5bc6\u94a5\u4f1a\u88ab\u5b58\u50a8\u6216\u79bb\u5f00\u8bbe\u5907\u5417",children:"\u6211\u7684API\u5bc6\u94a5\u4f1a\u88ab\u5b58\u50a8\u6216\u79bb\u5f00\u8bbe\u5907\u5417\uff1f"}),"\n",(0,r.jsx)(n.p,{children:"API\u5bc6\u94a5\u4e0d\u4f1a\u88ab\u5b58\u50a8\uff0c\u4f46\u6bcf\u6b21\u8bf7\u6c42\u65f6\u4f1a\u88ab\u53d1\u9001\u81f3\u6211\u4eec\u7684\u670d\u52a1\u5668\u3002\u6240\u6709\u8bf7\u6c42\u90fd\u901a\u8fc7\u540e\u7aef\u8def\u7531\u8fdb\u884c\u6700\u7ec8\u63d0\u793a\u6784\u5efa\u3002"}),"\n",(0,r.jsx)(n.h3,{id:"\u652f\u6301\u54ea\u4e9b\u81ea\u5b9a\u4e49llm\u63d0\u4f9b\u5546",children:"\u652f\u6301\u54ea\u4e9b\u81ea\u5b9a\u4e49LLM\u63d0\u4f9b\u5546\uff1f"}),"\n",(0,r.jsx)(n.p,{children:"\u4ec5\u652f\u6301\u517c\u5bb9OpenAI API\u683c\u5f0f\u7684\u63d0\u4f9b\u5546\uff08\u5982OpenRouter\uff09\u3002\u6682\u4e0d\u652f\u6301\u672c\u5730LLM\u8bbe\u7f6e\u6216\u5176\u4ed6API\u683c\u5f0f\u3002\u82e5\u60a8\u4f7f\u7528\u975e\u5b98\u65b9\u652f\u6301\u63d0\u4f9b\u5546\u7684API\u65f6\u9047\u5230\u95ee\u9898\uff0c\u6211\u4eec\u65e0\u6cd5\u63d0\u4f9b\u6280\u672f\u652f\u6301\u3002"})]})}function h(e={}){const{wrapper:n}={...(0,o.RP)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.