RelayPointdocs

Getting started

Quickstart

Create a test key, make your first call, then switch to live.

1. Create a test key

Sign up, then open Dashboard → API keys and create a test key. Test keys start with rp_test_ and never charge your wallet. The full key is shown once: store it in your server's environment, never in browser code.

Text
export RELAYPOINT_API_KEY="rp_test_…"

2. Make your first call

Chat uses the OpenAI request format, so existing OpenAI client code works with model set to a RelayPoint product id.

curl https://api.relaypoints.online/v1/chat/completions \
  -H "Authorization: Bearer $RELAYPOINT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "rp/text-fast",
    "messages": [{ "role": "user", "content": "Say hello in French." }]
  }'

The response has the familiar shape, plus usage.cost_usd with what the call cost (a decimal string; always "0.000000" with a test key):

JSON
{
  "id": "chatcmpl-…",
  "object": "chat.completion",
  "created": 1793232000,
  "model": "rp/text-fast",
  "choices": [
    { "index": 0, "message": { "role": "assistant", "content": "Bonjour !" }, "finish_reason": "stop" }
  ],
  "usage": { "prompt_tokens": 14, "completion_tokens": 4, "total_tokens": 18, "product": "rp/text-fast", "units": 0.018, "unit": "1k_tokens", "cost_usd": "0.000000" }
}

3. Go live

  1. Top up your AI Credits wallet in Dashboard → Credits & billing. See Credits, billing & KYC for the verification rules.
  2. Create a live key (rp_live_…) and replace the test key on your server.
  3. Optionally add a webhook endpoint for job.completed and balance.low — see Webhooks.