how it works

compress the stack

01

auth in one wrap

wrap your app in <HyperyProvider> and you have passkeys, magic links, social login, and 2fa — accounts done without an auth server.

02

gateway in one client

point the openai sdk at hypery.ai/v1 and reach 200 models — anthropic, openai, flux — through one openai-compatible endpoint.

03

billing + teams for free

metered credits, spend caps, and auto top-up plus teams, roles, and workspaces come from the same platform — no fourth vendor to bolt on.

file one · auth

wrap your app for accounts

drop <HyperyProvider> at the root and every component below gets the signed-in user, hosted auth ui, and scoped gateway access — no auth server to run.

  • passkeys, social login, and 2fa via @hyperyai/sdk
  • prebuilt <SignIn> and <UserButton> components
  • <SignedIn> / <SignedOut> to gate any part of your ui
import { HyperyProvider, SignedIn, SignedOut, SignIn } from "@hyperyai/sdk"
 
export default function RootLayout({ children }) {
return (
<HyperyProvider
config={{
clientId: process.env.NEXT_PUBLIC_HYPERY_CLIENT_ID,
redirectUri: "https://yourapp.com/callback",
gatewayUrl: "https://hypery.ai",
}}
>
<SignedIn>{children}</SignedIn>
<SignedOut>
<SignIn />
</SignedOut>
</HyperyProvider>
)
}

file two · the gateway

point the openai sdk at the gateway

change one base url and reach 200 models across anthropic, openai, and flux. metered billing, spend caps, and teams come from the same platform automatically.

  • openai-compatible gateway at hypery.ai/v1
  • provider/model ids across anthropic, openai, and flux
  • metered billing, spend caps, and teams included
import OpenAI from "openai"
 
const client = new OpenAI({
baseURL: "https://hypery.ai/v1",
apiKey: process.env.GATEWAY_API_KEY,
})
 
const res = await client.chat.completions.create({
model: "anthropic/claude-3.5-sonnet",
messages: [{ role: "user", content: "hi" }],
})

faq

questions

what do i get from one platform?

auth, usage-based billing, an openai-compatible model gateway, and teams — all sharing one account, one dashboard, and one bill, so you don’t stitch four vendors together.

how do i call models?

point the openai sdk at https://hypery.ai/v1 and use provider/model ids like anthropic/claude-3.5-sonnet, openai/gpt-4o, or black-forest-labs/flux-schnell.

is billing really included?

yes. the same platform meters usage in credits, enforces per-user and per-app spend caps, and handles auto top-up — so you can charge customers on day one.

can real teams use what i ship?

teams, roles, and workspaces are built in, so your customers can invite members and share budgets without you building org management from scratch.

ship an ai saas in a weekend

start the weekend build

auth, billing, gateway, and teams from one account — install the sdk, wire two files, and ship.

$npm install @hyperyai/sdk openai