PageSourceSearch

https://fairstack.ai/assets/ForAgents-BssWujwb.js

js fairstack.ai collected 2026-10-05 12:01:36 UTC 15,056 bytes, 1 lines download raw bytes

1import{j as e,S as x,m as r,L as a,B as t,A as i,C as m}from"./index-C0-3lqMC.js";import{S as h}from"./SignupLink-BDHlKPMW.js";import{N as u,F as p}from"./Footer-BDhz9QpG.js";import{T as g}from"./terminal-BqfETRwO.js";import{G as l}from"./git-branch-DKFqvXAZ.js";import{C as b}from"./cpu-3o5PQgBB.js";import{C as n}from"./chart-column-CBTq0NdU.js";import{L as d}from"./layers-BBy3rNWT.js";import{S as c}from"./shield-DVW2XQCF.js";import{D as j}from"./dollar-sign-BpK9CE9F.js";import{Z as f}from"./zap-WDQErkXs.js";import"./useSignupsEnabled-Bqv8la2b.js";const v=["35+ v1 REST endpoints","API key authentication with scoped permissions","Per-request cost simulation before execution","Rate limiting and request tracing","Structured error responses with audit logging","Webhooks for async generation status"],N=[{title:"Organization",desc:"Total spending cap across all projects and keys.",icon:d},{title:"Project",desc:"Per-project monthly budgets. Teams set independent limits per project — hard stop when reached.",icon:n},{title:"API Key",desc:"Per-request and total caps on individual keys.",icon:c}],w=[{text:"Every generation tracked with a unique ID",icon:l},{text:"Recall, reproduce, or compare any creation by ID",icon:b},{text:"Full audit trail: prompt, model, parameters, cost, timestamp",icon:n},{text:"Integrate generation history into your CI/CD or content pipeline",icon:d}];function L(){return e.jsxs("div",{className:"min-h-screen bg-background font-sans text-white",children:[e.jsx(x,{title:"For AI Agents and Developers",description:"REST API and MCP server for AI generation with 3-level spending caps, per-request cost simulation, and transparent pricing. Hundreds of models, one API.",path:"/for-agents"}),e.jsx(u,{variant:"dark"}),e.jsxs("section",{className:"relative pt-32 pb-20 md:pt-44 md:pb-28 overflow-hidden bg-background",children:[e.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[e.jsx("div",{className:"absolute top-0 right-1/4 w-[600px] h-[500px] bg-info/6 rounded-full blur-[140px]"}),e.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"linear-gradient(to right, rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.5) 1px, transparent 1px)",backgroundSize:"40px 40px"}})]}),e.jsx("div",{className:"container px-4 mx-auto relative z-10 max-w-5xl",children:e.jsxs(r.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},className:"text-left",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-info/10 border border-info/20 text-info text-sm font-mono mb-6",children:[e.jsx(g,{className:"w-4 h-4"}),e.jsx("span",{children:"v1.0 Stable API"})]}),e.jsxs("h1",{className:"text-[clamp(3rem,2rem+4vw,4.5rem)] font-black tracking-tight mb-6 leading-[1.05]",children:["One API key.",e.jsx("br",{}),"Create everything."]}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl leading-relaxed font-light mb-10",children:"Images, video, voice, music, 3D, and talking heads — one endpoint, one credit balance, full cost transparency. Built for agents and developers who need budget control."}),e.jsx("div",{className:"flex gap-4",children:e.jsx(a,{href:"/docs",children:e.jsxs(t,{size:"lg",className:"h-14 px-8 text-base font-semibold rounded-full bg-white text-black dark:text-white hover:bg-white/90 cursor-pointer",children:["View Documentation",e.jsx(i,{className:"ml-2 w-4 h-4"})]})})})]})})]}),e.jsx("section",{className:"py-24 border-t border-white/5",children:e.jsx("div",{className:"container px-4 mx-auto max-w-5xl",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Your agent should know the price."}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Before executing, agents can simulate model cost, see platform cost, calculate total spend, and evaluate budget impact."}),e.jsx("ul",{className:"space-y-3",children:["Simulate cost before execution","See exact cost per generation","Evaluate budget impact against caps","Choose model by cost or quality"].map(s=>e.jsxs("li",{className:"flex items-center gap-3 text-muted-foreground",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-info rounded-full"}),e.jsx("span",{className:"text-base",children:s})]},s))})]}),e.jsxs("div",{className:"bg-background/60 border border-white/10 rounded-xl p-6 font-mono text-sm overflow-hidden",children:[e.jsxs("div",{className:"flex gap-2 mb-4 text-muted-foreground border-b border-white/5 pb-3",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-secondary"}),e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-secondary"}),e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-secondary"}),e.jsx("span",{className:"ml-auto text-mini",children:"POST /v1/image/generate"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-info",children:"const"})," ",e.jsx("span",{className:"text-white",children:"result"})," ","= ",e.jsx("span",{className:"text-info",children:"await"})," fetch(",e.jsx("span",{className:"text-success",children:'"/v1/image/generate"'}),", ","{"]}),e.jsxs("div",{className:"pl-4 text-muted-foreground",children:[e.jsxs("div",{children:["method: ",e.jsx("span",{className:"text-success",children:'"POST"'}),","]}),e.jsxs("div",{children:["body: JSON.stringify(","{"]}),e.jsxs("div",{className:"pl-4",children:[e.jsxs("div",{children:["prompt: ",e.jsx("span",{className:"text-success",children:'"A cyberpunk cityscape"'}),","]}),e.jsxs("div",{children:["quality: ",e.jsx("span",{className:"text-success",children:'"economy"'}),","]})]}),e.jsxs("div",{children:["}",")","}",");"]})]}),e.jsx("div",{className:"mt-4 text-muted-foreground",children:"// Response"}),e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("div",{children:"{"}),e.jsxs("div",{className:"pl-4",children:[e.jsxs("div",{children:['"url": ',e.jsx("span",{className:"text-success",children:'"https://media.fairstack.ai/..."'}),","]}),e.jsxs("div",{children:['"model": ',e.jsx("span",{className:"text-success",children:'"flux-schnell-t2i"'}),","]}),e.jsxs("div",{children:['"cost": ',e.jsx("span",{className:"text-warning",children:"0.003"}),","]}),e.jsxs("div",{children:['"cost_micro": ',e.jsx("span",{className:"text-warning",children:"3000"}),","]}),e.jsxs("div",{children:['"currency": ',e.jsx("span",{className:"text-success",children:'"USD"'})]})]}),e.jsx("div",{children:"}"})]})]})]})})}),e.jsx("section",{className:"py-24 border-t border-white/5",children:e.jsx("div",{className:"container px-4 mx-auto max-w-5xl",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[e.jsx("div",{className:"order-2 lg:order-1",children:e.jsxs("div",{className:"bg-background/60 border border-white/10 rounded-xl p-6 font-mono text-sm overflow-hidden",children:[e.jsxs("div",{className:"flex gap-2 mb-4 text-muted-foreground border-b border-white/5 pb-3",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-secondary"}),e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-secondary"}),e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-secondary"}),e.jsx("span",{className:"ml-auto text-mini",children:"GET /v1/generations/gen_8f3k..."})]}),e.jsxs("div",{className:"text-muted-foreground",children:[e.jsx("div",{children:"{"}),e.jsxs("div",{className:"pl-4",children:[e.jsxs("div",{children:['"id": ',e.jsx("span",{className:"text-success",children:'"gen_8f3kx9..."'}),","]}),e.jsxs("div",{children:['"model": ',e.jsx("span",{className:"text-success",children:'"flux-2-t2i"'}),","]}),e.jsxs("div",{children:['"prompt": ',e.jsx("span",{className:"text-success",children:'"A serene mountain lake..."'}),","]}),e.jsxs("div",{children:['"cost": ',e.jsx("span",{className:"text-warning",children:"0.032"}),","]}),e.jsxs("div",{children:['"created_at": ',e.jsx("span",{className:"text-success",children:'"2026-03-10T14:32:01Z"'}),","]}),e.jsxs("div",{children:['"output": ',"{"," ",e.jsx("span",{className:"text-success",children:'"url"'}),":"," ",e.jsx("span",{className:"text-success",children:'"..."'})," ","}"]})]}),e.jsx("div",{children:"}"})]})]})}),e.jsxs("div",{className:"order-1 lg:order-2",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-brand/10 border border-brand/20 text-brand text-sm font-mono mb-6",children:[e.jsx(l,{className:"w-4 h-4"}),e.jsx("span",{children:"Traceable"})]}),e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Version control for creations."}),e.jsx("p",{className:"text-lg text-muted-foreground mb-8",children:"Every generation is tracked and reproducible. Build reliable content pipelines with full audit trails."}),e.jsx("ul",{className:"space-y-4",children:w.map(s=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"mt-1 w-8 h-8 rounded-lg bg-brand/10 border border-brand/20 flex items-center justify-center flex-shrink-0",children:e.jsx(s.icon,{className:"w-4 h-4 text-brand"})}),e.jsx("span",{className:"text-muted-foreground text-base pt-1",children:s.text})]},s.text))})]})]})})}),e.jsx("section",{className:"py-24 border-t border-white/5",children:e.jsxs("div",{className:"container px-4 mx-auto max-w-5xl",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-destructive/10 border border-destructive/20 text-destructive text-sm font-mono mb-6",children:[e.jsx(c,{className:"w-4 h-4"}),e.jsx("span",{children:"Hard Caps"})]}),e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Budget enforcement is structural."}),e.jsx("p",{className:"text-lg text-muted-foreground max-w-xl mx-auto",children:"Three layers of spending controls. Every layer is a hard stop, not a suggestion."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-12",children:N.map((s,o)=>e.jsxs(r.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:o*.08},className:"bg-background/40 border border-white/[0.06] rounded-xl p-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-destructive/10 border border-destructive/20 flex items-center justify-center mb-4",children:e.jsx(s.icon,{className:"w-5 h-5 text-destructive"})}),e.jsx("h3",{className:"font-bold text-white mb-2",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.desc})]},s.title))}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"bg-background/40 border border-white/[0.06] rounded-xl p-6 flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-info/10 border border-info/20 flex items-center justify-center flex-shrink-0",children:e.jsx(j,{className:"w-5 h-5 text-info"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-white mb-1",children:"Per-request cost simulation"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Call any endpoint with"," ",e.jsx("code",{className:"text-info/80 bg-info/5 px-1.5 py-0.5 rounded text-xs font-mono",children:"confirm: false"})," ","to get a price quote before committing. Your agent sees the exact cost, evaluates budget, then confirms."]})]})]}),e.jsxs("div",{className:"bg-background/40 border border-white/[0.06] rounded-xl p-6 flex items-start gap-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-info/10 border border-info/20 flex items-center justify-center flex-shrink-0",children:e.jsx(n,{className:"w-5 h-5 text-info"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-white mb-1",children:"Real-time usage dashboard"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Track spending by project, by key, b
1y model. Live cost breakdown with historical trends and per-generation audit trail."})]})]})]})]})}),e.jsx("section",{className:"py-16 border-t border-white/5",children:e.jsx("div",{className:"container px-4 mx-auto max-w-5xl",children:e.jsxs(r.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-gradient-to-br from-info/8 to-info/3 border border-info/15 rounded-2xl p-8 md:p-10 flex flex-col md:flex-row items-start md:items-center gap-6",children:[e.jsx("div",{className:"w-14 h-14 rounded-xl bg-info/15 border border-info/25 flex items-center justify-center flex-shrink-0",children:e.jsx(f,{className:"w-7 h-7 text-info"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-xl font-bold text-white mb-2",children:"MCP server included."}),e.jsx("p",{className:"text-muted-foreground text-base leading-relaxed",children:"Connect your AI agent directly — no SDK needed. The MCP server exposes every generation capability as a tool your agent can call natively. Cost simulation, model selection, and budget checks are built in."})]}),e.jsx(a,{href:"/docs",children:e.jsxs(t,{variant:"outline",className:"border-info/30 text-info hover:bg-info/10 rounded-full cursor-pointer whitespace-nowrap",children:["Learn more",e.jsx(i,{className:"ml-2 w-4 h-4"})]})})]})})}),e.jsx("section",{className:"py-24 border-t border-white/5",children:e.jsxs("div",{className:"container px-4 mx-auto max-w-4xl",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Production-ready API."}),e.jsx("p",{className:"text-lg text-muted-foreground",children:"Everything you need to integrate AI generation into your stack."})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:v.map(s=>e.jsxs("div",{className:"flex items-center gap-3 p-4",children:[e.jsx(m,{className:"w-4 h-4 text-brand flex-shrink-0"}),e.jsx("span",{className:"text-muted-foreground text-base",children:s})]},s))})]})}),e.jsxs("section",{className:"py-24 border-t border-white/5 relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 pointer-events-none",children:e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[700px] h-[350px] bg-info/5 rounded-full blur-[140px]"})}),e.jsxs("div",{className:"container px-4 mx-auto text-center relative z-10",children:[e.jsxs("h2",{className:"text-[clamp(1.875rem,1.2rem+2.5vw,3rem)] font-black tracking-tight mb-6",children:["Give your agents",e.jsx("br",{}),e.jsx("span",{className:"text-muted-foreground",children:"execution power."})]}),e.jsxs("div",{className:"flex gap-4 justify-center",children:[e.jsx(a,{href:"/docs",children:e.jsx(t,{variant:"outline",size:"lg",className:"h-14 px-8 bg-transparent text-white border-white/20 hover:bg-white/5 rounded-full font-medium cursor-pointer",children:"View Documentation"})}),e.jsx(h,{children:e.jsxs(t,{size:"lg",className:"h-14 px-8 bg-white text-black dark:text-white hover:bg-white/90 rounded-full font-semibold cursor-pointer",children:["Start Building",e.jsx(i,{className:"ml-2 w-4 h-4"})]})})]})]})]}),e.jsx(p,{})]})}export{L 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.