import{r as E,j as e,f as oe}from"./jsx-runtime-CgWCn3gT.js";import{a6 as he,F as pe,a7 as me,a8 as xe,a9 as te,aa as Y,ab as ve,ac as je,ad as Fe,ae as fe}from"./legacy-shell-D4JdMu14.js";import"./providerSeo-RwIhoovz.js";import{u as H}from"./useTranslation-CksCcIr-.js";const Ee={text:"Text",image:"Vision",audio:"Audio",video:"Video",file:"File",pdf:"PDF"};function T(s){const n=[[1e9,"B"],[1e6,"M"],[1e3,"K"]];for(const[p,h]of n)if(s>=p){const i=s/p;return(i<100?String(Number(i.toFixed(1))):String(Math.round(i)))+h}return Math.round(s).toLocaleString("en-US")}function K(s){return s?s>=1e6?`${Number((s/1e6).toFixed(2))}M`:`${Math.round(s/1e3)}K`:""}function z(s){return s===0?"Free":`$${he(s)}`}const o=s=>({t:s}),_=s=>({code:s}),W=s=>({b:s}),ge=s=>typeof s=="string"&&s.startsWith("zh");function Ne({devName:s,rows:n,faqFacts:p},h){const i=ge(h),{starterId:x,starterTools:f,cacheExamples:N,repoForm:B}=p,t=n,v=x&&t.find(r=>r.id===x)||null,j=[];if(v){const r=t.filter(b=>b.id!==v.id&&!b.pricePending).sort((b,A)=>A.priceIn-b.priceIn)[0],g=t.find(b=>b.id!==v.id&&b.facets.indexOf("reasoning")>-1),d=[_(v.id)];if(i)d.push(o(`${v.priceIn===0?" 输入免费":` 输入价 ${z(v.priceIn)}/M`}——这是本页${f?"声明支持工具调用":"公布了 token 价格"}的模型里最便宜的一个${v.ctx?`，上下文 ${K(v.ctx)}`:""}。`)),r&&(d.push(o(" 对答案质量的要求高于成本时，换 "),_(r.id)),g&&g.id!==r.id?d.push(o("；需要长链路推理时用 "),_(g.id),o("。")):d.push(o("。"))),j.push({q:`${s} 的模型该从哪个开始用？`,a:[d]});else{const b=v.priceIn===0?" is free on input":` at ${z(v.priceIn)}/M input`;d.push(o(`${b} — the cheapest entry here that declares ${f?"tool calling":"a token price"}${v.ctx?`, and it carries a ${K(v.ctx)} context`:""}.`)),r&&(d.push(o(" Move up to "),_(r.id),o(" when answer quality matters more than cost")),g&&g.id!==r.id?d.push(o(", or to "),_(g.id),o(" for long-form reasoning.")):d.push(o("."))),j.push({q:`Which ${s} model should I start with?`,a:[d]})}}const $=t.filter(r=>r.facets.indexOf("reasoning")>-1).length;if($>0&&$<t.length&&j.push(i?{q:"哪些模型会先推理再作答？",a:[[o(`本页 ${t.length} 个模型中有 ${$} 个声明了推理阶段——先在内部推演再输出答案，多步骤问题上表现更好，代价是额外的输出 token。用表格上方的`),W("推理"),o("筛选可以只看它们。目录数据没有进一步记录它们之间的差异，所以本页不做家族分类。")]]}:{q:"Which of these models reason before answering?",a:[[o(`${$} of the ${t.length} models here declare a reasoning phase — they work through the problem before producing an answer, which helps on multi-step problems at the cost of extra output tokens. Use the `),W("Reasoning"),o(" filter above the table to see them. The catalog does not record anything further about how they differ, so this page does not sort them into families.")]]}),t.length>1)if(i){const r=[o("因为每一行是一条可直接调用的路由，不是一次模型发布。有的 ID 标明了上游（"),_("azure-"),o("、"),_("alicloud-"),o("、"),_("cc-"),o("）")];B&&r.push(o("，有的是开源权重的仓库形式（"),_(`${B}/…`),o("）")),r.push(o("，还有的只是大小写不同——保留它们是为了让旧集成继续可用。")),j.push({q:"为什么同一个模型会有好几条记录？",a:[r,[o("目录里没有字段标注某一行属于哪一类，本页也不发明它没有的分类。每一行展示的都是该路由自己的价格、上下文和速度——直接比较这些数字，点开模型可以看到实际承接它的上游。")]]})}else{const r=[o("Because each row is a route you can call, not a model release. Some IDs name an upstream ("),_("azure-"),o(", "),_("alicloud-"),o(", "),_("cc-"),o(")")];B&&r.push(o(", some are the open-weight repository form ("),_(`${B}/…`),o(")")),r.push(o(", and some differ only in capitalisation, kept so older integrations keep working.")),j.push({q:"Why are there several entries for the same model?",a:[r,[o("The catalog does not carry a field saying which of those a given row is, so this page does not sort them into buckets it would have to invent. Every row shows that route’s own price, context and speed — compare those directly, and open a model to see the upstreams that serve it.")]]})}if(N.length)if(i){const r=[o("表中的"),W("缓存读"),o("一列是输入 token 命中提示词缓存时的价格——例如 ")];N.forEach((g,d)=>{d>0&&r.push(o("，")),r.push(_(g.id),o(` 的缓存命中按输入价的 ${g.pct}% 计费`))}),r.push(o("。"),W("缓存写"),o("是把提示词写入缓存的附加费，只有少数上游单独计费。任一列显示 “—” 表示目录没有该模型的缓存价格，按全额输入价做预算即可。")),j.push({q:"缓存命中的输入怎么计费？",a:[r]})}else{const r=[o("The "),W("Cache read"),o(" column is the rate for input tokens served from the prompt cache — for example ")];N.forEach((g,d)=>{d>0&&r.push(o(" and ")),r.push(_(g.id),o(` bills cache hits at ${g.pct}% of the input rate`))}),r.push(o(". "),W("Cache write"),o(" is the surcharge for putting a prompt into the cache in the first place, and only a few upstreams bill it separately. A dash in either column means the catalog carries no cache rate for that model, so plan on paying the full input rate.")),j.push({q:"How is cached input billed?",a:[r]})}return j.push(i?{q:`需要单独注册 ${s} 的账号吗？`,a:[[o("不需要。一个 AIHubMix 密钥即可调用本页的所有模型，切换模型只是改一个模型名字符串——账单、限流和日志都集中在一处。")]]}:{q:`Do I need a separate ${s} account?`,a:[[o("No. One AIHubMix key covers every model on this page, and switching between them is a change to the model string — billing, rate limits, and logs stay in one place.")]]}),j}const Ie=s=>s.map(n=>n.map(p=>p.code||p.b||p.t).join("")).join(" "),ne={text:["M4 7V4h16v3","M9 20h6","M12 4v16"],image:["M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Z","M9 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z","m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"],audio:["M2 10v3","M6 6v11","M10 3v18","M14 8v7","M18 5v13","M22 10v3"],video:["m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.777-.416L16 10.5","M14 6H4a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2Z"],pdf:["M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7l-5-5Z","M14 2v4a2 2 0 0 0 2 2h4","M9 13v-1h6v1","M12 12v6","M11 18h2"]},Ce=()=>{const{t:s}=H();return e.jsx("span",{className:"pv-nil",title:s("Not published in the catalog"),children:"—"})};function se({keys:s}){return s.filter(n=>ne[n]).map(n=>e.jsx("svg",{className:"pv-mod__i",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:ne[n].map(p=>e.jsx("path",{d:p},p))},n))}const _e={text:"mod text",image:"mod vision",audio:"mod audio",video:"mod video",file:"mod file",pdf:"mod pdf"};function be({row:s}){const{t:n,i18n:p}=H(),i=String(p.language||"").startsWith("zh")?"、":", ",x=t=>t.map(v=>n(_e[v]||Ee[v])).join(i),{modIn:f,modOut:N}=s;if(!f.length&&!N.length)return null;if(!N.length){const t=n("Takes {{mods}}. Output modality not published.",{mods:x(f)});return e.jsxs("span",{className:"pv-mod",title:t,children:[e.jsx(se,{keys:f}),e.jsx("span",{className:"pv-sr",children:t})]})}const B=n("Takes {{in}}, returns {{out}}.",{in:x(f),out:x(N)});return e.jsxs("span",{className:"pv-mod",title:B,children:[e.jsx(se,{keys:f}),e.jsx("span",{className:"pv-mod__to","aria-hidden":"true",children:"→"}),e.jsx(se,{keys:N}),e.jsx("span",{className:"pv-sr",children:B})]})}function ye({row:s}){const{t:n}=H(),p=K(s.ctx);return s.ctxCanon?e.jsx("span",{className:"pv-canon",title:n("Official spec, verified {{date}}. The gateway route is configured at {{ctx}}.",{date:s.verified,ctx:K(s.ctxCatalog)}),children:p}):p}const ue=({v:s})=>e.jsxs(e.Fragment,{children:[e.jsx("b",{children:z(s)}),e.jsx("span",{className:"ah-unit",children:"/M"})]});function Be(s,n,p){const{onCopy:h,copiedId:i,onModelLink:x,t:f}=p;switch(s){case"id":return e.jsxs("span",{className:"pv-id",children:[e.jsx("a",{className:"ah-link",href:`/model/${n.id}`,onClick:()=>x(n.id,"provider_table"),children:n.id}),e.jsx("button",{className:`pv-copy${i===n.id?" is-done":""}`,type:"button",onClick:()=>h(n.id),"aria-label":i===n.id?f("Copied"):f("Copy model ID {{id}}",{id:n.id}),children:e.jsxs("svg",{viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",children:[e.jsx("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),e.jsx("path",{d:"M10.5 3.5v-1a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h1"})]})})]});case"mod":return e.jsx(be,{row:n});case"ctx":return n.ctx?e.jsx(ye,{row:n}):null;case"max":return n.maxOut?K(n.maxOut):null;case"price":return n.pricePending?e.jsx("b",{children:f("Price TBD")}):e.jsxs(e.Fragment,{children:[e.jsx("b",{children:z(n.priceIn)}),e.jsx("span",{className:"pv-mod__to","aria-hidden":"true",children:" → "}),e.jsx("b",{children:z(n.priceOut)}),e.jsx("span",{className:"ah-unit",children:"/M"})]});case"cr":return n.cacheRead!==null?e.jsx(ue,{v:n.cacheRead}):null;case"cw":return n.cacheWrite!==null?e.jsx(ue,{v:n.cacheWrite}):null;case"tp":return n.tp?e.jsxs(e.Fragment,{children:[Math.round(n.tp),e.jsx("span",{className:"ah-unit",children:" tok/s"})]}):null;case"lat":return n.lat?e.jsxs(e.Fragment,{children:[n.lat.toFixed(2),e.jsx("span",{className:"ah-unit",children:" s"})]}):null;default:return null}}const ie={id:{label:"Model",sort:"name",num:!1},mod:{label:"Modalities",sort:null,num:!1},ctx:{label:"col context",sort:"ctx",num:!0},max:{label:"Max output",sort:"max",num:!0},price:{label:"Input → Output",sort:"in",num:!0},cr:{label:"col cache read",sort:"cr",num:!0},cw:{label:"Cache write",sort:"cw",num:!0},tp:{label:"Throughput",sort:"tp",num:!0},lat:{label:"Latency",sort:"lat",num:!0}},Ae={ctx:s=>s.ctx,max:s=>s.maxOut,in:s=>s.priceIn,out:s=>s.priceOut,cr:s=>s.cacheRead===null?-1:s.cacheRead,cw:s=>s.cacheWrite===null?-1:s.cacheWrite,tp:s=>s.tp,lat:s=>s.lat||999},Q=["#0088fe","#00c49f","#ff8042","#4682b4","#C084FC","#A3A35E","#ff69b4","#ffbb28","#FB7185"],le="var(--border-strong)",de=(s,n)=>s("{{count}} more models",{count:n});function ce({series:s,labels:n,noun:p,devName:h}){const{t:i}=H(),[x,f]=E.useState(null),[N,B]=E.useState(!1);E.useEffect(()=>B(!0),[]);const t=720,v=220,j=52,$=8,r=16,g=40,d=j,b=t-$,A=r,O=v-g,J=n.length||1,q=n.map((u,c)=>s.reduce((m,D)=>m+(D.vals[c]||0),0)),I=Math.max(...q)||1,k=(b-d)/J,L=Math.min(k*.7,26),X=u=>u/I*(O-A),Z=[0,.5,1].map(u=>({f:u,y:O-u*(O-A)})),ee=n.map((u,c)=>({l:u,i:c})).filter(({i:u})=>u%7===0),S=(u,c)=>c.restCount?le:Q[u%Q.length],V=u=>u.restCount?de(i,u.restCount):u.name,P=(u,c,m,D)=>{const M=Math.min(3,m/2,D);return`M${u.toFixed(1)},${(c+D).toFixed(1)} L${u.toFixed(1)},${(c+M).toFixed(1)} Q${u.toFixed(1)},${c.toFixed(1)} ${(u+M).toFixed(1)},${c.toFixed(1)} L${(u+m-M).toFixed(1)},${c.toFixed(1)} Q${(u+m).toFixed(1)},${c.toFixed(1)} ${(u+m).toFixed(1)},${(c+M).toFixed(1)} L${(u+m).toFixed(1)},${(c+D).toFixed(1)} Z`},w=u=>s.map((c,m)=>({name:V(c),v:c.vals[u]||0,color:S(m,c)})).filter(c=>c.v>0).sort((c,m)=>m.v-c.v),R=u=>`${(u/t*100).toFixed(3)}%`,U=x==null?null:(()=>{const u=d+x*k+k/2,c=L/2+10;return u>t/2?{right:R(t-u+c),rows:w(x)}:{left:R(u+c),rows:w(x)}})();return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"pv-chartwrap",children:[e.jsxs("svg",{className:"pv-chart",viewBox:`0 0 ${t} ${v}`,role:"img","aria-label":i("Daily {{noun}} for {{dev}} models over the last {{days}} days, stacked by model, up to {{top}} per day.",{noun:i(p),dev:h,days:n.length,top:T(I)}),children:[Z.map(({f:u,y:c})=>e.jsx("line",{className:"pv-grid",x1:d,y1:c.toFixed(1),x2:b,y2:c.toFixed(1)},u)),n.map((u,c)=>{if(!q[c])return null;const m=d+c*k+(k-L)/2;let D=0;const M=[];s.forEach((C,a)=>{const l=C.vals[c]||0;if(l<=0)return;const F=X(l);M.push({si:a,sr:C,y:O-D-F,ht:F}),D+=F});const G=M.length-1;return e.jsx("g",{children:M.map((C,a)=>a===G?e.jsx("path",{className:"pv-seg",d:P(m,C.y,L,C.ht),fill:S(C.si,C.sr)},C.si):e.jsx("rect",{className:"pv-seg",x:m.toFixed(1),y:C.y.toFixed(1),width:L.toFixed(1),height:C.ht.toFixed(1),fill:S(C.si,C.sr)},C.si))},u)}),Z.map(({f:u,y:c})=>e.jsx("text",{className:"pv-axis",x:d-8,y:(c+4).toFixed(1),textAnchor:"end",children:T(I*u)},`t${u}`)),ee.map(({l:u,i:c})=>e.jsx("text",{className:"pv-axis",x:(d+c*k+k/2).toFixed(1),y:v-16,textAnchor:"middle",children:u.slice(5)},u)),n.map((u,c)=>e.jsxs("g",{className:"pv-hit",onMouseEnter:N?()=>f(c):void 0,onMouseLeave:N?()=>f(m=>m===c?null:m):void 0,children:[e.jsx("rect",{x:(d+c*k).toFixed(1),y:A,width:k.toFixed(1),height:O-A}),!N&&e.jsx("title",{children:`${u} — ${q[c].toLocaleString("en-US")} ${i(p)}${w(c).length?`
${w(c).map(m=>`${m.name}: ${m.v.toLocaleString("en-US")}`).join(`
`)}`:""}`})]},u))]}),U&&e.jsxs("div",{className:"pv-tip",style:{left:U.left,right:U.right},role:"presentation",children:[e.jsxs("div",{className:"pv-tip__head",children:[e.jsx("span",{className:"pv-tip__date",children:n[x]}),e.jsxs("span",{className:"pv-tip__total",children:[e.jsx("span",{className:"pv-tip__totall",children:i("Total")}),T(q[x])]})]}),U.rows.map(u=>e.jsxs("div",{className:"pv-tip__row",children:[e.jsxs("span",{className:"pv-tip__label",children:[e.jsx("span",{className:"pv-tip__dot",style:{background:u.color},"aria-hidden":"true"}),e.jsx("span",{className:"pv-tip__name",children:u.name})]}),e.jsx("span",{className:"pv-tip__val",children:T(u.v)})]},u.name))]})]}),s.length>1&&e.jsx("ul",{className:"pv-legend","aria-label":i("Chart legend"),children:s.map((u,c)=>e.jsxs("li",{children:[e.jsx("span",{className:"pv-legend__dot",style:{background:S(c,u)},"aria-hidden":"true"}),V(u)]},u.restCount?"__rest":u.name))})]})}const ke=s=>s>=.05?`${s.toFixed(1)}%`:"<0.1%";function re({items:s,onModelLink:n}){const{t:p}=H();return e.jsx("ol",{className:"pv-share",children:s.map((h,i)=>e.jsxs("li",{className:`pv-share__row${h.rest?" is-rest":""}`,children:[e.jsxs("span",{className:"pv-share__label",children:[e.jsx("span",{className:"pv-share__dot",style:{background:h.rest?le:Q[i%Q.length]},"aria-hidden":"true"}),h.rest?e.jsx("span",{className:"pv-share__name",children:h.restCount?de(p,h.restCount):h.model}):e.jsx("a",{className:"ah-link pv-share__name",href:`/model/${h.model}`,onClick:n?()=>n(h.model,"provider_share"):void 0,children:h.name||h.model})]}),e.jsx("span",{className:"pv-share__bar",children:e.jsx("span",{style:{width:`${Math.max(h.pct,.6).toFixed(2)}%`}})}),e.jsx("span",{className:"pv-share__pct",children:ke(h.pct)}),e.jsx("span",{className:"pv-share__n",children:T(h.value)})]},h.rest?"__rest":h.model))})}function De({paragraphs:s}){return s.map((n,p)=>e.jsx("p",{children:n.map((h,i)=>h.code?e.jsx("code",{children:h.code},i):h.b?e.jsx("b",{children:h.b},i):e.jsx(oe.Fragment,{children:h.t},i))},p))}const ae=20,Me=5;function we({dev:s,rows:n,columns:p,facets:h,usage:i,hero:x,pairs:f,siblings:N,faqFacts:B}){const{t,i18n:v}=H(),[j,$]=E.useState([]),[r,g]=E.useState(null),[d,b]=E.useState(0),[A,O]=E.useState("tok"),[J,q]=E.useState(""),[I,k]=E.useState(!1),[L,X]=E.useState(!1);E.useEffect(()=>X(!0),[]);const Z=pe(),ee=E.useMemo(()=>Ne({devName:s.name,rows:n,faqFacts:B},v.language),[s.name,n,B,v.language]);E.useEffect(()=>{me(s.name)},[s.name]);const S=E.useMemo(()=>n.filter(a=>j.every(l=>a.facets.indexOf(l)>-1)),[n,j]),V=E.useMemo(()=>{if(!i)return null;const a=new Map(n.map(F=>[F.id,F.name])),l=F=>F.map(y=>y.rest?y:{...y,name:a.get(y.model)||y.model});return{tok:l(i.shareTok),req:l(i.shareReq)}},[i,n]),P=E.useMemo(()=>{if(!r||!d)return S;const a=Ae[r],l=r==="in"||r==="out";return S.slice().sort((F,y)=>r==="name"?F.id.toLowerCase().localeCompare(y.id.toLowerCase())*d:l&&F.pricePending-y.pricePending||(a(F)-a(y))*d)},[S,r,d]);E.useEffect(()=>{if(!j.length&&!r)return;const a=setTimeout(()=>{xe({summary:j.length?`facet:${j.slice().sort().join("|")}`:"",sortBy:r?`${r}_${(r==="name"||r==="lat"?-d:d)>0?"asc":"desc"}`:"",model_developer:s.name,placement:"provider_page"})},600);return()=>clearTimeout(a)},[j,r,d,s.name]);function w(a){let l;r===a?l=d===-1?1:0:l=-1,(a==="name"||a==="lat")&&l&&(l=-l),g(l?a:null),b(l)}function R(a){return!a||a!==r||!d?void 0:(a==="name"||a==="lat"?-d:d)>0?"ascending":"descending"}function U(a){navigator.clipboard&&(fe({target:"model_id",model:a,developer:s.name,placement:"provider_table"}),navigator.clipboard.writeText(a).then(()=>{q(a),setTimeout(()=>q(l=>l===a?"":l),1400)}))}function u(a,l){Fe({developer:s.name,targetModel:a,placement:l})}function c(a){a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),Y({cta:"get_api_key",developer:s.name,placement:"provider_page"}),Z("/token",void 0,"provider_get_api_key"))}const m=a=>({hidden:A!==a}),D=j.length>0||!!(r&&d),M=Math.max(0,P.length-ae),G=!D&&M>Me,C=G&&!I;return e.jsx("div",{className:"pv-page",children:e.jsxs("main",{children:[e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsxs("nav",{className:"ah-crumbs","aria-label":"Breadcrumb",children:[e.jsx("a",{className:"ah-link",href:"/authors",children:t("Model Authors")}),e.jsx("span",{className:"ah-crumbs__sep",children:"/"}),e.jsx("span",{"aria-current":"page",children:s.name})]}),e.jsxs("header",{className:"ah-provider",children:[e.jsx("span",{className:"ah-logo ah-logo--xl","aria-hidden":"true",children:s.icon?e.jsx("img",{src:s.icon,alt:"",loading:"lazy"}):s.initials}),e.jsxs("div",{children:[e.jsx("h1",{children:t("{{dev}} Models",{dev:s.name})}),e.jsxs("div",{className:"ah-provider__meta",children:[e.jsxs("span",{children:[e.jsx("b",{children:n.length})," ",t("models unit",{count:n.length})]}),x.starterPrice===0&&e.jsxs("span",{children:[t("General models")," ",e.jsx("b",{children:t("free")}),e.jsxs("span",{className:"ah-unit",children:[" ",t("to start")]})]}),x.starterPrice>0&&e.jsxs("span",{children:[t("General models from")," ",e.jsx("b",{children:z(x.starterPrice)}),e.jsxs("span",{className:"ah-unit",children:["/M ",t("input unit")]})]}),x.maxCtx>0&&e.jsxs("span",{children:[t("Up to")," ",e.jsx("b",{children:K(x.maxCtx)}),e.jsxs("span",{className:"ah-unit",children:[" ",t("context unit")]})]}),s.website&&e.jsxs("a",{className:"ah-link",href:s.website,rel:"nofollow noopener",target:"_blank",onClick:()=>te({destination:"vendor_site",surface:"provider_page",model_developer:s.name}),children:[t("Official site")," ↗"]})]})]})]})]})}),i&&e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsxs("div",{className:"ah-section__head",children:[e.jsx("h2",{children:t("Usage")}),e.jsxs("div",{className:"pv-usage__controls",children:[e.jsxs("div",{className:"ah-seg","data-at":A==="req"?"1":"0",role:"group","aria-label":t("Measure usage by"),hidden:!L,children:[e.jsx("button",{className:"ah-seg__btn",type:"button",onClick:()=>O("tok"),"aria-pressed":A==="tok",children:t("By tokens")}),e.jsx("button",{className:"ah-seg__btn",type:"button",onClick:()=>O("req"),"aria-pressed":A==="req",children:t("By requests")})]}),e.jsxs("span",{className:"ah-meta",children:[t("Last {{days}} days",{days:i.days})," · ",i.from," ",t("date range to")," ",i.to]})]})]}),e.jsxs("div",{className:"pv-usage",children:[e.jsxs("div",{className:"ah-card",children:[e.jsxs("div",{className:"pv-usage__head",children:[e.jsxs("div",{children:[e.jsx("p",{className:"ah-meta",children:t("Tokens")}),e.jsx("p",{className:"pv-figure",children:T(i.totalTokens)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"ah-meta",children:t("Requests")}),e.jsx("p",{className:"pv-figure",children:T(i.totalCalls)})]}),e.jsxs("div",{children:[e.jsx("p",{className:"ah-meta",children:t("Models in use")}),e.jsxs("p",{className:"pv-figure",children:[i.modelsInUse,e.jsxs("span",{className:"ah-unit",children:[" ",t("of {{total}}",{total:n.length})]})]})]})]}),e.jsxs("div",{...m("tok"),children:[e.jsx("p",{className:"ah-meta pv-usage__cap",children:t("Tokens per day, stacked by model")}),e.jsx(ce,{series:i.stackTok,labels:i.dates,noun:"tokens",devName:s.name})]}),e.jsxs("div",{...m("req"),children:[e.jsx("p",{className:"ah-meta pv-usage__cap",children:t("Requests per day, stacked by model")}),e.jsx(ce,{series:i.stackReq,labels:i.dates,noun:"requests",devName:s.name})]})]}),e.jsxs("div",{className:"ah-card",children:[e.jsx("h3",{className:"pv-usage__title",children:t("Which models that traffic went to")}),e.jsxs("div",{...m("tok"),children:[e.jsx(re,{items:V.tok,onModelLink:u}),e.jsxs("p",{className:"ah-meta pv-share__note",children:[t("Share of {{total}} tokens.",{total:T(i.totalTokens)}),i.tokMissing>0&&e.jsxs(e.Fragment,{children:[" ",t("{{count}} models with traffic report no token counts and cannot be ranked here",{count:i.tokMissing}),i.tokMissingNames.length>0&&e.jsxs(e.Fragment,{children:[t("tok missing including"),i.tokMissingNames.map((a,l)=>e.jsxs(oe.Fragment,{children:[l>0&&t("tok missing and"),e.jsx("code",{children:a})]},a))]}),t("tok missing tail")]})]})]}),e.jsxs("div",{...m("req"),children:[e.jsx(re,{items:V.req,onModelLink:u}),e.jsx("p",{className:"ah-meta pv-share__note",children:t("Share of {{total}} requests.",{total:T(i.totalCalls)})})]})]})]}),e.jsx("p",{className:"ah-meta",style:{marginTop:"var(--space-3)"},children:t("usage views disagree note",{days:i.days,count:n.length})})]})}),e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsxs("div",{className:"ah-section__head",children:[e.jsx("h2",{children:t("All {{count}} {{dev}} Models",{count:n.length,dev:s.name})}),e.jsx("a",{className:"ah-btn ah-btn--text",href:`/models?developer=${encodeURIComponent(s.name)}`,onClick:()=>Y({cta:"open_model_list",developer:s.name,placement:"provider_page"}),children:t("Open in model list")})]}),e.jsxs("div",{className:"ah-filters",style:{marginBottom:"var(--space-4)"},children:[h.map(a=>{const l=j.indexOf(a.key)>-1;return e.jsxs("button",{className:"ah-chip",type:"button",role:"switch","aria-checked":l,onClick:()=>$(F=>l?F.filter(y=>y!==a.key):F.concat(a.key)),children:[t(a.label),e.jsx("span",{className:"ah-chip__n",children:a.count})]},a.key)}),e.jsx("button",{className:"ah-btn ah-btn--text",type:"button",hidden:!j.length,onClick:()=>$([]),children:t("Clear")}),e.jsx("span",{className:"ah-meta",role:"status","aria-live":"polite",children:j.length?t("{{shown}} of {{total}} models",{shown:S.length,total:n.length}):""})]}),e.jsxs("div",{className:"ah-card ah-card--flat",style:{padding:"var(--space-2)"},children:[e.jsxs("div",{id:"pv-models",className:C?"ah-table-wrap is-folded":"ah-table-wrap",children:[e.jsx("noscript",{dangerouslySetInnerHTML:{__html:"<style>.ah-table-wrap.is-folded tbody tr.pv-fold{display:table-row}.pv-more{display:none}</style>"}}),e.jsxs("table",{className:"ah-table",children:[e.jsx("caption",{className:"pv-sr",children:t("provider table caption",{dev:s.name})}),e.jsx("thead",{children:e.jsx("tr",{children:p.map(a=>{const l=ie[a],F=l.num?"ah-num":void 0;return a==="price"?e.jsxs("th",{scope:"col",className:F,"aria-sort":R("in")||R("out"),children:[e.jsx("button",{className:"pv-sort",type:"button",onClick:()=>w("in"),children:t("Input")}),e.jsx("span",{className:"pv-mod__to","aria-hidden":"true",children:" → "}),e.jsx("button",{className:"pv-sort",type:"button",onClick:()=>w("out"),children:t("Output")})]},a):e.jsx("th",{scope:"col",className:F,"aria-sort":R(l.sort),children:l.sort?e.jsx("button",{className:"pv-sort",type:"button",onClick:()=>w(l.sort),children:t(l.label)}):t(l.label)},a)})})}),e.jsx("tbody",{children:P.map((a,l)=>e.jsx("tr",{className:l>=ae?"pv-fold":void 0,children:p.map(F=>{const y=Be(F,a,{onCopy:U,copiedId:J,onModelLink:u,t});return e.jsx("td",{className:ie[F].num?"ah-num":void 0,children:y||e.jsx(Ce,{})},F)})},a.id))})]}),e.jsx("div",{className:"pv-scroll-hint","aria-hidden":"true"})]}),G&&e.jsxs("button",{className:"pv-more",type:"button","aria-controls":"pv-models","aria-expanded":I,onClick:()=>{I||Y({cta:"show_all_models",developer:s.name,placement:"provider_page",model_count:P.length}),k(a=>!a)},children:[I?t("Show first {{count}}",{count:ae}):t("Show all {{count}} models",{count:P.length}),e.jsx("span",{className:"pv-more__caret","aria-hidden":"true",children:"▾"})]})]}),e.jsx("p",{className:"ah-meta",style:{marginTop:"var(--space-3)"},children:t("provider table footnote")})]})}),f.length>0&&e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsx("div",{className:"ah-section__head",children:e.jsx("h2",{children:t("Common Comparisons")})}),e.jsx("div",{className:"pv-pairs",children:f.map(a=>e.jsxs("a",{className:"pv-pair",href:a.href,onClick:()=>ve({developer:s.name,models:[a.a,a.b],placement:"provider_pairs"}),children:[e.jsx("code",{children:a.a})," ",e.jsx("span",{className:"pv-pair__vs",children:"vs"})," ",e.jsx("code",{children:a.b})]},a.href))})]})}),e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsx("div",{className:"ah-section__head",children:e.jsx("h2",{children:t("{{dev}} on AIHubMix",{dev:s.name})})}),e.jsx("div",{className:"ah-card pv-faq",children:ee.map((a,l)=>e.jsxs("details",{open:l===0,children:[e.jsx("summary",{children:a.q}),e.jsx(De,{paragraphs:a.a})]},a.q))})]})}),N.length>0&&e.jsx("section",{className:"ah-section",children:e.jsxs("div",{className:"ah-container",children:[e.jsxs("div",{className:"ah-section__head",children:[e.jsx("h2",{children:t("Other Model Authors")}),e.jsxs("a",{className:"ah-btn ah-btn--text",href:"/authors",children:[t("See all model authors")," →"]})]}),e.jsx("div",{className:"pv-siblings",children:N.map(a=>e.jsxs("a",{className:"pv-sibling",href:`/authors/${a.slug}`,onClick:()=>Y({cta:"other_provider",developer:s.name,placement:"provider_page",destination:`/authors/${a.slug}`}),children:[e.jsx("span",{className:"ah-logo","aria-hidden":"true",children:a.icon?e.jsx("img",{src:a.icon,alt:"",loading:"lazy"}):a.initials}),e.jsxs("span",{children:[e.jsx("span",{className:"pv-sibling__name",children:a.name}),e.jsx("br",{}),e.jsxs("span",{className:"ah-meta",children:[a.count," ",t("models unit",{count:a.count})]})]})]},a.slug))})]})}),e.jsx("section",{className:"ah-section",children:e.jsx("div",{className:"ah-container",children:e.jsxs("div",{className:"ah-card",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--space-6)",flexWrap:"wrap"},children:[e.jsxs("div",{children:[e.jsx("h2",{children:t("Start calling {{dev}} in one line",{dev:s.name})}),e.jsx("p",{className:"ah-lead",style:{marginTop:"var(--space-2)"},children:t("One key, one endpoint, {{models}} models across {{devs}} model authors.",{models:x.catalogSize,devs:x.providerCount})})]}),e.jsxs("div",{className:"ah-row",children:[e.jsx("a",{className:"ah-btn ah-btn--primary",href:`${je("https://console.aihubmix.com")}/token`,onClick:c,children:t("Get API key")}),e.jsx("a",{className:"ah-btn ah-btn--secondary",href:"https://docs.aihubmix.com",onClick:()=>te({destination:"docs",surface:"provider_page",model_developer:s.name}),children:t("Read the docs")})]})]})})})]})})}export{be as M,Ce as N,we as P,ce as S,z as a,Ne as b,K as c,T as d,re as e,Ie as f,ge as i};
