import{S as Ct,i as Wt,s as Yt,e as n,k as u,w as B,t as c,M as Bt,c as a,d as t,m as h,a as o,x as L,h as f,b as i,F as r,g as l,y as O,L as Lt,q as G,o as J,B as U,v as Ot}from"../chunks/vendor-7c454903.js";import{I as j}from"../chunks/IconCopyLink-5457534b.js";function Gt(lt){let p,pe,m,_,V,N,Fe,X,Me,me,d,k,Z,R,Ce,ee,We,de,z,Ye,ve,v,E,te,q,Be,re,Le,ye,A,Oe,H,Ge,Je,ge,y,P,ne,T,Ue,ae,je,we,D,ze,$e,g,I,oe,F,De,ie,Ke,be,M,Qe,C,Ve,_e,w,S,se,W,Xe,le,Ze,ke,K,et,Ee,$,x,ue,Y,tt,he,rt,Ae,b,nt,ce,at,ot,Q,it,Pe;return N=new j({}),R=new j({}),q=new j({}),T=new j({}),F=new j({}),W=new j({}),Y=new j({}),{c(){p=n("meta"),pe=u(),m=n("h1"),_=n("a"),V=n("span"),B(N.$$.fragment),Fe=u(),X=n("span"),Me=c("More information about the API"),me=u(),d=n("h2"),k=n("a"),Z=n("span"),B(R.$$.fragment),Ce=u(),ee=n("span"),We=c("Rate limits"),de=u(),z=n("p"),Ye=c(`The current API does not enforce strict rate limitations. Instead we
simply balance the loads evenly between all our available ressources,
and favoring steady flows of requests. If your account suddenly sends
10k requests then you\u2019re likely to receive 503 errors saying models are
loading up. In order to prevent that, you should instead try to start
running queries smoothly from 0 to 10k over the course of a few minutes.`),ve=u(),v=n("h2"),E=n("a"),te=n("span"),B(q.$$.fragment),Be=u(),re=n("span"),Le=c("Running private models"),ye=u(),A=n("p"),Oe=c(`You can run private models by default ! If you don\u2019t see them on you
`),H=n("a"),Ge=c("Hugging Face"),Je=c(` page please make sure you are
logged in. Within the API make sure you include your token, otherwise
your model will be declared as non existent.`),ge=u(),y=n("h2"),P=n("a"),ne=n("span"),B(T.$$.fragment),Ue=u(),ae=n("span"),je=c("Running a public model that I do not own"),we=u(),D=n("p"),ze=c(`You can. Please check the model card for any licensing issue that might
arise, but most public models are delivered by researchers and are
usable within commercial products. But please double check.`),$e=u(),g=n("h2"),I=n("a"),oe=n("span"),B(F.$$.fragment),De=u(),ie=n("span"),Ke=c("Finetuning a public model"),be=u(),M=n("p"),Qe=c(`We currently don\u2019t provide finetuning automatically for any model on
your data, but we announced a product in that sense:
`),C=n("a"),Ve=c("https://twitter.com/huggingface/status/1341435640458702849"),_e=u(),w=n("h2"),S=n("a"),se=n("span"),B(W.$$.fragment),Xe=u(),le=n("span"),Ze=c("Tracking metrics"),ke=u(),K=n("p"),et=c(`This is an area of active improvement. Stay tuned as we release more
features to track your API usage!`),Ee=u(),$=n("h2"),x=n("a"),ue=n("span"),B(Y.$$.fragment),tt=u(),he=n("span"),rt=c("Running the inference on my infrastructure"),Ae=u(),b=n("p"),nt=c("Currently we do not provide "),ce=n("strong"),at=c("on premises"),ot=c(` inference out of the box. If
you want to get our Accelerated Inference on your infrastructure you
need to contact us at `),Q=n("a"),it=c("api-enterprise@huggingface.co"),this.h()},l(e){const s=Bt('[data-svelte="svelte-1phssyn"]',document.head);p=a(s,"META",{name:!0,content:!0}),s.forEach(t),pe=h(e),m=a(e,"H1",{class:!0});var Ie=o(m);_=a(Ie,"A",{id:!0,class:!0,href:!0});var ut=o(_);V=a(ut,"SPAN",{});var ht=o(V);L(N.$$.fragment,ht),ht.forEach(t),ut.forEach(t),Fe=h(Ie),X=a(Ie,"SPAN",{});var ct=o(X);Me=f(ct,"More information about the API"),ct.forEach(t),Ie.forEach(t),me=h(e),d=a(e,"H2",{class:!0});var Se=o(d);k=a(Se,"A",{id:!0,class:!0,href:!0});var ft=o(k);Z=a(ft,"SPAN",{});var pt=o(Z);L(R.$$.fragment,pt),pt.forEach(t),ft.forEach(t),Ce=h(Se),ee=a(Se,"SPAN",{});var mt=o(ee);We=f(mt,"Rate limits"),mt.forEach(t),Se.forEach(t),de=h(e),z=a(e,"P",{});var dt=o(z);Ye=f(dt,`The current API does not enforce strict rate limitations. Instead we
simply balance the loads evenly between all our available ressources,
and favoring steady flows of requests. If your account suddenly sends
10k requests then you\u2019re likely to receive 503 errors saying models are
loading up. In order to prevent that, you should instead try to start
running queries smoothly from 0 to 10k over the course of a few minutes.`),dt.forEach(t),ve=h(e),v=a(e,"H2",{class:!0});var xe=o(v);E=a(xe,"A",{id:!0,class:!0,href:!0});var vt=o(E);te=a(vt,"SPAN",{});var yt=o(te);L(q.$$.fragment,yt),yt.forEach(t),vt.forEach(t),Be=h(xe),re=a(xe,"SPAN",{});var gt=o(re);Le=f(gt,"Running private models"),gt.forEach(t),xe.forEach(t),ye=h(e),A=a(e,"P",{});var Ne=o(A);Oe=f(Ne,`You can run private models by default ! If you don\u2019t see them on you
`),H=a(Ne,"A",{href:!0,rel:!0});var wt=o(H);Ge=f(wt,"Hugging Face"),wt.forEach(t),Je=f(Ne,` page please make sure you are
logged in. Within the API make sure you include your token, otherwise
your model will be declared as non existent.`),Ne.forEach(t),ge=h(e),y=a(e,"H2",{class:!0});var Re=o(y);P=a(Re,"A",{id:!0,class:!0,href:!0});var $t=o(P);ne=a($t,"SPAN",{});var bt=o(ne);L(T.$$.fragment,bt),bt.forEach(t),$t.forEach(t),Ue=h(Re),ae=a(Re,"SPAN",{});var _t=o(ae);je=f(_t,"Running a public model that I do not own"),_t.forEach(t),Re.forEach(t),we=h(e),D=a(e,"P",{});var kt=o(D);ze=f(kt,`You can. Please check the model card for any licensing issue that might
arise, but most public models are delivered by researchers and are
usable within commercial products. But please double check.`),kt.forEach(t),$e=h(e),g=a(e,"H2",{class:!0});var qe=o(g);I=a(qe,"A",{id:!0,class:!0,href:!0});var Et=o(I);oe=a(Et,"SPAN",{});var At=o(oe);L(F.$$.fragment,At),At.forEach(t),Et.forEach(t),De=h(qe),ie=a(qe,"SPAN",{});var Pt=o(ie);Ke=f(Pt,"Finetuning a public model"),Pt.forEach(t),qe.forEach(t),be=h(e),M=a(e,"P",{});var st=o(M);Qe=f(st,`We currently don\u2019t provide finetuning automatically for any model on
your data, but we announced a product in that sense:
`),C=a(st,"A",{href:!0,rel:!0});var It=o(C);Ve=f(It,"https://twitter.com/huggingface/status/1341435640458702849"),It.forEach(t),st.forEach(t),_e=h(e),w=a(e,"H2",{class:!0});var He=o(w);S=a(He,"A",{id:!0,class:!0,href:!0});var St=o(S);se=a(St,"SPAN",{});var xt=o(se);L(W.$$.fragment,xt),xt.forEach(t),St.forEach(t),Xe=h(He),le=a(He,"SPAN",{});var Nt=o(le);Ze=f(Nt,"Tracking metrics"),Nt.forEach(t),He.forEach(t),ke=h(e),K=a(e,"P",{});var Rt=o(K);et=f(Rt,`This is an area of active improvement. Stay tuned as we release more
features to track your API usage!`),Rt.forEach(t),Ee=h(e),$=a(e,"H2",{class:!0});var Te=o($);x=a(Te,"A",{id:!0,class:!0,href:!0});var qt=o(x);ue=a(qt,"SPAN",{});var Ht=o(ue);L(Y.$$.fragment,Ht),Ht.forEach(t),qt.forEach(t),tt=h(Te),he=a(Te,"SPAN",{});var Tt=o(he);rt=f(Tt,"Running the inference on my infrastructure"),Tt.forEach(t),Te.forEach(t),Ae=h(e),b=a(e,"P",{});var fe=o(b);nt=f(fe,"Currently we do not provide "),ce=a(fe,"STRONG",{});var Ft=o(ce);at=f(Ft,"on premises"),Ft.forEach(t),ot=f(fe,` inference out of the box. If
you want to get our Accelerated Inference on your infrastructure you
need to contact us at `),Q=a(fe,"A",{href:!0});var Mt=o(Q);it=f(Mt,"api-enterprise@huggingface.co"),Mt.forEach(t),fe.forEach(t),this.h()},h(){i(p,"name","hf:doc:metadata"),i(p,"content",JSON.stringify(Jt)),i(_,"id","more-information-about-the-api"),i(_,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(_,"href","#more-information-about-the-api"),i(m,"class","relative group"),i(k,"id","rate-limits"),i(k,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(k,"href","#rate-limits"),i(d,"class","relative group"),i(E,"id","running-private-models"),i(E,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(E,"href","#running-private-models"),i(v,"class","relative group"),i(H,"href","https://huggingface.co"),i(H,"rel","nofollow"),i(P,"id","running-a-public-model-that-i-do-not-own"),i(P,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(P,"href","#running-a-public-model-that-i-do-not-own"),i(y,"class","relative group"),i(I,"id","finetuning-a-public-model"),i(I,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(I,"href","#finetuning-a-public-model"),i(g,"class","relative group"),i(C,"href","https://twitter.com/huggingface/status/1341435640458702849"),i(C,"rel","nofollow"),i(S,"id","tracking-metrics"),i(S,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(S,"href","#tracking-metrics"),i(w,"class","relative group"),i(x,"id","running-the-inference-on-my-infrastructure"),i(x,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),i(x,"href","#running-the-inference-on-my-infrastructure"),i($,"class","relative group"),i(Q,"href","mailto:api-enterprise@huggingface.co")},m(e,s){r(document.head,p),l(e,pe,s),l(e,m,s),r(m,_),r(_,V),O(N,V,null),r(m,Fe),r(m,X),r(X,Me),l(e,me,s),l(e,d,s),r(d,k),r(k,Z),O(R,Z,null),r(d,Ce),r(d,ee),r(ee,We),l(e,de,s),l(e,z,s),r(z,Ye),l(e,ve,s),l(e,v,s),r(v,E),r(E,te),O(q,te,null),r(v,Be),r(v,re),r(re,Le),l(e,ye,s),l(e,A,s),r(A,Oe),r(A,H),r(H,Ge),r(A,Je),l(e,ge,s),l(e,y,s),r(y,P),r(P,ne),O(T,ne,null),r(y,Ue),r(y,ae),r(ae,je),l(e,we,s),l(e,D,s),r(D,ze),l(e,$e,s),l(e,g,s),r(g,I),r(I,oe),O(F,oe,null),r(g,De),r(g,ie),r(ie,Ke),l(e,be,s),l(e,M,s),r(M,Qe),r(M,C),r(C,Ve),l(e,_e,s),l(e,w,s),r(w,S),r(S,se),O(W,se,null),r(w,Xe),r(w,le),r(le,Ze),l(e,ke,s),l(e,K,s),r(K,et),l(e,Ee,s),l(e,$,s),r($,x),r(x,ue),O(Y,ue,null),r($,tt),r($,he),r(he,rt),l(e,Ae,s),l(e,b,s),r(b,nt),r(b,ce),r(ce,at),r(b,ot),r(b,Q),r(Q,it),Pe=!0},p:Lt,i(e){Pe||(G(N.$$.fragment,e),G(R.$$.fragment,e),G(q.$$.fragment,e),G(T.$$.fragment,e),G(F.$$.fragment,e),G(W.$$.fragment,e),G(Y.$$.fragment,e),Pe=!0)},o(e){J(N.$$.fragment,e),J(R.$$.fragment,e),J(q.$$.fragment,e),J(T.$$.fragment,e),J(F.$$.fragment,e),J(W.$$.fragment,e),J(Y.$$.fragment,e),Pe=!1},d(e){t(p),e&&t(pe),e&&t(m),U(N),e&&t(me),e&&t(d),U(R),e&&t(de),e&&t(z),e&&t(ve),e&&t(v),U(q),e&&t(ye),e&&t(A),e&&t(ge),e&&t(y),U(T),e&&t(we),e&&t(D),e&&t($e),e&&t(g),U(F),e&&t(be),e&&t(M),e&&t(_e),e&&t(w),U(W),e&&t(ke),e&&t(K),e&&t(Ee),e&&t($),U(Y),e&&t(Ae),e&&t(b)}}}const Jt={local:"more-information-about-the-api",sections:[{local:"rate-limits",title:"Rate limits"},{local:"running-private-models",title:"Running private models"},{local:"running-a-public-model-that-i-do-not-own",title:"Running a public model that I do not own"},{local:"finetuning-a-public-model",title:"Finetuning a public model"},{local:"tracking-metrics",title:"Tracking metrics"},{local:"running-the-inference-on-my-infrastructure",title:"Running the inference on my infrastructure"}],title:"More information about the API"};function Ut(lt){return Ot(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Dt extends Ct{constructor(p){super();Wt(this,p,Ut,Gt,Yt,{})}}export{Dt as default,Jt as metadata};
