1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,689583,e=>{"use strict";var i=e.i(843476),r=e.i(657688),t=e.i(632781),n=e.i(167881),o=e.i(713720),a=e.i(647163);function c({className:e,label:c="Discord",compact:s=!1,presentation:l="button",disabled:d,...u}){let{isLoading:p,openDiscordSupport:g}=(0,o.useDiscordSupport)(),m=p?(0,i.jsx)(t.Loader2,{className:"size-4 animate-spin","aria-hidden":"true"}):(0,i.jsx)(r.default,{src:"/CommunityLogos/Discord_logo.png",alt:"",width:18,height:18,className:"size-4 rounded-sm object-contain"});return"link"===l?(0,i.jsxs)("button",{type:"button",disabled:d||p,className:(0,a.cn)("inline-flex cursor-pointer items-center gap-2 text-sm text-muted-foreground transition-colors hover:text-foreground disabled:pointer-events-none disabled:opacity-50",e),onClick:()=>{g()},children:[m,c]}):(0,i.jsxs)(n.Button,{...u,disabled:d||p,className:(0,a.cn)("gap-2 border-transparent bg-[#5865F2] text-white shadow-none hover:bg-[#4752C4] hover:text-white",s?"h-8 px-2.5 text-sm":"h-10 px-5 text-base",e),onClick:()=>{g()},children:[m,c]})}e.s(["DiscordSupportButton",()=>c])},970065,e=>{"use strict";var i=e.i(843476),r=e.i(647163);function t({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"card",className:(0,r.cn)("rounded-md border border-border/70 bg-background text-card-foreground shadow-sm",e),...t})}function n({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("flex flex-col gap-1.5 p-5",e),...t})}function o({className:e,...t}){return(0,i.jsx)("h3",{"data-slot":"card-title",className:(0,r.cn)("text-base font-semibold leading-none tracking-tight",e),...t})}function a({className:e,...t}){return(0,i.jsx)("p",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...t})}function c({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("p-5 pt-0",e),...t})}function s({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center p-5 pt-0",e),...t})}e.s(["Card",()=>t,"CardContent",()=>c,"CardDescription",()=>a,"CardFooter",()=>s,"CardHeader",()=>n,"CardTitle",()=>o])},735893,e=>{"use strict";class i extends Error{status;code;details;constructor(e,i,r,t){super(r),this.name="ApiRequestError",this.status=e,this.code=i,this.details=t}}function r(e){return e instanceof i}function t(e){return e?{name:e.name||e.email,email:e.email,avatarUrl:e.avatarUrl}:null}function n(e,r,t){return e instanceof i&&("UNAUTHORIZED"===e.code?(t(),r.replace("/login"),r.refresh(),!0):"USER_DISABLED"===e.code&&(t(),r.replace("/login?error=USER_DISABLED"),r.refresh(),!0))}e.s(["ApiRequestError",()=>i,"handleAuthError",()=>n,"isApiRequestError",()=>r,"toNavbarUser",()=>t])},314060,e=>{"use strict";var i=e.i(735893);async function r(e,r){let t=r?.body instanceof FormData,n=await fetch(e,{...r,headers:{...t?{}:{"Content-Type":"application/json"},...r?.headers||{}}}),o=await n.json();if(!n.ok||!o.success){if(!o.success)throw new i.ApiRequestError(n.status,o.error.code,o.error.message,o.error.details);throw new i.ApiRequestError(n.status,"HTTP_ERROR",`Request failed with status ${n.status}`)}return o.data}e.s(["apiRequest",()=>r])},758379,e=>{"use strict";let i=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",()=>i])},632781,e=>{"use strict";var i=e.i(758379);e.s(["Loader2",()=>i.default])},713720,e=>{"use strict";var i=e.i(271645),r=e.i(861745),t=e.i(6799);function n({source:e="website"}={}){let o=(0,r.useLocale)(),{showToast:a}=(0,t.useToast)(),[c,s]=(0,i.useState)(!1);async function l(){if(!c){s(!0);try{let i=await fetch("/client/v1/user/getVipChannelUrl",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({source:e})}),r=await i.json();if(200===r.code&&r.data?.channelUrl){window.location.href=r.data.channelUrl;return}if(r.data&&"needDiscordAuth"in r.data&&r.data.authUrl){window.location.href=r.data.authUrl;return}if(401===r.code){let e,i;window.location.href=(e="en"===o?"/login":`/${o}/login`,i=new URLSearchParams({redirect:`${window.location.pathname}${window.location.search}${window.location.hash}`}),`${e}?${i.toString()}`);return}if(40301===r.code)return void a("Discord VIP support is available for paid users.","error");a(r.msg||"Unable to open Discord support channel","error")}catch{a("Unable to open Discord support channel","error")}finally{s(!1)}}}return{isLoading:c,openDiscordSupport:l}}
1e.s(["useDiscordSupport",()=>n])},994179,e=>{"use strict";var i=e.i(843476),r=e.i(225913),t=e.i(647163);let n=(0,r.cva)("inline-flex items-center rounded-lg border px-2.5 py-0.5 text-xs font-medium transition-colors",{variants:{variant:{default:"border-transparent bg-primary/10 text-primary",secondary:"border-border/70 bg-muted text-muted-foreground"}},defaultVariants:{variant:"secondary"}});function o({className:e,variant:r,...o}){return(0,i.jsx)("span",{className:(0,t.cn)(n({variant:r}),e),...o})}e.s(["Badge",()=>o,"badgeVariants",()=>n])},671428,e=>{"use strict";var i=e.i(843476),r=e.i(647163);function t({className:e,...t}){return(0,i.jsx)("div",{"data-slot":"skeleton",className:(0,r.cn)("animate-pulse rounded-lg bg-muted",e),...t})}e.s(["Skeleton",()=>t])},526347,e=>{"use strict";let i=(0,e.i(456420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["default",()=>i])},375775,e=>{"use strict";let i=(0,e.i(456420).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",()=>i],375775)},909308,565400,e=>{"use strict";let i=["OpenAI","Anthropic","Google","GLM","xAI","DeepSeek","Qwen","Hunyuan","MiniMax","Kimi","Runway","Kling","Meta","Mistral"],r={OpenAI:"openai",Anthropic:"anthropic",Google:"google",GLM:"glm",xAI:"xai",DeepSeek:"deepseek",Qwen:"qwen",Hunyuan:"tencent",MiniMax:"minimax",Kimi:"kimi",Runway:"runway",Kling:"kling",Meta:"meta",Mistral:"mistral",Other:"other"};function t(e){return r[e]}function n(e){let t=e.toLowerCase();return"hunyuan"===t?"Hunyuan":i.find(e=>r[e]===t)}function o(e){return i.find(i=>i===e)??n(e)}e.s(["MODEL_PROVIDERS",0,i,"MODEL_PROVIDER_SLUGS",0,r,"getProviderFromParam",()=>o,"getProviderFromSlug",()=>n,"getProviderSlug",()=>t],565400);let a=new Set(["gpt-6-astra","gpt-5.6-sol","gpt-5.6-terra","claude-opus-5","claude-sonnet-5","claude-opus-4-8","claude-opus-4-7","claude-opus-4-6","claude-sonnet-4-6","deepseek-flash","deepseek-v4-flash","deepseek-v4-pro","glm-5.1","glm-5.2","glm-5.3","glm-5.3-flash","minimax-m3","kimi-k3","qwen3.7-max","qwen3.7-plus","qwen3.8-max","qwen3.8-flash","hy3"]),c=new Set,s=new Set(["claude-opus-4-7","claude-opus-4-6","glm-5.1"]);[...c,...Array.from(a).filter(e=>!s.has(e))];let l=new Map([["openai/gpt-6-astra","/models/openai/gpt-6-astra"],["openai/gpt-5.6-sol","/models/openai/gpt-5-6/gpt-5-6-sol"],["openai/gpt-5.6-terra","/models/openai/gpt-5-6/gpt-5-6-terra"],["openai/gpt-5.6-luna","/models/openai/gpt-5-6/gpt-5-6-luna"],["openai/gpt-5.5","/models/openai/gpt-5-5"],["openai/gpt-5.4","/models/openai/gpt-5-4"],["openai/gpt-5.4-mini","/models/openai/gpt-5-4-mini"],["anthropic/claude-fable-5","/models/anthropic/claude-fable-5"],["anthropic/claude-opus-5","/models/anthropic/claude-opus-5"],["anthropic/claude-sonnet-5","/models/anthropic/claude-sonnet-5"],["anthropic/claude-opus-4-8","/models/anthropic/claude-opus-4-8"],["anthropic/claude-opus-4-7","/models/anthropic/claude-opus-4-7"],["anthropic/claude-opus-4-6","/models/anthropic/claude-opus-4-6"],["anthropic/claude-sonnet-4-6","/models/anthropic/claude-sonnet-4-6"],["deepseek/deepseek-flash","/models/deepseek/deepseek-flash"],["deepseek/deepseek-v4-flash","/models/deepseek/deepseek-v4-flash"],["deepseek/deepseek-v4-pro","/models/deepseek/deepseek-v4-pro"],["glm/glm-5.2","/models/glm/glm-5-2"],["glm/glm-5.3","/models/glm/glm-5-3"],["glm/glm-5.3-flash","/models/glm/glm-5-3-flash"],["minimax/minimax-m3","/models/minimax/minimax-m3"],["kimi/kimi-k3","/models/kimi/kimi-k3"],["qwen/qwen3.7-max","/models/qwen/qwen3-7-max"],["qwen/qwen3.7-plus","/models/qwen/qwen3-7-plus"],["qwen/qwen3.8-max","/models/qwen/qwen3-8-max"],["qwen/qwen3.8-flash","/models/qwen/qwen3-8-flash"],["tencent/hy3","/models/tencent/hy3"]]);function d(e){let i=r[e.provider],t=`${i}/${e.id}`;return l.get(t)||`/models/${i}?model=${encodeURIComponent(e.id)}`}e.s(["MODEL_CATALOG",0,[{id:"gpt-6-astra",name:"GPT-6 Astra",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"gpt6Astra",contextWindow:"1,050,000 context",maxOutputTokens:"128K",parameters:"-",isNew:!0,pricing:{discountLabel:"20% of official price",input:{current:"$2.00",original:"$10.00"},output:{current:"$10.00",original:"$50.00"},cacheWrite:{current:"$2.50",original:"$12.50"},cacheRead:{current:"$0.20",original:"$1.00"}}},{id:"gpt-5.6",name:"GPT-5.6",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"gpt56",contextWindow:"250K context",maxOutputTokens:"128K",parameters:"-",pricing:{discountLabel:"20% of official price",input:{current:"-",original:"-"},output:{current:"-",original:"-"},cacheWrite:{current:"-",original:"-"},cacheRead:{current:"-",original:"-"}}},{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"gpt56",contextWindow:"250K context",maxOutputTokens:"128K",parameters:"-",isNew:!0,pricing:{discountLabel:"20% of official price",input:{current:"$1.00",original:"$5.00"},output:{current:"$6.00",original:"$30.00"},cacheWrite:{current:"$1.25",original:"$6.25"},cacheRead:{current:"$0.10",original:"$0.50"}}},{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"gpt56",contextWindow:"250K context",maxOutputTokens:"128K",parameters:"-",isNew:!0,pricing:{discountLabel:"20% of official price",input:{current:"$0.40",original:"$2.00"},output:{current:"$2.40",original:"$12.00"},cacheWrite:{current:"$0.50",original:"$2.50"},cacheRead:{current:"$0.04",original:"$0.20"}}},{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"gpt56",contextWindow:"250K context",maxOutputTokens:"128K",parameters:"-",isNew:!0,pricing:{discountLabel:"20% of official price",input:{current:"$0.04",original:"$0.20"},output:{current:"$0.24",original:"$1.20"},cacheWrite:{current:"$0.05",original:"$0.25"},cacheRead:{current:"$0.004",original:"$0.02"}}},{id:"gpt-5.5",name:"GPT-5.5",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"gpt55",contextWindow:"1,050,000 context",maxOutputTokens:"128K",parameters:"-",isNew:!0,pricing:{discountLabel:"20% of official price",input:{current:"$1.00",original:"$5.00"},output:{current:"$6.00",original:"$30.00"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.10",original:"$0.50"}}},{id:"gpt-5.4",name:"GPT-5.4",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"gpt54",contextWindow:"256K context",maxOutputTokens:"32K",parameters:"-",isNew:!0,pricing:{discountLabel:"20% of official price",input:{current:"$0.50",original:"$2.50"},output:{current:"$3.00",original:"$15.00"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.05",original:"$0.25"}}},{id:"gpt-5.4-mini",name:"GPT-5.4 Mini",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"gpt54Mini",contextWindow:"128K context",maxOutputTokens:"32K",parameters:"-",isNew:!0,pricing:{discountLabel:"20% of official price",input:{current:"$0.15",original:"$0.75"},output:{current:"$0.90",original:"$4.50"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.015",original:"$0.075"}}},{id:"o3-mini",name:"o3-mini",provider:"OpenAI",logoPath:"/ModelsLogos/openai_logo.webp",descriptionKey:"o3Mini",contextWindow:"200K context",maxOutputTokens:"100K",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$1.8",original:"$3"},output:{current:"$5.4",original:"$9"}}},{id:"claude-fable-5",name:"Claude Fable 5",provider:"Anthropic",logoPath:"/ModelsLogos/claude_logo.webp",descriptionKey:"claudeFable5",contextWindow:"1M context",maxOutputTokens:"128K",parameters:"-",isNew:!0,pricing:{discountLabel:"40% of official price",input:{current:"$4.00",original:"$10.00"},output:{current:"$20.00",original:"$50.00"},cacheWrite:{current:"$5.00",original:"$12.50"},cacheRead:{current:"$0.40",original:"$1.00"}}},{id:"claude-opus-5",name:"Claude Opus 5",provider:"Anthropic",logoPath:"/ModelsLogos/claude_logo.webp",descriptionKey:"claudeOpus5",contextWindow:"1M context",maxOutputTokens:"128K",parameters:"-",isNew:!0,pricing:{discountLabel:"40% of official price",input:{current:"$2.00",original:"$5.00"},output:{current:"$10.00",original:"$25.00"},cacheWrite:{current:"$2.50",original:"$6.25"},cacheRead:{current:"$0.20",original:"$0.50"}}},{id:"claude-sonnet-5",name:"Claude Sonnet 5",provider:"Anthropic",logoPath:"/ModelsLogos/claude_logo.webp",descriptionKey:"claudeSonnet5",contextWindow:"1M context",maxOutputTokens:"128K",parameters:"-",isNew:!0,pricing:{discountLabel:"40% of official price",input:{current:"$0.80",original:"$2.00"},output:{current:"$4.00",original:"$10.00"},cacheWrite:{current:"$1.00",original:"$2.50"},cacheRead:{current:"$0.08",original:"$0.20"}}},{id:"claude-opus-4-8",name:"Claude Opus 4.8",provider:"Anthropic",logoPath:"/ModelsLogos/claude_logo.webp",descriptionKey:"claudeOpus48",contextWindow:"200K context",maxOutputTokens:"32K",parameters:"-",isNew:!0,pricing:{discountLabel:"40% of official price",input:{current:"$2.00",original:"$5.00"},output:{current:"$10.00",original:"$25.00"},cacheWrite:{current:"$2.50",original:"$6.25"},cacheRead:{current:"$0.20",original:"$0.50"}}},{id:"claude-opus-4-7",name:"Claude Opus 4.7",provider:"Anthropic",logoPath:"/ModelsLogos/claude_logo.webp",descriptionKey:"claudeOpus47",contextWindow:"200K context",maxOutputTokens:"32K",parameters:"-",isNew:!0,pricing:{discountLabel:"40% of official price",input:{current:"$2.00",original:"$5.00"},output:{current:"$10.00",original:"$25.00"},cacheWrite:{current:"$2.50",original:"$6.25"},cacheRead:{current:"$0.20",original:"$0.50"}}},{id:"claude-opus-4-6",name:"Claude Opus 4.6",provider:"Anthropic",logoPath:"/ModelsLogos/claude_logo.webp",descriptionKey:"claudeOpus46",contextWindow:"200K context",maxOutputTokens:"32K",parameters:"-",isNew:!0,pricing:{discountLabel:"40% of official price",input:{current:"$2.00",original:"$5.00"},output:{current:"$10.00",original:"$25.00"},cacheWrite:{current:"$2.50",original:"$6.25"},cacheRead:{current:"$0.20",original:"$0.50"}}},{id:"claude-sonnet-4-6",name:"Claude Sonnet 4.6",provider:"Anthropic",logoPath:"/ModelsLogos/claude_logo.webp",descriptionKey:"claudeSonnet46",contextWindow:"200K context",maxOutputTokens:"64K",parameters:"-",isNew:!0,pricing:{discountLabel:"40% of official price",input:{current:"$1.20",original:"$3.00"},output:{current:"$6.00",original:"$15.00"},cacheWrite:{current:"$1.50",original:"$3.75"},cacheRead:{current:"$0.12",original:"$0.30"}}},{id:"gemini-2-0-flash",name:"Gemini 2.0 Flash",provider:"Google",logoPath:"/ModelsLogos/gemini_logo.webp",descriptionKey:"gemini20Flash",contextWindow:"1M context",maxOutputTokens:"8K",parameters:"-",pricing:{discountLabel:"60% of official price",input:{current:"$0.54",original:"$0.9"},output:{current:"$1.62",original:"$2.7"}}}
1,{id:"gemini-1-5-pro",name:"Gemini 1.5 Pro",provider:"Google",logoPath:"/ModelsLogos/gemini_logo.webp",descriptionKey:"gemini15Pro",contextWindow:"1M context",maxOutputTokens:"8K",parameters:"-",pricing:{discountLabel:"60% of official price",input:{current:"$2.1",original:"$3.5"},output:{current:"$6.3",original:"$10.5"}}},{id:"deepseek-flash",name:"DeepSeek V4.1 Flash",provider:"DeepSeek",logoPath:"/ModelsLogos/deepseek_logo.webp",descriptionKey:"deepseekFlash",contextWindow:"1M context",maxOutputTokens:"384K",parameters:"552B MoE (8B in / 16B out active)",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.1800",original:"$0.30"},output:{current:"$0.7200",original:"$1.20"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.0036",original:"$0.006"}}},{id:"deepseek-v4-flash",name:"DeepSeek V4 Flash",provider:"DeepSeek",logoPath:"/ModelsLogos/deepseek_logo.webp",descriptionKey:"deepseekV4Flash",contextWindow:"-",maxOutputTokens:"-",parameters:"-",pricing:{discountLabel:"60% of official price",input:{current:"$0.2640",original:"$0.44"},output:{current:"$0.7920",original:"$1.32"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.0084",original:"$0.014"}}},{id:"deepseek-v4-pro",name:"DeepSeek V4 Pro",provider:"DeepSeek",logoPath:"/ModelsLogos/deepseek_logo.webp",descriptionKey:"deepseekV4Pro",contextWindow:"-",maxOutputTokens:"-",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.7920",original:"$1.32"},output:{current:"$2.3760",original:"$3.96"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.0264",original:"$0.044"}}},{id:"glm-5.1",name:"GLM 5.1",provider:"GLM",logoPath:"/ModelsLogos/zhipu_logo.webp",descriptionKey:"glm51",contextWindow:"-",maxOutputTokens:"-",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.8400",original:"$1.40"},output:{current:"$2.6400",original:"$4.40"},cacheRead:{current:"$0.1560",original:"$0.26"},cacheWrite:{current:"$0",original:"$0"}}},{id:"glm-5.2",name:"GLM 5.2",provider:"GLM",logoPath:"/ModelsLogos/zhipu_logo.webp",descriptionKey:"glm52",contextWindow:"-",maxOutputTokens:"-",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.8400",original:"$1.40"},output:{current:"$2.6400",original:"$4.40"},cacheRead:{current:"$0.1560",original:"$0.26"},cacheWrite:{current:"$0",original:"$0"}}},{id:"glm-5.3",name:"GLM 5.3",provider:"GLM",logoPath:"/ModelsLogos/zhipu_logo.webp",descriptionKey:"glm53",contextWindow:"1M context",maxOutputTokens:"-",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.8400",original:"$1.40"},output:{current:"$2.6400",original:"$4.40"},cacheRead:{current:"$0.1560",original:"$0.26"},cacheWrite:{current:"$0",original:"$0"}}},{id:"glm-5.3-flash",name:"GLM 5.3 Flash",provider:"GLM",logoPath:"/ModelsLogos/zhipu_logo.webp",descriptionKey:"glm53Flash",contextWindow:"1.25M context",maxOutputTokens:"-",parameters:"320B (18B active)",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.0900",original:"$0.15"},output:{current:"$0.3000",original:"$0.50"},cacheRead:{current:"$0.0180",original:"$0.03"},cacheWrite:{current:"$0",original:"$0"}}},{id:"minimax-m3",name:"MiniMax M3",provider:"MiniMax",logoPath:"/ModelsLogos/minimax-logo.webp",descriptionKey:"minimaxM3",contextWindow:"-",maxOutputTokens:"-",parameters:"Dynamic pricing: 2 tiers",isNew:!0,pricing:{discountLabel:"40% of official price",input:{current:"$0.2400",original:"$0.60"},output:{current:"$0.9600",original:"$2.40"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.0480",original:"$0.12"}}},{id:"kimi-k3",name:"Kimi K3",provider:"Kimi",logoPath:"/ModelsLogos/kimi_logo.webp",descriptionKey:"kimiK3",contextWindow:"1,048,576 context",maxOutputTokens:"-",parameters:"2.8T parameters",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$1.80",original:"$3.00"},output:{current:"$9.00",original:"$15.00"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.18",original:"$0.30"}}},{id:"qwen3.7-max",name:"Qwen3.7 Max",provider:"Qwen",logoPath:"/ModelsLogos/q
1wen-logo.webp",descriptionKey:"qwen37Max",contextWindow:"-",maxOutputTokens:"-",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$1.0000",original:"$1.65"},output:{current:"$2.9700",original:"$4.951"},cacheWrite:{current:"$1.2380",original:"$2.063"},cacheRead:{current:"$0.1980",original:"$0.33"}}},{id:"qwen3.7-plus",name:"Qwen3.7 Plus",provider:"Qwen",logoPath:"/ModelsLogos/qwen-logo.webp",descriptionKey:"qwen37Plus",contextWindow:"-",maxOutputTokens:"-",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.1650",original:"$0.276"},output:{current:"$0.6610",original:"$1.101"},cacheWrite:{current:"$0.2060",original:"$0.344"},cacheRead:{current:"$0.0170",original:"$0.028"}}},{id:"qwen3.8-max",name:"Qwen3.8 Max",provider:"Qwen",logoPath:"/ModelsLogos/qwen-logo.webp",descriptionKey:"qwen38Max",contextWindow:"1M context",maxOutputTokens:"131K",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$1.2000",original:"$2.00"},output:{current:"$3.6000",original:"$6.00"},cacheWrite:{current:"$1.5000",original:"$2.50"},cacheRead:{current:"$0.1500",original:"$0.25"}}},{id:"qwen3.8-flash",name:"Qwen3.8 Flash",provider:"Qwen",logoPath:"/ModelsLogos/qwen-logo.webp",descriptionKey:"qwen38Flash",contextWindow:"1M context",maxOutputTokens:"131K",parameters:"125B (6B active)",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.0900",original:"$0.15"},output:{current:"$0.2820",original:"$0.47"},cacheWrite:{current:"$0.1200",original:"$0.20"},cacheRead:{current:"$0.0096",original:"$0.016"}}},{id:"hy3",name:"HY3",provider:"Hunyuan",logoPath:"/ModelsLogos/hunyuan_logo.webp",descriptionKey:"hy3",contextWindow:"-",maxOutputTokens:"-",parameters:"-",isNew:!0,pricing:{discountLabel:"60% of official price",input:{current:"$0.0880",original:"$0.147"},output:{current:"$0.3530",original:"$0.588"},cacheWrite:{current:"$0",original:"$0"},cacheRead:{current:"$0.0220",original:"$0.0367"}}}],"getModelDetailHref",()=>d],909308)},508734,e=>{"use strict";var i=e.i(526347);e.s(["Copy",()=>i.default])},265585,e=>{"use strict";var i=e.i(843476),r=e.i(271645),t=e.i(375775),n=e.i(689664),o=e.i(508734),a=e.i(657688),c=e.i(948148),s=e.i(456904),l=e.i(909308),d=e.i(565400),u=e.i(647163),p=e.i(167881),g=e.i(970065),m=e.i(671428);let h="overflow-hidden rounded-md border-border/80 bg-card shadow-sm";function x({modelName:e,logoPath:r}){return r?(0,i.jsx)("div",{className:"flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border/70 bg-black shadow-sm",children:(0,i.jsx)(a.default,{src:r,alt:`${e} logo`,width:26,height:26,className:"size-6 object-contain"})}):(0,i.jsx)("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-md border border-border/70 bg-black text-xs font-semibold text-white/85",children:e.slice(0,2).toUpperCase()})}function f(e){return!!(e&&"-"!==e&&"Contact us"!==e)}function $(e){return!!e?.startsWith("$")}function w(e){if(!e?.startsWith("$"))return e;let i=Number(e.replace(/[^0-9.-]/g,""));return Number.isFinite(i)?`$${i.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:4})}`:e}function b({label:e,price:r,t,className:n}){let o=r?.current,a=f(o),c=f(r?.original),s=$(o),l=$(r?.original),d=w(o),p=w(r?.original);return(0,i.jsxs)("div",{className:(0,u.cn)("min-w-0 bg-card px-3 py-2.5",n),children:[(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,i.jsx)("span",{className:"h-3.5 w-0.5 shrink-0 rounded-full bg-muted-foreground"}),(0,i.jsx)("span",{className:"truncate text-[10px] font-semibold tracking-normal text-muted-foreground uppercase",children:e})]}),(0,i.jsxs)("div",{className:"mt-1 flex min-w-0 items-baseline text-foreground",children:[(0,i.jsx)("span",{className:(0,u.cn)("truncate font-mono text-xl leading-none font-bold",!a&&"text-base font-semibold text-muted-foreground"),children:a?d:t("card.pending")}),a&&s?(0,i.jsx)("span",{className:"ml-1 shrink-0 text-[11px] font-medium text-muted-foreground",children:t("card.perMillion")}):null]}),(0,i.jsx)("div",{className:"mt-1.5 min-w-0 text-[10px] font-medium text-muted-foreground",children:c?(0,i.jsxs)(i.Fragment,{children:[t("card.official"),(0,i.jsx)("span",{className:"ml-1 font-mono text-[11px] text-muted-foreground
1/70 line-through",children:p}),l?(0,i.jsx)("span",{className:"ml-0.5 text-muted-foreground/70",children:t("card.perMillion")}):null]}):(0,i.jsx)("span",{children:t("card.pendingOfficial")})})]})}function k(e){let i=l.MODEL_CATALOG.find(i=>i.id===e.id&&i.provider===e.provider);return{id:e.id,name:e.name,provider:e.provider,logoPath:e.logoPath||i?.logoPath,descriptionKey:e.descriptionKey||i?.descriptionKey||"gpt4o",contextWindow:e.contextWindow||i?.contextWindow||"-",maxOutputTokens:e.maxOutputTokens||i?.maxOutputTokens||"-",parameters:e.parameters||i?.parameters||"-",pricing:{discountLabel:e.pricing?.discountLabel||i?.pricing.discountLabel,input:{current:e.pricing?.input?.current||i?.pricing.input.current||"-",original:e.pricing?.input?.original||i?.pricing.input.original},output:{current:e.pricing?.output?.current||i?.pricing.output.current||"-",original:e.pricing?.output?.original||i?.pricing.output.original},cacheWrite:{current:e.pricing?.cacheWrite?.current||i?.pricing.cacheWrite?.current||"-",original:e.pricing?.cacheWrite?.original||i?.pricing.cacheWrite?.original},cacheRead:{current:e.pricing?.cacheRead?.current||i?.pricing.cacheRead?.current||"-",original:e.pricing?.cacheRead?.original||i?.pricing.cacheRead?.original}},isNew:i?.isNew}}function v({initialProvider:e="all"}){let a=(0,c.useTranslations)("ModelGallery"),[$,w]=(0,r.useState)([]),[v,y]=(0,r.useState)("loading"),[N,j]=(0,r.useState)(e),[L,M]=(0,r.useState)(null);(0,r.useEffect)(()=>{let e=!0;return async function(){y("loading");try{let i=await fetch("/api/models",{cache:"no-store"}),r=await i.json();if(!e)return;if(!i.ok||!r.success)throw Error("Failed to load models");let t=(r.data?.items||[]).map(k);w(t),y("ready")}catch{e&&y("error")}}(),()=>{e=!1}},[]);let K=(0,r.useMemo)(()=>{let e=d.MODEL_PROVIDERS.filter(e=>$.some(i=>i.provider===e)).map(e=>({key:e,count:$.filter(i=>i.provider===e).length}));return[{key:"all",count:$.length},...e]},[$]),W=(0,r.useMemo)(()=>$.filter(e=>"all"===N||e.provider===N),[$,N]);async function O(e){try{await navigator.clipboard.writeText(e),M(e),window.setTimeout(()=>{M(i=>i===e?null:i)},1200)}catch{M(null)}}return(0,i.jsxs)("section",{id:"gallery",className:"mx-auto w-full max-w-7xl scroll-mt-28 rounded-md bg-background px-4 pt-3 pb-4 shadow-sm md:px-5 md:pt-4 md:pb-5",children:[(0,i.jsx)("h2",{className:"mb-5 text-2xl font-semibold tracking-tight text-foreground",children:a("title")}),(0,i.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[208px_minmax(0,1fr)]",children:[(0,i.jsxs)(g.Card,{className:`${h} h-fit lg:sticky lg:top-24`,children:[(0,i.jsxs)(g.CardHeader,{children:[(0,i.jsx)(g.CardTitle,{children:a("providerPanel.title")}),(0,i.jsx)(g.CardDescription,{children:a("providerPanel.description")})]}),(0,i.jsx)(g.CardContent,{className:"space-y-1",children:K.map(e=>{let r=N===e.key;return(0,i.jsxs)(p.Button,{type:"button",variant:r?"secondary":"ghost",className:`h-auto w-full justify-between rounded-md border px-3 py-2 text-sm ${r?"border-primary/30 bg-primary/10 text-foreground":"border-transparent text-muted-foreground hover:border-border/70 hover:bg-muted/60 hover:text-foreground"}`,onClick:()=>{var i;(i=e.key)!==N&&j(i)},children:[(0,i.jsx)("span",{children:a(`providers.${e.key}`)}),(0,i.jsx)("span",{className:"text-xs text-muted-foreground",children:e.count})]},e.key)})})]}),(0,i.jsxs)("div",{className:"space-y-3",children:["error"===v?(0,i.jsxs)(g.Card,{className:`${h} border-destructive/30`,children:[(0,i.jsxs)(g.CardHeader,{children:[(0,i.jsx)(g.CardTitle,{children:a("error.title")}),(0,i.jsx)(g.CardDescription,{children:a("error.description")})]}),(0,i.jsx)(g.CardFooter,{children:(0,i.jsx)(p.Button,{variant:"outline",onClick:function(){y("loading"),w([]),window.location.reload()},children:a("error.retry")})})]}):null,"loading"===v?(0,i.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:Array.from({length:6}).map((e,r)=>(0,i.jsxs)(g.Card,{className:h,children:[(0,i.jsx)(g.CardHeader,{className:"border-b pb-3",children:(0,i.jsxs)("div",{className:"flex gap-2.5",children:[(0,i.jsx)(m.Skeleton,{className:"size-8 rounded-md"}),(0,i.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,i.jsx)(m.Skeleton,{className:"h-4 w-2/3"}),(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(m.Skeleton,{className:"h-5 w-20"}),(0,i.jsx)(m.Skeleton,{className:"h-5 w-28"})]})]})]})}),(0,i.jsxs)(g.CardContent,{className:"grid grid-cols-2 p-0",children:[(0,i.jsx)(m.Skeleton,{className:"m-3 h-16"}),(0,i.jsx)(m.Skeleton,{className:"m-3 h-16"}),(0,i.jsx)(m.Skeleton,{className:"m-3 h-16"}),(0,i.jsx)(m.Skeleton,{className:"m-3 h-16"})]}),(0,i.jsx)(g.CardFooter,{className:"sr-only",children:(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(m.Skeleton,{className:"h-6 w-16"}),(0,i.jsx)(m.Skeleton,{className:"h-6 w-16"})]})})]},`skeleton-${r}`))}):null,"ready"===v&&0===W.length?(0,i.jsx)(g.Card,{className:h,children:(0,i.jsxs)(g.CardHeader,{children:[(0,i.jsx)(g.CardTitle,{children:a("empty.title")}),(0,i.jsx)(g.CardDescription,{children:a("empty.description")})]})}):null,"ready"===v&&W.length>0?(0,i.jsx)("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3",children:W.map(e=>{let r=(0,l.getModelDetailHref)(e),c=function(e,i){if(!e)return null;let r=e.match(/^(\d+)% of official price$/);return r?i("card.officialPriceRatio",{percent:r[1]}):e}(e.pricing.discountLabel,a);return(0,i.jsxs)(g.Card,{className:`${h} group relative flex h-full flex-col transition-colors hover:border-primary/30`,children:[(0,i.jsxs)("div",{className:"flex items-start gap-2.5 border-b border-border/70 px-3 py-2.5",children:[(0,i.jsx)(s.Link,{href:r,className:"shrink-0","aria-label":e.name,children:(0,i.jsx)(x,{modelName:e.name,logoPath:e.logoPath})}),(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsxs)("div",{className:"flex min-w-0 items-start gap-1.5",children:[(0,i.jsx)(s.Link,{href:r,className:"block min-w-0 text-sm leading-snug font-semibold text-foreground transition-colors hover:text-primary",children:(0,i.jsx)("span",{className:"break-words",children:e.id})}),(0,i.jsx)("button",{type:"button",className:(0,u.cn)("inline-flex h-5 shrink-0 cursor-pointer items-center gap-1 rounded-sm px-1 text-[11px] font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-primary focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none",L===e.id&&"bg-emerald-50 text-emerald-700 hover:bg-emerald-50 hover:text-emerald-700"),onClick:()=>void O(e.id),"aria-label":a("card.copyModelId",{model:e.id}),title:a("card.copyModelId",{model:e.id}),children:L===e.id?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.Check,{className:"size-3"}),(0,i.jsx)("span",{children:a("card.copied")})]}):(0,i.jsx)(o.Copy,{className:"size-3"})})]}),(0,i.jsx)("div",{className:"mt-1.5 flex flex-wrap items-center gap-1",children:c?(0,i.jsx)("span",{className:"inline-flex h-5 cursor-text items-center rounded-sm bg-emerald-600 px-1.5 text-[11px] font-medium text-white select-text",children:c}):null})]}),(0,i.jsx)(s.Link,{href:r,"aria-label":a("card.openDetails",{model:e.id}),className:(0,u.cn)((0,p.buttonVariants)({variant:"outline",size:"icon-xs"}),"shrink-0 rounded-sm"),children:(0,i.jsx)(t.ArrowUpRight,{className:"size-3.5"})})]}),(0,i.jsxs)(g.CardContent,{className:"grid grid-cols-2 p-0",children:[(0,i.jsx)(b,{label:a("card.input"),price:e.pricing.input,t:a}),(0,i.jsx)(b,{label:a("card.output"),price:e.pricing.output,t:a,className:"border-l border-border/70"}),e.pricing.cacheWrite&&f(e.pricing.cacheWrite.current)?(0,i.jsx)(b,{label:a("card.cacheWrite"),price:e.pricing.cacheWrite,t:a,className:"border-t border-border/70"}):null,(0,i.jsx)(b,{label:a("card.cacheRead"),price:e.pricing.cacheRead,t:a,className:"border-t border-l border-border/70"})]})]},e.id)})}):null]})]})]})}e.s(["ModelGallery",()=>v])},685161,e=>{"use strict";var i=e.i(843476),r=e.i(375775),t=e.i(689664),n=e.i(948148),o=e.i(689583),a=e.i(456904),
1c=e.i(167881);function s(){let e=(0,n.useTranslations)("Hero"),s=e.raw("tags");return(0,i.jsx)("section",{className:"flex items-center justify-center px-3 py-12 sm:px-4 md:px-6 md:py-16",children:(0,i.jsxs)("div",{className:"max-w-3xl text-center",children:[(0,i.jsx)("h1",{className:"brand-hero-title-font hero-title-metric mt-6 tracking-[-0.01em]",style:{color:"var(--foreground)"},children:e("title")}),(0,i.jsx)("p",{className:"mt-6 text-base font-medium text-foreground/80 [font-family:var(--font-hero-subtitle)] sm:text-lg md:text-xl",children:e("description")}),(0,i.jsx)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-2",children:s.map(e=>(0,i.jsxs)("span",{className:"inline-flex h-8 items-center gap-1.5 rounded-full border border-border bg-background/80 px-3 text-sm font-medium text-foreground/80 shadow-sm",children:[(0,i.jsx)(t.Check,{className:"size-4 text-primary","aria-hidden":"true"}),e]},e))}),(0,i.jsxs)("div",{className:"mt-10 flex flex-col items-center justify-center gap-3",children:[(0,i.jsxs)(a.Link,{href:"/api-keys",className:(0,c.buttonVariants)({size:"lg",className:"h-10 gap-1.5 rounded-lg px-5 text-base"}),children:[e("primaryCta")," ",(0,i.jsx)(r.ArrowUpRight,{className:"size-5"})]}),(0,i.jsx)(o.DiscordSupportButton,{className:"min-h-10 w-full max-w-sm whitespace-normal rounded-lg px-4 py-2.5 text-center leading-snug sm:w-auto sm:max-w-none sm:px-5",label:e("secondaryCta"),size:"lg"})]})]})})}e.s(["default",()=>s])}]);
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.