1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9679],{6903:(e,t,n)=>{n.d(t,{A:()=>i});n(6540);var r=n(1176),o=n(4848);function i(){return(0,o.jsx)(r.A.Google,{style:{display:"block",textAlign:"center"},layout:"in-article",format:"fluid",client:"ca-pub-7015533392136941",slot:"7527831842"})}},9460:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>l,metadata:()=>r,toc:()=>c});const r=JSON.parse('{"id":"services/claude","title":"Claude","description":"\u5728\u5212\u8bcd\u7ffb\u8bd1\u5167\u4f7f\u7528 Claude \u7684\u65b9\u5f0f\u6709\u4e24\u79cd\u3002","source":"@site/docs/services/claude.mdx","sourceDirName":"services","slug":"/services/claude","permalink":"/docs/services/claude","draft":false,"unlisted":false,"editUrl":"/docs/edit-note?docs%2Fservices%2Fclaude.mdx","tags":[],"version":"current","lastUpdatedAt":1762083386000,"frontMatter":{},"sidebar":"servicesSidebar","previous":{"title":"OpenAI\uff08ChatGPT\uff09","permalink":"/docs/services/chatgpt"},"next":{"title":"Gemini","permalink":"/docs/services/gemini"}}');var o=n(4848),i=n(8453);n(6903);const l={},s="Claude",a={},c=[{value:"\u7b2c\u4e00\u79cd\uff1a\u8d2d\u4e70\u3010\u5957\u9910\u5305\u3011\u76f4\u63a5\u4f7f\u7528",id:"\u7b2c\u4e00\u79cd\u8d2d\u4e70\u5957\u9910\u5305\u76f4\u63a5\u4f7f\u7528",level:2},{value:"\u7b2c\u4e8c\u79cd\uff1a\u81ea\u884c\u7533\u8bf7 Claude \u670d\u52a1",id:"\u7b2c\u4e8c\u79cd\u81ea\u884c\u7533\u8bf7-claude-\u670d\u52a1",level:2},{value:"OpenAI \u63a5\u53e3\u517c\u5bb9\u6027",id:"openai-compatibility",level:2},{value:"\u6a21\u578b\u4e0e\u4ef7\u683c",id:"prices",level:2},{value:"\u7533\u8bf7\u6b65\u9aa4",id:"steps",level:2},{value:"\u53ef\u9009\uff1a\u5207\u6362\u6a21\u578b",id:"switch-model",level:3},{value:"\u9519\u8bef\u6392\u67e5",id:"troubleshooting",level:2}];function d(e){const t={a:"a",admonition:"admonition",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"claude",children:"Claude"})}),"\n",(0,o.jsx)(t.p,{children:"\u5728\u5212\u8bcd\u7ffb\u8bd1\u5167\u4f7f\u7528 Claude \u7684\u65b9\u5f0f\u6709\u4e24\u79cd\u3002"}),"\n",(0,o.jsx)(t.h2,{id:"\u7b2c\u4e00\u79cd\u8d2d\u4e70\u5957\u9910\u5305\u76f4\u63a5\u4f7f\u7528",children:"\u7b2c\u4e00\u79cd\uff1a\u8d2d\u4e70\u3010\u5957\u9910\u5305\u3011\u76f4\u63a5\u4f7f\u7528"}),"\n",(0,o.jsxs)(t.p,{children:["\u53ea\u9700\u8d2d\u4e70\u5212\u8bcd\u7ffb\u8bd1\u7684\u3010\u5957\u9910\u5305\u3011\uff0c\u5373\u53ef\u76f4\u63a5\u4f7f\u7528\u5305\u62ec Claude \u5728\u5167\u7684\u6240\u6709\u670d\u52a1\u3002\u5957\u9910\u5305\u5167 Claude \u7684\u5355\u4ef7\u4e3a\u5b98\u65b9\u7684 ",(0,o.jsx)(t.strong,{children:"6 \u6298"}),"\u3002"]}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.a,{href:"/docs/pricing/package",children:"\u70b9\u51fb\u67e5\u770b\u5957\u9910\u5305\u7684\u8be6\u7ec6\u8bf4\u660e"})}),"\n",(0,o.jsx)(t.h2,{id:"\u7b2c\u4e8c\u79cd\u81ea\u884c\u7533\u8bf7-claude-\u670d\u52a1",children:"\u7b2c\u4e8c\u79cd\uff1a\u81ea\u884c\u7533\u8bf7 Claude \u670d\u52a1"}),"\n",(0,o.jsxs)(t.admonition,{title:"\u4e0d\u5efa\u8bae\u81ea\u884c\u7533\u8bf7 Claude \u670d\u52a1",type:"caution",children:[(0,o.jsx)(t.p,{children:"\u81ea\u884c\u7533\u8bf7 Claude \u670d\u52a1\u6709\u4ee5\u4e0b\u7f3a\u70b9\uff1a"}),(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"\u4f60\u9700\u8981\u81ea\u884c\u914d\u7f6e\u80fd\u8bbf\u95ee Claude \u7684\u7f51\u7edc\u73af\u5883"}),"\n",(0,o.jsx)(t.li,{children:"\u4f60\u9700\u8981\u6709\u516c\u53f8\u8d44\u8d28\uff0c\u4e5f\u5c31\u662f\u5728\u6d77\u5916\u5f00\u4e00\u5bb6\u516c\u53f8"}),"\n",(0,o.jsx)(t.li,{children:"\u5355\u4ef7\u6bd4\u5957\u9910\u5305\u8d35"}),"\n",(0,o.jsx)(t.li,{children:"\u6709\u5c01\u53f7\u98ce\u9669"}),"\n"]})]}),"\n",(0,o.jsxs)(t.admonition,{type:"tip",children:[(0,o.jsx)(t.p,{children:"\u6587\u6863\u5185\u5bb9\u53ef\u80fd\u4f1a\u8fc7\u65f6\uff0c\u8bf7\u4ee5 Claude \u5b98\u7f51\u8bf4\u660e\u4e3a\u51c6\u3002"}),(0,o.jsxs)(t.p,{children:["\u76f8\u5173\u94fe\u63a5\uff1a",(0,o.jsx)(t.a,{href:"https://console.anthropic.com/",children:"Claude \u5f00\u653e\u5e73\u53f0"})," ",(0,o.jsx)(t.a,{href:"https://www.anthropic.com/pricing#anthropic-api",children:"Claude API \u5b9a\u4ef7\u6587\u6863"})]})]}),"\n",(0,o.jsx)(t.h2,{id:"openai-compatibility",children:"OpenAI \u63a5\u53e3\u517c\u5bb9\u6027"}),"\n",(0,o.jsxs)(t.p,{children:["\u6b64\u670d\u52a1",(0,o.jsx)(t.strong,{children:"\u4e0d"}
1),"\u517c\u5bb9 OpenAI \u63a5\u53e3\u3002\u67e5\u770b\u8bf4\u660e\uff1a",(0,o.jsx)(t.a,{href:"/docs/faqs/openai-compatibilty",children:"\u4ec0\u4e48\u662f\u201c\u517c\u5bb9 OpenAI \u63a5\u53e3\u7684\u670d\u52a1\u201d\uff1f\u6709\u4ec0\u4e48\u7528\uff1f"})]}),"\n",(0,o.jsx)(t.h2,{id:"prices",children:"\u6a21\u578b\u4e0e\u4ef7\u683c"}),"\n",(0,o.jsxs)(t.p,{children:["\u5404\u4e2a\u6a21\u578b\u7684\u4ecb\u7ecd\u53ef\u4ee5\u67e5\u770b ",(0,o.jsx)(t.a,{href:"https://docs.anthropic.com/en/docs/about-claude/models",children:"Claude \u6a21\u578b\u4ecb\u7ecd"}),"\u91cc\u7684\u8bf4\u660e\u3002\u63a8\u8350\u4f7f\u7528\u4ee5\u4e0b\u6a21\u578b\u6765\u7ffb\u8bd1\uff1a"]}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"claude-3-5-haiku-latest"}),"\uff1a\u6bcf\u767e\u4e07 token \u7684\u8f93\u5165\u4ef7\u683c\u4e3a 1 \u7f8e\u5143\uff0c\u8f93\u51fa\u4ef7\u683c\u4e3a 5 \u7f8e\u5143"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"claude-3-5-sonnet-latest"}),"\uff1a\u6bcf\u767e\u4e07 token \u7684\u8f93\u5165\u4ef7\u683c\u4e3a 3 \u7f8e\u5143\uff0c\u8f93\u51fa\u4ef7\u683c\u4e3a 15 \u7f8e\u5143"]}),"\n",(0,o.jsxs)(t.li,{children:[(0,o.jsx)(t.code,{children:"claude-3-opus-20240229"}),"\uff1a\u6bcf\u767e\u4e07 token \u7684\u8f93\u5165\u4ef7\u683c\u4e3a 15 \u7f8e\u5143\uff0c\u8f93\u51fa\u4ef7\u683c\u4e3a 75 \u7f8e\u5143"]}),"\n"]}),"\n",(0,o.jsxs)(t.blockquote,{children:["\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:"Claude \u6ca1\u6709\u514d\u8d39\u989d\u5ea6\u3002"}),"\n",(0,o.jsx)(t.li,{children:"\u201c\u8f93\u5165\u201d\u5373\u4f60\u53d1\u9001\u7ed9\u6a21\u578b\u7684\u5f85\u7ffb\u8bd1\u6587\u672c\uff0c\u201c\u8f93\u51fa\u201d\u5373\u6a21\u578b\u63d0\u4f9b\u7684\u7ffb\u8bd1\u7ed3\u679c\uff0c\u7ffb\u8bd1\u4e00\u6b21\u7684\u6700\u7ec8\u82b1\u8d39 = \u8f93\u5165 token \u6570\u91cf * \u8f93\u5165\u4ef7\u683c + \u8f93\u51fa token \u6570\u91cf * \u8f93\u51fa\u4ef7\u683c\u3002"}),"\n",(0,o.jsx)(t.li,{children:"1 \u4e2a token \u5927\u7ea6\u5bf9\u5e94 1 \u4e2a\u6c49\u5b57\u6216 3 \u81f3 4 \u4e2a\u5b57\u6bcd\u3002"}),"\n"]}),"\n"]}),"\n",(0,o.jsxs)(t.p,{children:["\u4f60\u53ef\u4ee5\u7533\u8bf7\u4e00\u5f20\u56fd\u5916\u7684\u865a\u62df\u4fe1\u7528\u5361\u4ed8\u8d39\u4f7f\u7528 Claude\u3002",(0,o.jsx)(t.a,{href:"/docs/guides/card",children:"\u70b9\u51fb\u67e5\u770b\u56fd\u5916\u865a\u62df\u4fe1\u7528\u5361\u7684\u7533\u8bf7 / \u5145\u503c / \u6d88\u8d39\u6559\u7a0b"})]}),"\n",(0,o.jsx)(t.admonition,{title:"\u5168\u6587\u7ffb\u8bd1\u529f\u80fd\u53ef\u80fd\u4f1a\u6d88\u8017\u5927\u91cf\u5b57\u7b26\uff01",type:"caution",children:(0,o.jsxs)(t.p,{children:["\u5728\u7f51\u9875\u5168\u6587\u7ffb\u8bd1\u529f\u80fd\u4e2d\u4f7f\u7528 Claude \u65f6\uff0c\u8bf7\u7559\u610f\u5b57\u7b26\u6570\u6d88\u8017\u60c5\u51b5\uff01",(0,o.jsx)(t.a,{href:"/docs/guides/page",children:"\u70b9\u51fb\u67e5\u770b\u8bf4\u660e"})]})}),"\n",(0,o.jsx)(t.h2,{id:"steps",children:"\u7533\u8bf7\u6b65\u9aa4"}),"\n",(0,o.jsx)(t.p,{children:"\u7533\u8bf7 Claude API \u9700\u8981\u6709\u516c\u53f8\u8d44\u8d28\uff0c\u4e0d\u592a\u9002\u5408\u4e2a\u4eba\u7533\u8bf7\uff0c\u6682\u4e0d\u63d0\u4f9b\u7533\u8bf7\u6b65\u9aa4\u3002"}),"\n",(0,o.jsx)(t.h3,{id:"switch-model",children:"\u53ef\u9009\uff1a\u5207\u6362\u6a21\u578b"}),"\n",(0,o.jsxs)(t.p,{children:["\u5212\u8bcd\u7ffb\u8bd1\u9ed8\u8ba4\u4f7f\u7528 ",(0,o.jsx)(t.code,{children:"claude-3-haiku-20240307"})," \u6a21\u578b\uff0c\u4f60\u53ef\u4ee5\u524d\u5f80\u5212\u8bcd\u7ffb\u8bd1\u7684\u3010\u8bbe\u7f6e\u9875\u3011-\u3010\u7b2c\u4e09\u65b9\u670d\u52a1\u3011-\u3010Claude\u3011\u91cc\u5207\u6362\u6a21\u578b\u6216\u8c03\u6574\u7ffb\u8bd1\u547d\u4ee4\u3002"]}),"\n",(0,o.jsx)(t.h2,{id:"troubleshooting",children:"\u9519\u8bef\u6392\u67e5"}),"\n",(0,o.jsx)(t.p,{children:"\u4f60\u53ef\u4ee5\u70b9\u51fb\u4ee5\u4e0b\u94fe\u63a5\u67e5\u770b\u62a5\u9519\u7684\u5177\u4f53\u539f\u56e0\u3002"}),"\n",(0,o.jsx)(t.p,{children:(0,o.jsx)(t.a,{href:"https://docs.anthropic.com/en/api/errors",children:"https://docs.anthropic.com/en/api/errors"})})]})}function u(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},2115:(e,t,n)=>
1{Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6540),l=(r=i)&&r.__esModule?r:{default:r};var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"adsbybaidu"},"TODO")}}]),t}(l.default.Component);t.default=s},8265:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}
1(),o=l(n(6540)),i=l(n(5556));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){window&&(window.adsbygoogle=window.adsbygoogle||[]).push({})}},{key:"render",value:function(){return o.default.createElement("ins",{className:this.props.className+" adsbygoogle",style:this.props.style,"data-ad-client":this.props.client,"data-ad-slot":this.props.slot,"data-ad-layout":this.props.layout,"data-ad-layout-key":this.props.layoutKey,"data-ad-format":this.props.format,"data-full-width-responsive":this.props.responsive})}}]),t}(o.default.Component);t.default=s,s.propTypes={className:i.default.string,style:i.default.object,client:i.default.string.isRequired,slot:i.default.string.isRequired,layout:i.default.string,layoutKey:i.default.string,format:i.default.string,responsive:i.default.string},s.defaultProps={className:"",style:{display:"block"},format:"auto",layout:"",layoutKey:"",responsive:"false"}},1176:(e,t,n)=>{var r=i(n(8265)),o=i(n(2115));function i(e){return e&&e.__esModule?e:{default:e}}var l={Google:r.default,Baidu:o.default};t.A=l},8453:(e,t,n)=>{n.d(t,{R:()=>l,x:()=>s});var r=n(6540);const o={},i=r.createContext(o);function l(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:l(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]);
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.