Mandarin API

Console

Manage authentication, API keys, and translation requests.

Use this page to sign in, generate keys, test requests, and review endpoint usage.

Open login

Not signed in.

Runtime Bun + Hono
Security Session + key auth
Limits Auth and API throttling

Identity

Session details

Keys

Manage API keys

No key created yet.

Request test

Translation preview

No request yet.

Developer docs

Quick reference

Auth

POST /api/register, /api/login, /api/logout

Keys

GET/POST /api/keys and POST /api/keys/:id/revoke

Translate

POST /api/translate with x-api-key and JSON body

curl -X POST "$BASE/api/translate" \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"How are you?"}'
Auth rate limit 8 requests / 15 min / IP
API rate limit 120 requests / min / key