RelayPointdocs

Products

Use your own Anthropic or OpenAI key

Run Claude or OpenAI models through RelayPoint on your own key: setup, routing, the provider field, errors and the platform fee.

RelayPoint's own models are open, commercially licensed models paid from your prepaid credits. Claude and OpenAI models run only on your own key (bring your own key, BYOK): you are Anthropic's or OpenAI's customer, they bill the model usage to you directly, and RelayPoint charges a small platform fee for routing, fallback, logs, sub-accounts, mark-ups and reporting.

1. Add your key

  1. Turn on two-factor authentication (it is required to add or replace a key).
  2. Open Dashboard → Settings → Your AI provider keys as an owner or admin.
  3. Paste your Anthropic (sk-ant-…) or OpenAI (sk-…) key and your 2FA code, then Test key. The test lists the provider's models: no tokens are used.
  4. The key is stored encrypted and never shown again; only its last 4 characters are. Every change is in your audit log.

2. Choose who serves each product

ProductWithout a keyWith your key
rp/text-proRelayPoint open models (credits)Claude or OpenAI flagship-class model
rp/text-fastRelayPoint open models (credits)Claude or OpenAI small, fast model
rp/text-maxbyok_requiredClaude Opus or the OpenAI flagship

In Model routing on the same page, pick RelayPoint open models, Claude or OpenAI for each product. A request can override it with the provider field: "relaypoint", "anthropic" or "openai". GET /v1/models shows which products accept your key (byok) and tools (supports_tools).

curl https://api.relaypoints.online/v1/chat/completions \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "rp/text-max",
    "provider": "anthropic",
    "messages": [{ "role": "user", "content": "Summarise this contract in five bullet points." }],
    "max_tokens": 800
  }'

Tool calling, response_format: json_schema and streaming work the same way as on RelayPoint models (tools need stream: false). With a test key (rp_test_…) your provider is never called: the sample model answers in the same shapes and nothing is charged.

3. Billing and the platform fee

RelayPoint does not charge model usage on your key. Each request is charged a platform fee from your wallet: a percentage of its list-equivalent cost (default 5 %) with a minimum per request (default $0.0005). usage shows how it was billed:

JSON
"usage": {
  "prompt_tokens": 1820, "completion_tokens": 410, "total_tokens": 2230,
  "product": "rp/text-max", "units": 2.23, "unit": "1k_tokens",
  "cost_usd": "0.000774",
  "billing_mode": "byok",
  "provider": "anthropic",
  "platform_fee_usd": "0.000774",
  "list_equivalent_cost_usd": "0.015480"
}
  • billing_mode: byok (your key) or credits (RelayPoint open models).
  • list_equivalent_cost_usd: roughly what the provider will bill you, at its public list prices. Use it to price your own customers.
  • cost_usd: what RelayPoint charged (the platform fee, plus a reseller's mark-up for sub-accounts).
  • Usage, request logs and the CSV exports show the same fields.

4. Errors and fallback

JSON
{ "error": { "code": "byok_required", "message": "No Claude (Anthropic) key is set for this account. Add one on the provider keys page.", "request_id": "req_…", "provider": "anthropic", "keys_url": "…/dashboard/settings#provider-keys" } }
{ "error": { "code": "byok_key_invalid", "message": "Your Claude (Anthropic) key was refused (HTTP 401). Check or replace it on the provider keys page.", "request_id": "req_…", "provider": "anthropic", "keys_url": "…" } }
  • byok_required (403): the product needs a key, or no key is set for the provider you asked for.
  • byok_key_invalid (424): your provider refused the key (401/403). RelayPoint never switches to its own models silently; replace or fix the key.
  • Your provider returned 429 or 5xx: upstream_unavailable (503) with provider_status. If you turn on Fall back to RelayPoint models when my provider is unavailable, the request is answered by RelayPoint open models from your credits instead, and usage.fallback_from says so. rp/text-max has no fallback.

5. Resellers and sub-accounts

A reseller's keys serve its sub-accounts by default (switch Allow my sub-accounts to use our keys off to stop it). A sub-account can add its own key, which then wins for that sub-account. Mark-ups apply to sub-account requests as usual, computed on list_equivalent_cost_usd, so the profit report stays right; the report also shows each customer's BYOK requests and their list-equivalent cost.