Bring Your Own Key

BYOK

AI infrastructure for games. Players fund their own wallets. You pay nothing for AI.

Adaptive NPCs Knowledge graphs Smart cost routing Player intelligence Zero token costs for devs
Start Building Free No credit card required
How It Works

Two sides. One proxy. Zero AI costs.

Developers build. Players pay at-cost for AI. BYOK handles everything in between.

You Build
01

Register your game

Create a free dev account. Get an SDK key. Configure AI models.

02

Drop in one API call

Single POST to an OpenAI-compatible endpoint. Any engine.

03

Ship it

AI costs scale with your players, not your budget.

Players Pay
01

Sign in anywhere

Steam, mobile, web, or any platform. Account auto-created.

02

Fund wallet

$5 gets hundreds of AI interactions via Stripe.

03

Talk to AI NPCs

Dynamic dialogue. Fractions of a cent per interaction. Their wallet, their choice.

BYOK Proxy
Features

Everything you need. Nothing you don't.

Real-time billing, player trust, knowledge graphs, and game intelligence — out of the box.

Safe Wallet

Pre-authorized holds on every AI call.

Funds reserved before inference, settled after, difference refunded instantly. Players set spending limits. Balances never go negative.

NPC Knowledge

NPCs that know their world.

Build NPCs in Spite with knowledge graphs, personality, and milestone-gated secrets. BYOK fetches filtered context per request. Zero token cost for gated content.

Adaptive Memory

NPCs that remember and feel.

NPCs develop trust, fear, respect toward individual players. They form opinions, remember facts, and progress through relationship stages automatically.

Player Intelligence

Players see their story unfold.

Play style tracking, NPC relationship maps, journey highlights, and narrative spending breakdowns. Cross-game passports carry player identity between BYOK games.

Cost Autopilot

Right model, right moment.

Budget tier for quick exchanges, ultra for cinematic moments. Smart routing reads conversation importance and selects the optimal quality tier automatically.

Developer Tools

Ship with confidence.

Circuit breaker protects player wallets from runaway scripts. Efficiency ratings, immersion index, trending narrative threads, and NPC performance benchmarks.

Official SDKs

Drop-in SDKs for every engine.

Get your first NPC talking in minutes. Zero external dependencies. Full TypeScript types. Streaming support.

TS TypeScript

Web games, Electron, Node.js servers. ESM + CJS dual output.

npm i @byok-gg/sdk
C# Unity

.NET Standard 2.1. IAsyncEnumerable streaming. Unity 2021+.

Byok.ByokClient
GD Godot

Godot 4.x addon. Signal-based streaming. Typed GDScript.

addons/byok/
API Any Engine

OpenAI-compatible REST. If it can POST JSON, it works.

POST /api/v1/chat
Player Auth

Three auth methods out of the box. Steam OpenID, anonymous device IDs for mobile/web, or pass your own player IDs from Firebase, Supabase, Epic, PSN, Xbox — any auth system.

Real-Time Events

WebSocket channel for instant game event delivery. NPC actions, milestone activations, and analysis results pushed in real-time. REST polling as fallback.

14 Endpoints

Chat, streaming, player registration, event ingest, event polling, state management, wallet, player profiles, highlights, spending, passports — every endpoint typed and documented.

Pricing

Free to start. Pay per use.

Developers get full platform access free. Players fund their own AI wallets. Pay only for tokens used.

Quality Tiers

Players choose their preferred tier. You configure which AI model powers each one.

Budget

Fast & Efficient

Quick responses, lower cost. Great for casual dialogue.

~$0.0001 / interaction

Standard

Balanced Quality

Best mix of quality and cost. Recommended default.

~$0.0003 / interaction

Ultra

Maximum Quality

Frontier models for cinematic AI experiences.

~$0.001 / interaction

01

Register free

Create a developer account. Get your SDK key. No credit card required.

02

Players fund wallets

Players add funds via Stripe. Top-ups start at $5. They control their spending.

03

AI costs deducted per request

Each interaction is metered from the player's wallet. A small platform fee is included in token pricing.

Unlimited games. Unlimited requests. All features included. You pay nothing for AI tokens.

Start Building — Free

Ready to ship AI gameplay?

Free to start. Fund a wallet. Pay only for AI tokens used. Get your SDK key and make your first request now.

Create Developer Account