Token Kiosk
API Reference

Overview

Base URL, authentication, and the full endpoint list.

Base URL: https://api-token-kiosk.gaib.ai

All endpoints are under /v1/ except /health.

The legacy endpoint agent-router.gaib.ai remains active for backward compatibility, but all external clients should use https://api-token-kiosk.gaib.ai.

Machine-readable spec

The full API is published as an OpenAPI 3.1 spec — point your agent, SDK generator, or API client at it. For LLM context, /llms.txt indexes the docs and /llms-full.txt is every page as one markdown file.

Authentication

MethodUsed for
API key — Authorization: Bearer sk-<64 hex>Inference, usage queries
SIWE — signed message + signatureAPI key management
x402 — payment signatureTop-up

See Authentication for details.

Endpoints

EndpointMethodAuthDescription
/healthGET—Health check
/v1/modelsGET—List models with pricing
/v1/topupPOSTx402Fund balance with USDC or USDT
/v1/topups/:walletGETAPI key / SIWEList top-up history
/v1/auth/keysPOSTSIWECreate API key
/v1/auth/keysGETSIWEList API keys
/v1/auth/keys/:idDELETESIWERevoke API key
/v1/chat/completionsPOSTAPI keyInference (OpenAI-compatible)
/v1/usage/:walletGETAPI key / SIWEBalance & usage stats
/v1/balance/:walletGET—Available balance only

Health

GET /health

curl https://api-token-kiosk.gaib.ai/health
{ "status": "ok" }

On this page