1import{n as e,s as t,t as n}from"./jsx-runtime-DMbYRYqz.js";import{t as r}from"./utils-BGkp4fl6.js";import{i}from"./fileRoute-B9mBbRxK.js";import{r as a,t as o}from"./navigation-BYpZSc0o.js";import{n as s}from"./runtime-C5dMeRET.js";import{l as c}from"./free_tier_get_started_any-BRjFJmqn.js";import{d as l,f as u,p as d,u as f}from"./seo_landing_all_platforms-CCxaRrO3.js";import{$ as p,A as m,B as h,C as g,D as _,E as v,F as y,G as b,H as ee,I as te,J as ne,K as re,L as ie,M as ae,N as oe,O as se,P as ce,Q as le,R as ue,S as de,T as x,U as S,V as C,W as w,X as T,Y as E,Z as D,_ as O,_t as k,a as A,at as j,b as M,c as N,ct as P,d as F,dt as I,et as L,f as R,ft as z,g as B,gt as V,h as H,ht as fe,i as pe,it as me,j as he,k as ge,l as _e,lt as ve,m as ye,mt as be,n as xe,nt as Se,o as Ce,ot as we,p as Te,pt as Ee,q as De,r as Oe,rt as ke,s as Ae,st as je,t as Me,tt as Ne,u as Pe,ut as Fe,v as Ie,vt as Le,w as Re,x as ze,y as Be,yt as Ve,z as He}from"./models_item_generic_workflow_description-D--_YXFY.js";import{t as Ue}from"./free_models_notice-DOzcPdvL.js";import{n as We,r as Ge,t as Ke}from"./models_item_qwen_image_2_1_description-D50qYKqj.js";import{t as qe}from"./models_item_gpt_6_sol_description-CjCK6SBH.js";import"./messages-BvRk9kiK.js";import{t as U}from"./createLucideIcon-R53lhw4P.js";import{s as Je}from"./beatapi-navigation-DxsvRolj.js";import{c as Ye,l as Xe,s as Ze,u as Qe}from"./productized-template-B4e_7MX-.js";import{t as $e}from"./grid-2x2-BBQmWrhw.js";import{t as et}from"./search-CcHYwK2L.js";import{t as tt}from"./workflow-5puEnoS5.js";import{t as nt}from"./x-DUkKHYiH.js";import{A as rt,C as it,S as at,a as ot,b as st,c as ct,f as lt,i as ut,n as dt,o as W,u as G,x as ft}from"./model-directory-BsFqiB_Y.js";import{_ as pt}from"./model-family-directory-Bf9Kg5l2.js";import{t as mt}from"./header-DZjIcdNm.js";import{i as ht}from"./gateway-public-B5dcPAo1.js";import{t as gt}from"./alternative-page-content-BID1me7s.js";import{i as _t}from"./free-tier--Qgh0Id7.js";var vt=U(`images`,[[`path`,{d:`M18 22H4a2 2 0 0 1-2-2V6`,key:`pblm9e`}],[`path`,{d:`m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18`,key:`nf6bnh`}],[`circle`,{cx:`12`,cy:`8`,r:`2`,key:`1822b1`}],[`rect`,{width:`16`,height:`16`,x:`6`,y:`2`,rx:`2`,key:`12espp`}]]),yt=U(`messages-square`,[[`path`,{d:`M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z`,key:`p1xzt8`}],[`path`,{d:`M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1`,key:`1cx29u`}]]),K=t(e(),1),q=n(),J={workflow:{icon:tt,background:`from-[#1a1f24] via-[#2c343c] to-[#6b7380]`,accent:`text-[#c5ccd4]`},video:{icon:Je,background:`from-[#1a1f24] via-[#2a333c] to-[#5c6166]`,accent:`text-[#c5ccd4]`},image:{icon:vt,background:`from-[#1c2228] via-[#3d454e] to-[#9aa3ab]`,accent:`text-[#d7dde3]`},text:{icon:yt,background:`from-[#161b21] via-[#333c46] to-[#7d858e]`,accent:`text-[#d2d8de]`}},bt={all:$e,...Object.fromEntries(Object.entries(J).map(([e,t])=>[e,t.icon]))},Y=[`all`,...dt.map(e=>e.id)];function X(e,t){return t===`zh`&&e.nameZh?e.nameZh:e.name}function Z({item:e,content:t}){let n=J[e.category],i=n.icon;return(0,q.jsxs)(Qe,{href:e.href,ariaLabel:`${t.openLabel}: ${X(e,t.locale)}`,className:`rounded-[16px] shadow-[0_8px_24px_rgba(31,30,27,0.04)] hover:shadow-[0_16px_36px_rgba(31,30,27,0.11)]`,children:[(0,q.jsxs)(Xe,{className:`aspect-video bg-[#e4e8ec]`,children:[e.image?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Ye,{src:e.image,alt:X(e,t.locale)}),(0,q.jsx)(`span`,{className:`pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-black/45 to-transparent`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`absolute bottom-3 left-3 rounded-full border border-white/20 bg-black/35 px-2.5 py-1 text-[9px] font-semibold uppercase tracking-[0.09em] text-white backdrop-blur-md`,children:t.categories[e.category]})]}):(0,q.jsxs)(`div`,{className:r(`absolute inset-0 bg-gradient-to-br`,n.background),children:[(0,q.jsx)(`span`,{className:`absolute inset-0 opacity-25 [background-image:linear-gradient(to_right,rgba(255,255,255,0.12)_1px,transparent_1px),linear-gradient(to_bottom,rgba(255,255,255,0.12)_1px,transparent_1px)] [background-size:38px_38px]`,"aria-hidden":`true`}),e.vendor?(0,q.jsxs)(`div`,{className:`absolute inset-0 flex flex-col justify-between p-5`,children:[(0,q.jsx)(`span`,{className:r(`text-[10px] font-semibold uppercase tracking-[0.18em]`,n.accent),children:e.vendor}),(0,q.jsxs)(`span`,{className:`text-lg font-semibold leading-tight tracking-[-0.025em] text-white/95`,children:[X(e,t.locale),e.contextLabel?(0,q.jsx)(`span`,{className:r(`mt-1.5 block text-[11px] font-normal tracking-normal`,n.accent),children:e.contextLabel}):null]})]}):(0,q.jsx)(i,{className:r(`absolute bottom-5 right-5 size-20 stroke-[1.1] opacity-35`,n.accent),"aria-hidden":`true`})]}),e.badge===`new`?(0,q.jsx)(`span`,{className:`absolute right-3 top-3 rounded-full border border-white/15 bg-[#1a1a1c]/90 px-2.5 py-1 text-[9px] font-semibold uppercase tracking-[0.08em] text-white shadow-sm backdrop-blur-md`,children:`New`}):null,e.freeTier?(0,q.jsx)(`span`,{className:`absolute left-3 top-3 rounded-full border border-emerald-400/30 bg-emerald-600/90 px-2.5 py-1 text-[9px] font-semibold uppercase tracking-[0.08em] text-white shadow-sm backdrop-blur-md`,children:t.freeTierLabel}):null]}),(0,q.jsxs)(Ze,{className:`min-h-[132px] min-w-0 flex-col justify-between px-4 py-4`,children:[(0,q.jsxs)(`span`,{className:`block min-w-0`,children:[(0,q.jsx)(`span`,{className:`block min-w-0 truncate text-[15px] font-semibold leading-tight tracking-[-0.02em] text-[#1a1a1c]`,children:X(e,t.locale)}),(0,q.jsx)(`span`,{className:`mt-2 line-clamp-2 text-[12px] leading-5 text-[#6e6d68]`,children:e.description})]}),(0,q.jsxs)(`span`,{className:`mt-4 flex items-center justify-between gap-3 border-t border-black/[0.07] pt-3`,children:[(0,q.jsx)(`span`,{className:`truncate text-[10px] font-semibold uppercase tracking-[0.08em] text-[#8a8984]`,children:e.vendor??t.categories[e.category]}),(0,q.jsxs)(`span`,{className:`shrink-0 text-right font-mono text-[10px] font-medium text-[#5c6166]`,children:[e.price===`Free`?null:(0,q.jsx)(`span`,{className:`mr-1 text-[#9a9a96]`,children:`From`}),e.price]})]})]})]})}function xt({content:e,items:t,activeCategory:n,activeVendor:i,searchQuery:a,onCategoryChange:s,onSearchQueryChange:c,onClearFilters:l}){let u=(0,K.useRef)(!1),[d,f]=(0,K.useState)(a);(0,K.useEffect)(()=>{u.current||f(a)},[a]);let p=(0,K.useMemo)(()=>W(t,n,i,a),[n,i,t,a]),m=(0,K.useMemo)(()=>Object.fromEntries(Y.map(e=>[e,W(t,e).length])),[t]);return(0,q.jsx)(`section`,{className:`px-4 pb-16 pt-12 sm:px-6 sm:pt-16 lg:px-10 lg:pb-24`,"data-testid":`model-browser`,children:(0,q.jsxs)(`div`,{className:`mx-auto max-w-[1200px]`,children:[(0,q.jsxs)(`header`,{className:`max-w-2xl`,children:[(0,q.jsxs)(`h1`,{"aria-label":e.title,className:`text-4xl font-semibold tracking-tight text-[#1a1a1c] sm:text-5xl sm:leading-[1.04]`,children:[(0,q.jsx)(`span`,{className:`block sm:inline`,children:e.titleLead}),` `,(0,q.jsxs)(`span`,{className:`block sm:ml-8 sm:inline`,children:[e.titleRest,(0,q.jsx)(`span`,{className:`font-serif italic text-[#1a1a1c]`,children:e.titleAccent})]})]}),(0,q.jsx)(`p`,{className:`mt-4 text-base leading-7 text-[#5c6166]`,children:e.description})]}),(0,q.jsxs)(`div`,{className:`relative mt-9`,children:[(0,q.jsx)(et,{className:`pointer-events-none absolute left-4 top-1/2 size-5 -translate-y-1/2 text-[#77756f]`,"aria-hidden":`true`}),(0,q.jsx)(`input`,{type:`search`,value:d,onCompositionStart:()=>{u.current=!0},onCompositionEnd:e=>{u.current=!1,f(e.currentTarget.value),c(e.currentTarget.value)},onChange:e=>{f(e.target.value),u.current||c(e.target.value)},"aria-label":e.searchLabel,placeholder:e.searchPlaceholder,className:`h-14 w-full appearance-none rounded-xl border border-black/15 bg-white pl-12 pr-12 text-base text-[#1a1a1c] shadow-[0_8px_24px_rgba(31,30,27,0.035)] outline-none transition-[border-color,box-shadow] placeholder:text-[#a29f98] focus:border-black/35 focus:shadow-[0_0_0_4px_rgba(255,209,47,0.18)] [&::-webkit-search-cancel-button]:appearance-none`}),d?(0,q.jsx)(`button`,{type:`button`,onClick:()=>{f(``),c(``)},"aria-label":e.clearSearch,className:`absolute right-1.5 top-1/2 flex size-11 -translate-y-1/2 items-center justify-center rounded-lg text-[#77756f] transition-colors hover:bg-black/[0.05] hover:text-[#1a1a1c] focu
1s-visible:outline-none focus-visible:ring-4 focus-visible:ring-[#ffd12f]/35`,children:(0,q.jsx)(nt,{className:`size-4`,"aria-hidden":`true`})}):null]}),(0,q.jsx)(`div`,{className:`mt-8 flex gap-2 overflow-x-auto pb-2 lg:hidden`,"aria-label":e.browseLabel,children:Y.map(t=>{let i=t===n,a=t===`all`?e.allCategory:e.categories[t];return(0,q.jsxs)(`button`,{type:`button`,"aria-pressed":i,onClick:()=>s(t),className:r(`flex min-h-11 shrink-0 items-center gap-2 rounded-full border px-4 text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-[#ffd12f]/35`,i?`border-[#1a1a1c] bg-[#1a1a1c] text-white`:`border-black/10 bg-white/75 text-[#5c6166] hover:border-black/25 hover:text-[#1a1a1c]`),children:[(0,q.jsx)(`span`,{children:a}),(0,q.jsx)(`span`,{className:r(`font-mono text-[10px]`,i?`text-white/65`:`text-[#9a9892]`),children:m[t]})]},t)})}),(0,q.jsxs)(`div`,{className:`mt-8 grid gap-8 lg:grid-cols-[220px_minmax(0,1fr)] lg:items-start`,children:[(0,q.jsx)(`aside`,{className:`sticky top-24 hidden lg:block`,"aria-label":e.browseLabel,children:(0,q.jsx)(`nav`,{className:`space-y-1`,children:Y.map(t=>{let i=t===n,a=t===`all`?e.allCategory:e.categories[t],o=bt[t];return(0,q.jsxs)(`button`,{type:`button`,"aria-pressed":i,onClick:()=>s(t),className:r(`flex min-h-12 w-full items-center gap-3 rounded-xl px-3.5 text-left text-sm transition-colors focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-[#ffd12f]/35`,i?`bg-black/[0.055] font-semibold text-[#1a1a1c]`:`font-medium text-[#66645f] hover:bg-black/[0.03] hover:text-[#1a1a1c]`),children:[(0,q.jsx)(o,{className:`size-[18px] shrink-0 stroke-[1.8]`,"aria-hidden":`true`}),(0,q.jsx)(`span`,{className:`min-w-0 flex-1`,children:a}),(0,q.jsx)(`span`,{className:`font-mono text-[11px] font-medium text-[#8f8d87]`,children:m[t]})]},t)})})}),(0,q.jsxs)(`div`,{className:`min-w-0`,children:[(0,q.jsxs)(`div`,{className:`flex min-h-11 flex-wrap items-center justify-between gap-3 border-b border-black/10 pb-4`,children:[(0,q.jsx)(`p`,{className:`text-sm font-medium text-[#696761]`,"aria-live":`polite`,children:e.resultCount(p.length)}),n===`text`?(0,q.jsx)(`div`,{className:`flex max-w-full items-center gap-2 overflow-x-auto`,"aria-label":e.vendorLabel,children:[{id:`all`,label:e.allVendors},...ut].map(t=>{let n=t.id===i;return(0,q.jsx)(o,{href:G({category:`text`,vendor:t.id,query:a}),"aria-current":n?`page`:void 0,className:r(`flex min-h-11 shrink-0 items-center rounded-full border px-3 text-xs font-semibold transition-colors focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-[#ffd12f]/35`,n?`border-[#1a1a1c] bg-[#1a1a1c] text-white`:`border-black/10 bg-white/70 text-[#5c6166] hover:border-black/25 hover:text-[#1a1a1c]`),children:e.vendorChipLabels?.[t.id]??t.label},t.id)})}):null]}),(0,q.jsxs)(`div`,{className:`pt-4`,children:[n===`text`&&i!==`all`&&e.vendorNotes?.[i]?(0,q.jsx)(`p`,{className:`mb-4 rounded-[14px] border border-emerald-700/15 bg-emerald-50/70 px-4 py-3 text-sm leading-6 text-[#3f4a43]`,children:e.vendorNotes[i]}):null,p.length?(0,q.jsx)(`div`,{className:`grid gap-4 md:grid-cols-2 xl:grid-cols-3`,children:p.map(t=>(0,q.jsx)(Z,{item:t,content:e},t.id))}):(0,q.jsxs)(`div`,{className:`rounded-[14px] border border-dashed border-black/15 bg-white px-6 py-16 text-center`,children:[(0,q.jsx)(`p`,{className:`text-base font-semibold text-[#1a1a1c]`,children:e.noResults}),(0,q.jsx)(`p`,{className:`mx-auto mt-2 max-w-sm text-sm leading-6 text-[#696761]`,children:e.noResultsDescription}),(0,q.jsx)(`button`,{type:`button`,onClick:l,className:`mt-6 min-h-11 rounded-lg bg-[#1a1a1c] px-5 text-sm font-semibold text-white transition-colors hover:bg-black focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-[#ffd12f]/35`,children:e.clearFilters})]})]})]})]})]})})}var St={"claude-sonnet-5-5":()=>x(),"qwen-image-2.1":()=>Ke(),"music-video":()=>ne(),"ecommerce-video":()=>De(),"video-analysis":()=>re(),"minimax-h3":()=>b(),"minimax-h3-fast":()=>Ge(),"minimax-h3-normal":()=>We(),"minimax-h3-max":()=>w(),"minimax-h3-max-turbo":()=>pe(),"seedance-2":()=>S(),"seedance-2-fast":()=>ee(),"seedance-2-mini":()=>C(),"veo-3.1":()=>h(),"seedance-2.5":()=>He(),"kling-3":()=>ue(),"kling-2.6-motion-control":()=>ie(),"kling-3-motion-control":()=>te(),"nano-banana":()=>y(),"nano-banana-2":()=>Ae(),"nano-banana-2-lite":()=>Ce(),"nano-banana-pro":()=>ce(),"gpt-image-2":()=>Te(),"gpt-image-2.5-flare":()=>R(),"gpt-image-2.5-sunburst":()=>F(),"seedream-5-pro":()=>Pe(),"realtime-video":()=>_e(),"claude-opus-5":()=>oe(),"claude-opus-5-5":()=>ae(),"claude-sonnet-5":()=>he(),"claude-fable-5-1":()=>m(),"claude-haiku-4-5-20251001":()=>ge(),"gpt-5.6-sol":()=>se(),"gpt-6.1-sol":()=>Re(),"gpt-6-sol":()=>qe(),"gpt-6-luna":()=>A(),"gpt-5.6-terra":()=>_(),"gpt-5.6-luna":()=>v(),"gemini-3.1-pro-preview":()=>g(),"gemini-3.8-flash":()=>de(),"gemini-3.7-flash":()=>ze(),"gemini-3.6-flash":()=>M(),"grok-4.7":()=>Be(),"grok-4.6":()=>Ie(),"grok-4.5":()=>
1O(),"glm-5.3-flashx":()=>B(),"space-bunny-alpha":()=>H()},Q=i(`/model/`),Ct=250;function $(e){if(e===`ox-alpha`)return rt(s());let t=St[e]?.();if(t)return t;let n=lt(e);return n?n.category===`video`?Oe({name:n.name,endpoint:n.endpoint}):n.category===`image`?xe({name:n.name,endpoint:n.endpoint}):n.category===`workflow`?Me({name:n.name,endpoint:n.endpoint}):ye({name:n.name,vendor:n.vendor??`BeatAPI`}):``}function wt(){let e=s(),t=a(),n=Q.useSearch(),{models:r,freeTier:i}=Q.useLoaderData(),m=ft(n.category),h=m===`text`?at(n.vendor):`all`,g=n.q??``,[_,v]=(0,K.useState)(n.q??``);(0,K.useEffect)(()=>{v(g)},[g]),(0,K.useEffect)(()=>{if(_===g)return;let e=setTimeout(()=>{t.replace(G({category:m,vendor:h,query:_}))},Ct);return()=>clearTimeout(e)},[m,h,g,t,_]);let y=(r?it(st(r)):ot).map(e=>({...e,image:pt(e.id),description:$(e.id),price:ct(e.id),freeTier:i?ht(i,e.id):!1})),b={locale:e,title:Ve(),titleLead:Le(),titleRest:k(),titleAccent:V(),description:fe(),browseLabel:be(),allCategory:N(),noResults:we(),noResultsDescription:j(),clearFilters:me(),openLabel:E(),freeTierLabel:c(),vendorLabel:Ee(),allVendors:z(),vendorChipLabels:{free:I()},vendorNotes:{free:Ue()},searchLabel:Fe(),searchPlaceholder:ve(),clearSearch:P(),resultCount:e=>je({count:e}),categories:{workflow:d(),video:u(),image:f(),text:l()}};return(0,q.jsxs)(`main`,{className:`flex-1 bg-[var(--marketing-page)] text-[var(--marketing-ink)]`,children:[(0,q.jsx)(mt,{position:`sticky`}),i?(0,q.jsx)(`div`,{className:`mx-auto w-full max-w-[1200px] px-4 pt-6 sm:px-6 lg:px-10`,children:(0,q.jsx)(_t,{freeTier:i})}):null,(0,q.jsx)(xt,{content:b,items:y,activeCategory:m,activeVendor:h,searchQuery:_,onCategoryChange:e=>t.push(G({category:e,query:_})),onSearchQueryChange:v,onClearFilters:()=>{v(``),t.push(`/model`)}}),(0,q.jsx)(`section`,{className:`border-t border-black/8 bg-[#f3f0e8] px-5 py-16 sm:px-8 lg:py-20`,children:(0,q.jsxs)(`div`,{className:`mx-auto max-w-7xl`,children:[(0,q.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.16em] text-[#6c665d]`,children:ke()}),(0,q.jsxs)(`div`,{className:`mt-4 grid gap-8 lg:grid-cols-[minmax(0,0.8fr)_minmax(0,1.2fr)] lg:gap-14`,children:[(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h2`,{className:`max-w-xl text-3xl font-semibold tracking-[-0.035em] text-[#1f1e1b] sm:text-4xl`,children:Se()}),(0,q.jsx)(`p`,{className:`mt-4 max-w-2xl text-base leading-7 text-[#69645c]`,children:Ne()}),(0,q.jsxs)(o,{href:`/ai-api-cost-calculator`,className:`mt-7 block rounded-2xl border border-black/10 bg-white p-5 transition hover:-translate-y-0.5 hover:border-black/20 hover:shadow-sm`,children:[(0,q.jsx)(`span`,{className:`block text-lg font-semibold text-[#22211e]`,children:L()}),(0,q.jsx)(`span`,{className:`mt-2 block text-sm leading-6 text-[#746f66]`,children:p()}),(0,q.jsxs)(`span`,{className:`mt-4 block text-sm font-semibold text-[#245f42]`,children:[le(),` â`]})]})]}),(0,q.jsxs)(`div`,{children:[(0,q.jsx)(`h3`,{className:`text-sm font-semibold text-[#292824]`,children:D()}),(0,q.jsx)(`div`,{className:`mt-4 grid gap-2 sm:grid-cols-2`,children:gt.map(e=>(0,q.jsx)(o,{href:`/${e.slug}`,className:`rounded-xl border border-black/8 bg-white px-4 py-3 text-sm font-medium text-[#3d3a35] transition hover:border-black/20 hover:text-black`,children:T({name:e.name})},e.id))})]})]})]})})]})}export{$ as n,wt as t};
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.