Knowledge Base Sections ▾

Tools

Management Keys — SaaS on Gonka

Are you a SaaS developer and want to offer AI inference to your clients without your own infrastructure? Management Keys allow you to create hierarchical API keys: one master key manages multiple client keys with individual limits and expiration times. Under the hood — JoinGonka Gateway and the Gonka network.

What are Management Keys

Management Keys are a system of hierarchical API keys for building SaaS products on top of Gonka AI Gateway.

The architecture is two-tiered:

  • Management key (gm-) — your master key. Not used for direct inference — only for creating and managing child keys.
  • Child key (gc-) — a key for your client. Used for inference requests. Billing is deducted from the management key owner's balance.

This is a white-label model: your clients work through their gc- keys and don't know about Gonka — for them, it's your service.

Why is this needed

Without Management Keys, you would give one API key to all clients — without cost control, without isolation, without analytics. Management Keys solve 4 problems:

ProblemHow it solves
Cost controlDaily and monthly limit in GNK for each child key
Temporary accessTTL (expires_at) — key is automatically deactivated
Client isolationEach client with their own gc- key and rate limit
Unified billingAll child keys deduct from your balance — one account

How to create a Management Key

Step 1: Register at gate.joingonka.ai and top up your GNK or USDT balance.

Step 2: Create a management key via API:

curl -X POST https://gate.joingonka.ai/api/management/keys \
  -H "Authorization: Bearer YOUR_JWT" \
  -H "Content-Type: application/json" \
  -d '{"name": "My SaaS"}'

The response contains a plain key (prefix gm-) — save it, it is only shown once.

Step 3: Create a child key for a client:

curl -X POST https://gate.joingonka.ai/api/management/keys/{gm_key_id}/children \
  -H "Authorization: Bearer YOUR_JWT" \
  -H "Content-Type: application/json" \
  -d '{"name": "Client A", "limit_daily_ngonka": "1000000000", "rate_limit_rpm": 30}'

Client A receives a gc- key with a limit of 1 GNK/day and 30 requests/minute.

Limits and TTL

Each child key supports three types of restrictions:

  • Daily limit (limit_daily_ngonka) — maximum spending per UTC day. Resets automatically at UTC midnight.
  • Monthly limit (limit_monthly_ngonka) — maximum for a calendar month.
  • TTL (expires_at) — key expiration date/time. After this moment, the key stops authenticating.

If the daily or monthly limit is exceeded, the client receives an HTTP 402 with details:

{"error": {"type": "child_key_limit", "daily_remaining": "0", "monthly_remaining": "500000000"}}

All limits are optional — if not specified, the key is limited only by the owner's balance.

Managing child keys

Full CRUD via API:

OperationEndpointDescription
CreatePOST /api/management/keys/:id/childrenNew gc- key with limits
ListGET /api/management/keys/:id/childrenAll child keys with usage
UpdatePATCH /api/management/keys/:id/children/:childIdChange limits, RPM, status
DeleteDELETE /api/management/keys/:id/children/:childIdSoft deactivation

Management is also available through the Dashboard: API Keys → Management Keys section.

Comparison with competitors

FeatureJoinGonkaGonkaGateOpenRouter
Management keysgm- / gc-gpm- (March 2026)No
Daily/monthly limitsGNK (nGNK)USD
TTL (expiration time)expires_atNo
Dashboard UIYes (Keys section)No
Referrals10% L1 + 3% L2NoNo
Inference price$0.001/1M~$0.0035/1M$0.08+/1M

JoinGonka is the only Gonka gateway with GNK limits, TTL, and Dashboard UI for management keys.

Management Keys transform JoinGonka Gateway into a white-label platform. One management key → unlimited child keys with individual limits. Your clients get AI inference, you control costs and earn on the margin.

Want to learn more?

Explore other sections or start earning GNK right now.

Get free 10M tokens →