1import{j as e}from"./vendor-motion-VOv-vRjq.js";import{L as t}from"./vendor-react-CgwpgauT.js";import{N as o}from"./Navbar-BWnMQenR.js";import{Footer as l}from"./Footer-B-jlUJcA.js";import{S as c,h as a,A as n,Q as d,Z as m,p as x}from"./index-DFj2BBxO.js";import{B as p}from"./badge-NWGzI7tl.js";import{A as r}from"./AnimatedSection-C7MCm51h.js";import{u as h}from"./vendor-i18n-T2j15knT.js";import{C as u}from"./cloud-Jo2L4mcx.js";import{T as f}from"./trending-down-C9cTJPkb.js";import{C as g}from"./clock-Bg4kWMOO.js";import{S as j}from"./server-BRQk_4qi.js";import"./vendor-ui-kSdzIpai.js";import"./vendor-charts-BeJd8Fxm.js";import"./vendor-supabase-DYXPcfum.js";const y=[{icon:u,title:"Zero Infrastructure",desc:"No servers to manage, no GPUs to provision. Send requests to our API and we handle the rest."},{icon:m,title:"<10ms Cold Start",desc:"Unlike AWS Lambda or Google Cloud Functions, our inference endpoints are always warm. No cold start penalty."},{icon:f,title:"Pay Per Token",desc:"No idle costs. Pay only for the tokens you consume. From $0.05 per million tokens."},{icon:x,title:"Auto-Scaling",desc:"Handle 10 or 10 million requests per day without configuration changes. Scales instantly."},{icon:g,title:"99.9% Uptime SLA",desc:"Enterprise-grade reliability with automatic failover across multiple regions."},{icon:j,title:"OpenAI Drop-in",desc:"Change one line of code. Our API is 100% compatible with OpenAI SDK. Zero migration friction."}],N=[{title:"Chatbots & Assistants",desc:"Deploy conversational AI without managing GPU clusters. Scale from 0 to millions of messages."},{title:"RAG Pipelines",desc:"Embed retrieval-augmented generation into your app. Low-latency inference for real-time search."},{title:"Batch Processing",desc:"Process millions of documents overnight. Pay only for what you use, no idle GPU costs."},{title:"Edge AI",desc:"Serve inference from the closest region. Sub-10ms latency for time-sensitive applications."}],i=[{question:"What is serverless AI inference?",answer:"Serverless AI inference means you don't manage any infrastructure. You send API requests and receive responses. We handle GPU provisioning, scaling, load balancing, and failover automatically."},{question:"How does pricing compare to self-hosted?",answer:"Self-hosted GPU instances cost $2-10/hour whether you use them or not. With Infernex serverless, you pay per token â typically 60-95% cheaper for variable workloads."},{question:"Is there a cold start problem?",answer:"No. Unlike generic serverless platforms, our inference endpoints are always warm. First-request latency is identical to subsequent requests."},{question:"Can I use my existing OpenAI code?",answer:"Yes. Change the base URL and API key â that's it. Our API is fully compatible with the OpenAI SDK, LangChain, LlamaIndex, and all major frameworks."}],F=()=>(h(),e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(c,{title:"Serverless AI Inference | Scale LLMs Without Infrastructure",description:"Deploy AI models without managing servers. Infernex serverless inference: <10ms latency, pay-per-token, auto-scaling, OpenAI-compatible. From $0.05/M tokens.",path:"/serverless-ai-inference",keywords:["serverless ai inference","serverless llm","ai inference api","managed ai inference","gpu serverless","llm api no infrastructure","pay per token ai","auto scaling ai","openai alternative serverless"],faqItems:i}),e.jsx(o,{}),e.jsx("section",{className:"py-20 lg:py-28",children:e.jsxs("div",{className:"container mx-auto px-6 text-center max-w-4xl",children:[e.jsx(p,{className:"bg-primary/20 text-primary border-primary/30 mb-6",children:"âï¸ SERVERLESS INFERENCE"}),e.jsxs("h1",{className:"text-4xl lg:text-6xl font-bold text-foreground leading-tight mb-6",children:["Scale LLMs ",e.jsx("span",{className:"text-primary",children:"Without Infrastructure"})]}),e.jsx("p",{className:"text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:"Zero servers. Zero GPUs. Zero cold starts. Deploy AI inference that scales from 0 to millions of requests â pay only for what you use."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[e.jsx(a,{size:"lg",asChild:!0,className:"shadow-lg shadow-primary/25",children:e.jsxs(t,{to:"/onboarding",children:["Start Free ",e.jsx(n,{className:"ml-2 h-4 w-4"})]})}),e.jsx(a,{size:"lg",variant:"outline",asChild:!0,children:e.jsx(t,{to:"/ai-inference-pricing",children:"View Pricing"})})]})]})}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(r,{children:e.jsxs("h2",{className:"text-3xl font-bold text-foreground text-center mb-12",children:["Why Serverless with ",e.jsx("span",{className:"text-primary",children:"Infernex"}),"?"]})}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-5xl mx-auto",children:y.map(s=>e.jsx(r,{children:e.jsxs("div",{className:"border border-border/30 rounded-xl p-6 hover:border-primary/30 transition-colors h-full",children:[e.jsx(s.icon,{className:"h-8 w-8 text-primary mb-4"}),e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]})},s.title))})]})}),e.jsx("section",{className:"py-16 bg-muted/20",children:e.jsxs("div",{className:"container mx-auto px-6",children:[e.jsx(r,{children:e.jsx("h2",{className:"text-3xl font-bold text-foreground text-center mb-12",children:"Use Cases"})}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-6 max-w-4xl mx-auto",children:N.map(s=>e.jsx(r,{children:e.jsxs("div",{className:"border border-border/30 rounded-xl p-6",children:[e.jsxs("h3",{className:"font-semibold text-foreground mb-2 flex items-center gap-2",children:[e.jsx(d,{className:"h-5 w-5 text-primary"})," ",s.title]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]})},s.title))})]})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"container mx-auto px-6 max-w-3xl",children:e.jsxs(r,{children:[e.jsxs("h2",{className:"text-3xl font-bold text-foreground text-center mb-8",children:["Deploy in ",e.jsx("span",{className:"text-primary",children:"3 Lines"})]}),e.jsxs("div",{className:"bg-muted/30 rounded-xl border border-border/50 p-6 font-mono text-sm",children:[e.jsx("div",{className:"text-muted-foreground mb-2",children:"# pip install openai"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-primary",children:"from"})," openai ",e.jsx("span",{className:"text-primary",children:"import"})," OpenAI"]}),e.jsxs("div",{className:"mt-2",children:["client = OpenAI(base_url=",e.jsx("span",{className:"text-primary",children:'"https://api.infernex.ai/v1"'}),", api_key=",e.jsx("span",{className:"text-primary",children:'"inf_sk_..."'}),")"]}),e.jsx("div",{className:"mt-2",children:"response = client.chat.completions.
1create("}),e.jsxs("div",{className:"ml-4",children:["model=",e.jsx("span",{className:"text-primary",children:'"gpt-4o"'}),","]}),e.jsxs("div",{className:"ml-4",children:["messages=[{",e.jsx("span",{className:"text-primary",children:'"role"'}),": ",e.jsx("span",{className:"text-primary",children:'"user"'}),", ",e.jsx("span",{className:"text-primary",children:'"content"'}),": ",e.jsx("span",{className:"text-primary",children:'"Hello!"'}),"}]"]}),e.jsx("div",{children:")"})]})]})})}),e.jsx("section",{className:"py-16 bg-muted/20",children:e.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[e.jsx("h2",{className:"text-3xl font-bold text-foreground text-center mb-12",children:"FAQ"}),e.jsx("div",{className:"space-y-6",children:i.map(s=>e.jsxs("div",{className:"border border-border/30 rounded-xl p-6",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-2",children:s.question}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.answer})]},s.question))})]})}),e.jsx("section",{className:"py-20",children:e.jsxs("div",{className:"container mx-auto px-6 text-center",children:[e.jsx("h2",{className:"text-3xl font-bold text-foreground mb-4",children:"Ready to Go Serverless?"}),e.jsx("p",{className:"text-muted-foreground mb-8",children:"Start with 1M free tokens. No credit card required."}),e.jsx(a,{size:"lg",asChild:!0,className:"shadow-lg shadow-primary/25",children:e.jsxs(t,{to:"/onboarding",children:["Get Started Free ",e.jsx(n,{className:"ml-2 h-4 w-4"})]})})]})}),e.jsx(l,{})]}));export{F as default};
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.