relai docs
Build

API

REST endpoints for auth, dashboard, top-ups, and the gateway.

Base URL: https://api.tryrelai.xyz

Auth

MethodPathAuthDescription
GET/api/v1/auth/nonce/:walletGet sign-in message
POST/api/v1/auth/loginVerify signature, issue JWT
GET/api/v1/configPublic config (mint, treasury, models)
GET/healthService health

Dashboard

MethodPathAuthDescription
GET/api/v1/dashboard/JWTKeys, balance, usage
POST/api/v1/dashboard/api-keysJWTCreate gateway key
POST/api/v1/dashboard/api-keys/:id/revokeJWTRevoke a key

Top-ups

MethodPathAuthDescription
POST/api/v1/topup/intentJWTCreate order, get payment info
POST/api/v1/topup/verifyJWTCheck chain, credit once
GET/api/v1/topup/presetsJWTAmount presets

Gateway

MethodPathAuthDescription
ANY/api/v1/gateway/v1/*API keyOpenAI-compatible proxy
GET/api/v1/gateway/v1/modelsAPI keyModel catalogue
POST/api/v1/gateway/v1/chat/completionsAPI keyMetered chat completions