!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a091c0-f890-7751-822f-5bef72f0e80a")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,382691,e=>{"use strict";var s=e.i(222666),t=e.i(505962),r=e.i(553215),l=e.i(528164),i=e.i(252358),a=e.i(378643),o=e.i(475910);e.i(406201);var n=e.i(806024);e.s(["CallToAction",0,()=>{let e,c,d,m,x,u,h,f=(0,t.c)(13),g=(0,i.usePosthogClient)();return f[0]!==g?(e=()=>{g.capture(r.PostHogEvent.ClickKeysButton,{variants:r.PostHogElementVariants.PrimaryCta})},f[0]=g,f[1]=e):e=f[1],f[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(a.ApiKeysLink,{children:"Get API Key"}),f[2]=c):c=f[2],f[3]!==e?(d=(0,s.jsx)(l.Button,{size:"lg",className:"gap-2 w-full",onClick:e,render:c}),f[3]=e,f[4]=d):d=f[4],f[5]!==g?(m=()=>{g.capture(r.PostHogEvent.ClickModelsButton,{variants:r.PostHogElementVariants.SecondaryCta,destination:"/discover"})},f[5]=g,f[6]=m):m=f[6],f[7]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsxs)(n.Link,{href:"/discover",children:["Discover Models",(0,s.jsx)(o.RotatingAuthorIcon,{})]}),f[7]=x):x=f[7],f[8]!==m?(u=(0,s.jsx)(l.Button,{size:"lg",className:"gap-2 text-foreground w-full",variant:"outline",onClick:m,render:x}),f[8]=m,f[9]=u):u=f[9],f[10]!==d||f[11]!==u?(h=(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 justify-center gap-3 sm:gap-4 sm:w-fit sm:mx-auto",children:[d,u]}),f[10]=d,f[11]=u,f[12]=h):h=f[12],h}])},567039,e=>{"use strict";var s=e.i(222666),t=e.i(505962),r=e.i(551001),l=e.i(885840),i=e.i(78590),a=e.i(553215),o=e.i(452473),n=e.i(970654),c=e.i(956506),d=e.i(586404),m=e.i(994740);function x(e){let r,l,i,a=(0,t.c)(8),{src:n,alt:c,className:d}=e;return a[0]!==d?(r=(0,o.cn)("size-10 rounded-sm overflow-hidden shrink-0 bg-background ring-1 ring-border/60",d),a[0]=d,a[1]=r):r=a[1],a[2]!==c||a[3]!==n?(l=n?(0,s.jsx)(m.default,{src:n,alt:c,width:40,height:40,className:"size-full object-cover"}):(0,s.jsx)("div",{className:"size-full bg-muted flex items-center justify-center text-sm font-medium",children:c.charAt(0).toUpperCase()}),a[2]=c,a[3]=n,a[4]=l):l=a[4],a[5]!==r||a[6]!==l?(i=(0,s.jsx)("div",{className:r,children:l}),a[5]=r,a[6]=l,a[7]=i):i=a[7],i}var u=e.i(451949);function h(e){let r,i,m,h,f,g,j,p,v,N,w,b,y,_,C=(0,t.c)(59),{model:k}=e;if(C[0]!==k.author||C[1]!==k.iconImage||C[2]!==k.isNew||C[3]!==k.metrics||C[4]!==k.name||C[5]!==k.shortName||C[6]!==k.slug){let e,t,b,y,_,P,M,S=function({growth:e,isNew:s}){return(0,d.isDefinedAndNotNull)(e)&&0!==e&&!0!==s?{label:(0,l.formatWeeklyGrowth)(e),growthBasisPoints:e}:{label:"--",growthBasisPoints:null}}({growth:k.metrics?.weekly_growth,isNew:k.isNew});m=u.TrackedLink,p=`/models/${k.slug}`,v="h-full block",N=a.PostHogEvent.ClickFeaturedModelsCard;let A=k.slug,I=k.name,Z=k.author,B=!!k.isNew;C[18]!==B?(e=B.toString(),C[18]=B,C[19]=e):e=C[19],C[20]!==k.author||C[21]!==k.name||C[22]!==k.slug||C[23]!==e?(w={model_slug:A,model_name:I,model_author:Z,model_is_new:e},C[20]=k.author,C[21]=k.name,C[22]=k.slug,C[23]=e,C[24]=w):w=C[24],i=c.Card,j="group hover:bg-card-hover transition-colors h-full flex flex-col overflow-hidden",r=c.CardContent,h="p-6 flex flex-1 flex-col justify-between",C[25]!==k.author||C[26]!==k.iconImage?(t=(0,s.jsx)(x,{src:k.iconImage,alt:k.author,className:"transition-transform group-hover:scale-110"}),C[25]=k.author,C[26]=k.iconImage,C[27]=t):t=C[27],C[28]!==k.shortName?(b=(0,s.jsx)(c.CardTitle,{children:k.shortName}),C[28]=k.shortName,C[29]=b):b=C[29],C[30]!==k.isNew?(y=k.isNew&&(0,s.jsx)(n.Badge,{variant:"promo",children:"New"}),C[30]=k.isNew,C[31]=y):y=C[31],C[32]!==b||C[33]!==y?(_=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[b,y]}),C[32]=b,C[33]=y,C[34]=_):_=C[34],C[35]!==k.author?(P=(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["by ",k.author]}),C[35]=k.author,C[36]=P):P=C[36],C[37]!==_||C[38]!==P?(M=(0,s.jsxs)("div",{className:"flex flex-col",children:[_,P]}),C[37]=_,C[38]=P,C[39]=M):M=C[39],C[40]!==t||C[41]!==M?(f=(0,s.jsx)("div",{className:"flex items-start justify-between gap-4 mb-4",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[t,M]})}),C[40]=t,C[41]=M,C[42]=f):f=C[42],g=k.metrics&&(0,s.jsx)("div",{className:"flex flex-col gap-y-2 pt-5 border-t border-border",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-col items-start justify-between",children:[(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"Tokens"}),(0,s.jsx)("span",{className:"text-xs font-medium text-foreground",children:(0,d.isDefinedAndNotNull)(k.metrics.tokens_per_week)?(0,l.formatTokensPerWeek)(k.metrics.tokens_per_week):"--"})]}),(0,s.jsxs)("div",{className:"flex flex-col items-end justify-between",children:[(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"Weekly Trend"}),(0,s.jsx)("span",{className:(0,o.cn)("text-xs font-medium",null===S.growthBasisPoints&&"text-faint",(0,d.isDefinedAndNotNull)(S.growthBasisPoints)&&S.growthBasisPoints>0&&"text-positive-text",(0,d.isDefinedAndNotNull)(S.growthBasisPoints)&&S.growthBasisPoints<0&&"text-negative-text"),children:S.label})]})]})}),C[0]=k.author,C[1]=k.iconImage,C[2]=k.isNew,C[3]=k.metrics,C[4]=k.name,C[5]=k.shortName,C[6]=k.slug,C[7]=r,C[8]=i,C[9]=m,C[10]=h,C[11]=f,C[12]=g,C[13]=j,C[14]=p,C[15]=v,C[16]=N,C[17]=w}else r=C[7],i=C[8],m=C[9],h=C[10],f=C[11],g=C[12],j=C[13],p=C[14],v=C[15],N=C[16],w=C[17];return C[43]!==r||C[44]!==h||C[45]!==f||C[46]!==g?(b=(0,s.jsxs)(r,{className:h,children:[f,g]}),C[43]=r,C[44]=h,C[45]=f,C[46]=g,C[47]=b):b=C[47],C[48]!==i||C[49]!==j||C[50]!==b?(y=(0,s.jsx)(i,{className:j,children:b}),C[48]=i,C[49]=j,C[50]=b,C[51]=y):y=C[51],C[52]!==m||C[53]!==y||C[54]!==p||C[55]!==v||C[56]!==N||C[57]!==w?(_=(0,s.jsx)(m,{href:p,className:v,event:N,metadata:w,children:y}),C[52]=m,C[53]=y,C[54]=p,C[55]=v,C[56]=N,C[57]=w,C[58]=_):_=C[58],_}function f(e){return(0,s.jsx)(h,{model:e},e.slug)}e.s(["FeaturedModelsSection",0,function(e){let l,o,n,c,d,m=(0,t.c)(7),{models:x}=e;return m[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-section font-medium mb-1 align-baseline text-foreground",children:"Featured Models"}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:[i.MarketingMetrics.ModelCount," active models on ",i.MarketingMetrics.ProviderCount," ","providers"]})]}),m[0]=l):l=m[0],m[1]===Symbol.for("react.memo_cache_sentinel")?(o={source:"featured_models_section_view_all",destination:"/models?order=top-weekly"},m[1]=o):o=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[l,(0,s.jsx)(u.TrackedLink,{className:"text-muted-foreground group inline-flex text-xs hover:text-accent-foreground transition-colors",href:"/models?order=top-weekly",event:a.PostHogEvent.ClickViewAllFeaturedModels,metadata:o,children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,s.jsx)("span",{children:"View all"}),(0,s.jsx)(r.ArrowRightIcon,{className:"inline-flex size-3 transition-transform group-hover:translate-x-0.5"})]})})]}),m[2]=n):n=m[2],m[3]!==x?(c=x.slice(0,3).map(f),m[3]=x,m[4]=c):c=m[4],m[5]!==c?(d=(0,s.jsxs)("div",{className:"w-full max-w-7xl mx-auto flex flex-col gap-y-6",children:[n,(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:c})]}),m[5]=c,m[6]=d):d=m[6],d}],567039)},505280,e=>{"use strict";var s=e.i(222666),t=e.i(505962),r=e.i(551001),l=e.i(553215),i=e.i(252358),a=e.i(160806),o=e.i(451949);e.s(["HomeBlogPreview",0,function(e){let n,c,d,m,x,u,h=(0,t.c)(10),{posts:f}=e,g=(0,i.usePosthogClient)();h[0]!==g?(n=e=>()=>{g.capture(l.PostHogEvent.ClickBlogCard,{post_title:e.title,post_slug:e.slug,source:"home_blog_section"})},h[0]=g,h[1]=n):n=h[1];let j=n;return h[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("h2",{className:"text-section font-medium text-foreground",children:"Recent Blog Posts"}),h[2]=c):c=h[2],h[3]===Symbol.for("react.memo_cache_sentinel")?(d={source:"home_blog_section",destination:"/blog"},h[3]=d):d=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsxs)("div",{className:"flex items-baseline justify-between",children:[c,(0,s.jsx)(o.TrackedLink,{className:"text-muted-foreground group inline-flex text-xs hover:text-accent-foreground transition-colors",href:"/blog",event:l.PostHogEvent.ClickViewAllBlogPosts,metadata:d,children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,s.jsx)("span",{children:"View all"}),(0,s.jsx)(r.ArrowRightIcon,{className:"inline-flex size-3 transition-transform group-hover:translate-x-0.5"})]})})]}),h[4]=m):m=h[4],h[5]!==f||h[6]!==j?(x=f.length>0&&(0,s.jsx)("div",{children:f.map(e=>(0,s.jsx)(a.BlogListItem,{post:{...e,onClickCapture:j(e)}},e.slug))}),h[5]=f,h[6]=j,h[7]=x):x=h[7],h[8]!==x?(u=(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[m,x]}),h[8]=x,h[9]=u):u=h[9],u}])},803669,e=>{"use strict";var s=e.i(222666),t=e.i(505962),r=e.i(838545),l=e.i(727576),i=e.i(327232),a=e.i(379684),o=e.i(674262);function n(){let e,r,l,i,a=(0,t.c)(4);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"w-10 h-10 bg-muted rounded-lg flex items-center justify-center",children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:"Google"}),(0,s.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,s.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,s.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,s.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)("div",{className:"w-10 h-10 bg-muted rounded-lg flex items-center justify-center",children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:"GitHub"}),(0,s.jsx)("path",{d:"M12 2C6.477 2 2 6.477 2 12C2 16.418 4.865 20.166 8.839 21.489C9.339 21.581 9.521 21.278 9.521 21.017C9.521 20.782 9.512 20.082 9.508 19.272C6.726 19.859 6.139 17.967 6.139 17.967C5.685 16.812 5.029 16.51 5.029 16.51C4.121 15.889 5.098 15.901 5.098 15.901C6.101 15.971 6.629 16.926 6.629 16.926C7.521 18.455 8.97 18.013 9.539 17.762C9.631 17.129 9.889 16.689 10.175 16.419C7.954 16.146 5.62 15.319 5.62 11.534C5.62 10.42 6.01 9.513 6.649 8.809C6.546 8.559 6.203 7.58 6.747 6.189C6.747 6.189 7.586 5.925 9.497 7.234C10.3 7.014 11.15 6.904 12 6.9C12.85 6.904 13.7 7.014 14.503 7.234C16.414 5.925 17.253 6.189 17.253 6.189C17.797 7.58 17.454 8.559 17.351 8.809C17.99 9.513 18.38 10.42 18.38 11.534C18.38 15.329 16.046 16.143 13.825 16.416C14.171 16.75 14.509 17.429 14.509 18.458C14.509 19.92 14.499 20.692 14.499 21.017C14.499 21.278 14.681 21.581 15.181 21.489C19.155 20.166 22.02 16.418 22.02 12C22.02 6.477 17.523 2 12 2Z",fill:"currentColor"})]})}),a[1]=r):r=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("div",{className:"w-10 h-10 bg-muted rounded-lg flex items-center justify-center",children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:"MetaMask"}),(0,s.jsx)("path",{d:"M19.2 3.54 13.1 8.1l1.3-2.93 4.8-1.62Z",fill:"#E17726"}),(0,s.jsx)("path",{d:"m4.8 3.54 6.05 4.6-1.24-2.98L4.8 3.54ZM16.83 15.9l-1.78 3.08 3.8 1.18 1.07-4.22-3.1-.05Zm-12.74.04 1.07 4.22 3.8-1.18-1.79-3.09-3.08.05Zm4.63-5.39-1.13 1.78 3.75.19-.14-4.06-2.48 2.09Zm6.56 0L12.75 8.4l-.1 4.1 3.76-.18-1.13-1.78Z",fill:"#E27625"}),(0,s.jsx)("path",{d:"m8.95 18.98 2.16-1.26-1.88-1.74-.28 3Zm3.95-1.26 2.15 1.26-.28-3-1.88 1.74Z",fill:"#E27625"}),(0,s.jsx)("path",{d:"m15.05 18.98-2.16-1.26.19 1.69-.03.7 2-1.13Zm-6.1 0 2 1.13-.03-.7.19-1.7-2.16 1.27Z",fill:"#D5BFB2"}),(0,s.jsx)("path",{d:"m11 14.95-1.81-.6 1.26-.7.55 1.3Zm2 0 .55-1.3 1.26.7-1.81.6Z",fill:"#233447"}),(0,s.jsx)("path",{d:"m8.95 18.98.3-3.09-2.08.05 1.78 3.04Zm5.8-3.08.3 3.08 1.78-3.04-2.08-.05Zm1.65-3.57-3.74.19.34 2.43.55-1.3 1.26.7 1.6-2.02Zm-7.21 2.01 1.26-.7.55 1.31.34-2.43-3.75-.2 1.6 2.02Z",fill:"#CC6228"}),(0,s.jsx)("path",{d:"m7.6 12.33 1.63 3.65-.04-1.64-1.6-2.01Zm7.21 2.01-.04 1.64 1.64-3.65-1.6 2.01Zm-3.47-1.82L11 14.95l.44 2.08.1-3.2-.2-1.31Zm1.32 0-.2 1.3.1 3.21.44-2.08-.34-2.43Z",fill:"#E27525"}),(0,s.jsx)("path",{d:"m13 14.95-.44 2.08.33.69 1.88-1.74.04-1.64-1.81.61Zm-3.81-.61.04 1.64 1.88 1.74.33-.69-.44-2.08-1.81-.6Z",fill:"#F5841F"}),(0,s.jsx)("path",{d:"m13.05 20.1.03-.7-.17-.13h-1.82l-.17.14.03.7-2-1.13.9.75 1.22.9h1.86l1.23-.9.89-.75-2 1.13Z",fill:"#C0AC9D"}),(0,s.jsx)("path",{d:"m12.9 17.72-.34-.69h-1.12l-.33.69-.19 1.69.17-.14h1.82l.17.14-.19-1.7Z",fill:"#161616"}),(0,s.jsx)("path",{d:"m19.6 9.1.56-3-.96-2.56-6.3 4.92 2.38 2.09 3.47 1.07.75-.89-.33-.23.56-.47-.4-.28.57-.38-.3-.28Zm-15.76-3 .57 3-.3.28.55.37-.4.28.57.47-.33.23.75.9 3.47-1.08 2.39-2.09L4.8 3.54 3.84 6.1Z",fill:"#763E1A"}),(0,s.jsx)("path",{d:"m18.75 11.63-3.47-1.08 1.13 1.78-1.64 3.65 2.06-.04h3.1l-1.18-4.31ZM8.72 10.55l-3.47 1.07-1.16 4.32h3.08l2.06.04-1.64-3.65 1.13-1.78Zm3.94 1.97.23-4.06 1.5-3.3H9.61l1.5 3.3.23 4.06.1 1.3v3.21h1.12v-3.2l.1-1.31Z",fill:"#F5841F"})]})}),a[2]=l):l=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsxs)("div",{className:"flex flex-row gap-2 max-w-56",children:[e,r,l,(0,s.jsx)("div",{className:"w-10 h-10 bg-muted rounded-lg flex items-center justify-center",children:(0,s.jsx)(o.EnvelopeIcon,{className:"w-5 h-5 text-primary"})})]}),a[3]=i):i=a[3],i}function c(e){let r,l,i,a,o,n=(0,t.c)(13),{number:c,title:d,description:m,children:x}=e;return n[0]!==c?(r=(0,s.jsx)("div",{className:"w-8 h-8 bg-muted rounded-full flex items-center justify-center text-foreground text-xs font-medium",children:c}),n[0]=c,n[1]=r):r=n[1],n[2]!==d?(l=(0,s.jsx)("h3",{className:"text-base font-medium text-foreground",children:d}),n[2]=d,n[3]=l):l=n[3],n[4]!==r||n[5]!==l?(i=(0,s.jsxs)("div",{className:"flex items-center gap-2 md:gap-3",children:[r,l]}),n[4]=r,n[5]=l,n[6]=i):i=n[6],n[7]!==m?(a=(0,s.jsx)("div",{className:"min-h-10 md:min-h-12",children:(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:m})}),n[7]=m,n[8]=a):a=n[8],n[9]!==x||n[10]!==i||n[11]!==a?(o=(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[i,a,x]}),n[9]=x,n[10]=i,n[11]=a,n[12]=o):o=n[12],o}function d(e,t){return(0,s.jsxs)("div",{className:"h-4 w-6 flex flex-col justify-center",children:[(0,s.jsx)("div",{className:"h-1 bg-foreground/20 rounded-sm"}),(0,s.jsx)("div",{className:"h-0.5 bg-foreground/8 rounded-sm mt-0.5"})]},t)}e.s(["HowItWorks",0,function(){let e,o,m,x,u,h,f,g,j,p,v,N,w=(0,t.c)(12);return w[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(i.UserIcon,{className:"w-5 h-5 text-foreground"}),w[0]=e):e=w[0],w[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsxs)("div",{className:"h-4 w-6 flex flex-col justify-center",children:[(0,s.jsx)("div",{className:"h-1 bg-foreground/20 rounded-sm"}),(0,s.jsx)("div",{className:"h-0.5 bg-foreground/8 rounded-sm mt-0.5"})]}),w[1]=o):o=w[1],w[2]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(c,{number:1,title:"Signup",description:"Create an account to get started. You can set up an org for your team later.",children:(0,s.jsxs)("div",{className:"w-full max-w-56 pt-4 md:px-2 flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[e,o,(0,s.jsxs)("div",{className:"h-4 w-12 flex flex-col justify-center",children:[(0,s.jsx)("div",{className:"h-1 bg-foreground/20 rounded-sm"}),(0,s.jsx)("div",{className:"h-0.5 bg-foreground/8 rounded-sm mt-0.5"})]})]}),(0,s.jsx)(n,{})]})}),w[2]=m):m=w[2],w[3]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(r.CreditCardIcon,{className:"w-5 h-5 text-foreground"}),Array.from({length:4}).map(d)]}),w[3]=x):x=w[3],w[4]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)("span",{className:"text-2xs text-muted-foreground",children:"Apr 1"}),w[4]=u):u=w[4],w[5]===Symbol.for("react.memo_cache_sentinel")?(h=(0,s.jsxs)("div",{className:"h-6 bg-foreground/5 rounded-sm flex items-center px-2",children:[u,(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 mx-2",children:[(0,s.jsx)("div",{className:"h-2 flex-1 bg-foreground/8 rounded-sm"}),(0,s.jsx)("div",{className:"h-2 flex-1 bg-foreground/8 rounded-sm"})]}),(0,s.jsx)("span",{className:"text-xs font-medium text-foreground",children:"$99"})]}),w[5]=h):h=w[5],w[6]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("span",{className:"text-2xs text-muted-foreground",children:"Mar 30"}),w[6]=f):f=w[6],w[7]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsx)(c,{number:2,title:"Buy credits",description:"Credits can be used with any model or provider.",children:(0,s.jsxs)("div",{className:"w-full max-w-56 pt-4 md:px-2 flex flex-col gap-3",children:[x,(0,s.jsxs)("div",{className:"flex flex-col gap-y-2",children:[h,(0,s.jsxs)("div",{className:"h-6 bg-foreground/5 rounded-sm flex items-center px-2",children:[f,(0,s.jsxs)("div",{className:"flex-1 flex items-center gap-2 mx-2",children:[(0,s.jsx)("div",{className:"h-2 flex-1 bg-foreground/8 rounded-sm"}),(0,s.jsx)("div",{className:"h-2 flex-1 bg-foreground/8 rounded-sm"})]}),(0,s.jsx)("span",{className:"text-xs font-medium text-foreground",children:"$10"})]})]})]})}),w[7]=g):g=w[7],w[8]===Symbol.for("react.memo_cache_sentinel")?(j=(0,s.jsxs)(s.Fragment,{children:["Create an API key and start making requests."," ",(0,s.jsx)("a",{className:a.LINK_CLASSES,href:"/docs/quickstart",children:"Fully OpenAI compatible"}),"."]}),w[8]=j):j=w[8],w[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(l.KeyIcon,{className:"w-5 h-5 text-foreground"}),w[9]=p):p=w[9],w[10]===Symbol.for("react.memo_cache_sentinel")?(v=(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[p,(0,s.jsx)("div",{className:"h-6 flex-1 bg-foreground/5 rounded-sm flex items-center px-2",children:(0,s.jsx)("span",{className:"text-2xs text-muted-foreground tracking-wide",children:"OPENROUTER_API_KEY"})})]}),w[10]=v):v=w[10],w[11]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)("div",{className:"flex flex-col gap-y-8 md:gap-y-12 max-w-4xl mx-auto px-6",children:(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-12",children:[m,g,(0,s.jsx)(c,{number:3,title:"Get your API key",description:j,children:(0,s.jsxs)("div",{className:"w-full max-w-56 pt-4 md:px-2 flex flex-col gap-3",children:[v,(0,s.jsx)("div",{className:"h-6 bg-foreground/5 rounded-sm flex items-center px-2",children:(0,s.jsx)("span",{className:"text-2xs tracking-wider text-muted-foreground",children:"••••••••••••••••"})})]})})]})}),w[11]=N):N=w[11],N}],803669)},875426,e=>{"use strict";var s=e.i(222666),t=e.i(505962),r=e.i(553215),l=e.i(777096),i=e.i(956506),a=e.i(270401),o=e.i(994740),n=e.i(59329),c=e.i(820941),d=e.i(168852),m=e.i(687421),x=e.i(845961),u=e.i(678998),h=e.i(440663),f=e.i(451949);let g=[{href:"/models",title:"Text, Images, Videos, and Audio",description:"Generate anything through a single, unified interface. All major models in one place.",linkText:"Browse all",image:(0,s.jsx)(n.AuthorIconGrid,{}),useNextLink:!0},{href:"/docs/guides/best-practices/uptime-optimization",title:"Higher Availability",description:"Reliable AI models via our distributed infrastructure. Fall back to other providers when one goes down.",linkText:"Learn more",image:(0,s.jsx)(function(){let e,r,l,i,a,o=(0,t.c)(5);return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"bg-muted px-3 py-1 rounded-lg text-xs text-foreground whitespace-nowrap",children:"anthropic/claude-opus-5"}),o[0]=e):e=o[0],o[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsxs)("svg",{width:"100%",height:"70",viewBox:"0 0 200 70",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"text-muted-foreground/60","aria-labelledby":"routing-diagram-title",children:[(0,s.jsx)("title",{id:"routing-diagram-title",children:"Model routing visualization"}),(0,s.jsx)("path",{d:"M95 0 C100 40, 20 20, 10 65",stroke:"currentColor",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M100 0 C100 20, 100 20, 100 65",stroke:"currentColor",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M105 0 C100 40, 180 20, 190 65",stroke:"currentColor",strokeWidth:"0.75"})]}),o[1]=r):r=o[1],o[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(x.ProviderIcon,{frame:!0,providerName:m.ProviderName.Google,providerIcon:{url:(0,u.getLocalIconUri)("GoogleVertex.svg")}}),o[2]=l):l=o[2],o[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)(x.ProviderIcon,{frame:!0,providerName:m.ProviderName.Anthropic,providerIcon:{url:(0,u.getLocalIconUri)("Anthropic.svg")}}),o[3]=i):i=o[3],o[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,s.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,s.jsxs)("div",{className:"relative w-full max-w-52 flex flex-col items-center gap-y-2",children:[e,r,(0,s.jsxs)("div",{className:"flex justify-between w-full",children:[l,i,(0,s.jsx)(x.ProviderIcon,{frame:!0,providerName:m.ProviderName.AmazonBedrock,providerIcon:{url:(0,u.getLocalIconUri)("Bedrock.svg")}})]})]})}),o[4]=a):a=o[4],a},{}),target:"openrouter-docs"},{href:"/docs/guides/routing/provider-selection#provider-sorting",title:"Price and Performance",description:"Keep costs in check without sacrificing speed. OpenRouter runs at the edge for minimal latency between your users and their inference.",linkText:"Learn more",image:(0,s.jsx)(function(){let e,r=(0,t.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsxs)("div",{className:"relative flex h-full items-center justify-center",children:[(0,s.jsxs)("div",{className:"absolute inset-0 z-10",children:[(0,s.jsx)("div",{className:"from-slate-1 to-slate-1 absolute inset-0 bg-gradient-to-t via-transparent opacity-20"}),(0,s.jsx)("div",{className:"from-slate-1 to-slate-1 absolute inset-0 bg-gradient-to-r via-transparent opacity-20"})]}),(0,s.jsx)(o.default,{src:"/perf-light.png",alt:"Performance graph",width:300,height:150,className:"h-full w-full object-contain dark:hidden"}),(0,s.jsx)(o.default,{src:"/perf-dark.png",alt:"Performance graph",width:300,height:150,className:"hidden h-full w-full object-contain dark:block"})]}),r[0]=e):e=r[0],e},{}),target:"openrouter-docs"},{href:"/docs/guides/privacy/provider-logging",title:"Custom Data Policies",description:"Protect your organization with fine grained data policies. Ensure prompts only go to the models and providers you trust.",linkText:"View docs",image:(0,s.jsx)(function(){let e,r,l,i=(0,t.c)(3),o=(0,a.useRef)(null);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)(c.LockClosedIcon,{className:"size-4 text-muted-foreground"}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsxs)("div",{className:"flex justify-between items-end w-full px-11 -mb-2",children:[e,(0,s.jsx)("div",{className:"w-7 h-7 rounded-full bg-positive/20 flex items-center justify-center",children:(0,s.jsx)(d.CheckIcon,{className:"size-5 text-positive"})}),(0,s.jsx)(c.LockClosedIcon,{className:"size-4 text-muted-foreground"})]}),i[1]=r):r=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,s.jsxs)("div",{className:"flex flex-col items-center w-full max-w-52",children:[r,(0,s.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"0.3",stroke:"currentColor",className:"size-32 text-muted-foreground/60",children:[(0,s.jsx)("title",{children:"Data policy visualization"}),(0,s.jsx)("path",{d:"M12 2.7A12 12 0 0 1 3.6 6 12 12 0 0 0 3 9.7a12 12 0 0 0 9 11.7A12 12 0 0 0 20.4 6h-.1A12 12 0 0 1 12 2.7Z"}),(0,s.jsx)("path",{strokeWidth:".4",d:"M14.2 14.5a3.6 3.6 0 0 0 1.5-.2 1.2 1.2 0 0 0-1.9-1m.4 1.2v.3a4.8 4.8 0 0 1-2.4.6c-.9 0-1.7-.2-2.4-.6a2.4 2.4 0 0 1 0-.3m4.8 0a2.4 2.4 0 0 0-.4-1.3m0 0a2.4 2.4 0 0 0-2-1.1 2.4 2.4 0 0 0-2 1.1m0 0a1.2 1.2 0 0 0-1.9 1.1 3.6 3.6 0 0 0 1.5.2m.4-1.3a2.4 2.4 0 0 0-.4 1.3M13 9.7a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0Zm2.4 1.2a.9.9 0 1 1-1.8 0 .9.9 0 0 1 1.8 0Zm-5.4 0a.9.9 0 1 1-1.8 0 .9.9 0 0 1 1.8 0Z"})]})]})}),i[2]=l):l=i[2],l},{}),target:"openrouter-docs"}];function j({href:e,title:t,description:o,linkText:n,image:c,target:d,useNextLink:m}){let x=(0,a.useMemo)(()=>(0,s.jsxs)(i.Card,{className:"group/card flex flex-col h-full overflow-hidden hover:bg-card-hover transition-colors",children:[(0,s.jsx)("div",{className:"bg-background shadow-none transition-transform group-hover/card:scale-105 group-hover/card:-translate-y-1 relative h-48 overflow-hidden rounded-t-lg border-b p-2 shrink-0",children:c}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 px-6 py-4 h-full",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2 h-full",children:[(0,s.jsx)(i.CardTitle,{children:t}),(0,s.jsx)(i.CardDescription,{className:"text-xs text-muted-foreground",children:o})]}),(0,s.jsxs)("span",{className:"text-xs font-medium text-foreground underline underline-offset-2 decoration-current/40 group-hover/card:text-accent-foreground group-hover/card:decoration-accent-foreground transition-colors",children:[n,d?(0,s.jsx)(l.ExternalLinkIconForMarkdown,{}):null]})]})]}),[e,t,o,n,c,d]);return m?(0,s.jsx)(f.TrackedLink,{className:"h-full",href:e,target:d,event:r.PostHogEvent.ClickFeatureCard,metadata:{feature:t,destination:e},children:x}):(0,s.jsx)(h.TrackedAnchor,{className:"h-full",href:e,target:d,rel:d?"noreferrer":void 0,event:r.PostHogEvent.ClickFeatureCard,metadata:{feature:t,destination:e},children:x})}function p(e){return(0,s.jsx)(j,{...e},e.href)}e.s(["OpenRouterFeatures",0,function(){let e,r=(0,t.c)(1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"flex flex-col gap-y-4 md:gap-y-8 max-w-7xl mx-auto w-full",children:(0,s.jsx)("div",{className:"grid md:grid-cols-2 gap-6 xl:grid-cols-4",children:g.map(p)})}),r[0]=e):e=r[0],e}],875426)},451949,e=>{"use strict";var s=e.i(222666),t=e.i(505962),r=e.i(252358);e.i(406201);var l=e.i(806024);e.s(["TrackedLink",0,function(e){let i,a,o,n,c,d,m=(0,t.c)(13);m[0]!==e?({event:i,metadata:a,ref:o,...n}=e,m[0]=e,m[1]=i,m[2]=a,m[3]=o,m[4]=n):(i=m[1],a=m[2],o=m[3],n=m[4]);let x=(0,r.usePosthogClient)();return m[5]!==i||m[6]!==a||m[7]!==x?(c=()=>{x.capture(i,a)},m[5]=i,m[6]=a,m[7]=x,m[8]=c):c=m[8],m[9]!==o||m[10]!==n||m[11]!==c?(d=(0,s.jsx)(l.Link,{ref:o,...n,onClick:c}),m[9]=o,m[10]=n,m[11]=c,m[12]=d):d=m[12],d}])},509842,e=>{"use strict";var s=e.i(222666),t=e.i(505962),r=e.i(78590),l=e.i(956506);function i(e){let r,i,o=(0,t.c)(5),{amount:n,name:c}=e;o[0]!==n?(r=n.startsWith("$")?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-xl align-top",children:"$"}),n.slice(1)]}):n,o[0]=n,o[1]=r):r=o[1];let d=r;return o[2]!==d||o[3]!==c?(i=(0,s.jsx)(l.Card,{className:"border-0 bg-transparent",children:(0,s.jsx)(a,{formattedAmount:d,name:c})}),o[2]=d,o[3]=c,o[4]=i):i=o[4],i}function a(e){let r,l,i,a=(0,t.c)(7),{formattedAmount:o,name:n}=e;return a[0]!==o?(r=(0,s.jsx)("p",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-foreground",children:o}),a[0]=o,a[1]=r):r=a[1],a[2]!==n?(l=(0,s.jsx)("p",{className:"text-2xs md:text-xs text-muted-foreground",children:n}),a[2]=n,a[3]=l):l=a[3],a[4]!==r||a[5]!==l?(i=(0,s.jsx)("div",{className:"p-2 sm:p-4 md:p-6",children:(0,s.jsxs)("div",{className:"flex flex-col items-center gap-1 md:gap-2 text-center",children:[r,l]})}),a[4]=r,a[5]=l,a[6]=i):i=a[6],i}e.s(["TrustedByMillions",0,function(){let e,l=(0,t.c)(1);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,s.jsx)("div",{className:"flex flex-col gap-8 md:gap-12",children:(0,s.jsxs)("div",{className:"grid grid-cols-4 gap-2 sm:gap-4 md:gap-6 max-w-6xl mx-auto",children:[(0,s.jsx)(i,{amount:r.MarketingMetrics.MonthlyTokens,name:"Monthly Tokens"}),(0,s.jsx)(i,{amount:r.MarketingMetrics.GlobalUserCount,name:"Global Users"}),(0,s.jsx)(i,{amount:r.MarketingMetrics.ProviderCount,name:"Providers"}),(0,s.jsx)(i,{amount:r.MarketingMetrics.ModelCount,name:"Models"})]})}),l[0]=e):e=l[0],e}])}]); //# sourceMappingURL=32ffm-ptuhyme.js.map //# chunkId=01a091c0-f890-7751-822f-5bef72f0e80a