Documentation Center

RonFin TokenHub developer docs

Guides for downstream customers using RonFin API keys, OpenAI-compatible endpoints, model allowlists, billing limits, and support workflows.

RF OpenAI endpoint

https://ronfin.top/api/v1

Supported route

POST /api/v1/chat/completions

MVP integration steps

  1. RF operations creates a downstream customer config with API key, model allowlist, markup, and monthly RMB limit.
  2. Customer replaces only the OpenAI base URL and Authorization key.
  3. RF forwards to Tencent Cloud TokenHub with the supplier key stored only on the server.
  4. Non-streaming calls are billed from upstream usage; streaming calls are captured when usage is present or marked for reconciliation.
cURL sample
curl https://ronfin.top/api/v1/chat/completions \
  -H "Authorization: Bearer sk_rf_your_customer_key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v3.1",
    "messages": [{"role": "user", "content": "Hello through RonFin TokenHub"}],
    "temperature": 0.3
  }'

Error policy

400 unsupported_model / model_not_allowed

401 invalid_customer_key

402 monthly_limit_exceeded

503 supplier_not_configured