Quickstart

Connect to Relay in five minutes

Send requests to the Relay multi-model gateway using routes such as relay-mini. Prepaid credits meter every call; Relay records usage in your ledger.

01

Create a key

02

Send your first request

03

Check the logs

Sample key

sk-relay-v1_xxxxxxxxxxxxxxxxxxxxxxxx

Create API key
curl https://proxystacks.com/v1/chat/completions \
  -H "Authorization: Bearer sk-relay-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "relay-mini",
    "messages": [
      { "role": "user", "content": "Hello, Relay!" }
    ],
    "stream": true
  }'

Base URL

https://proxystacks.com/v1

Default Model

relay-mini

Authentication

Every model request must carry a Bearer token in the Authorization header. Relay stores only the SHA-256 hash of your API key.

Streaming

Set stream: true to get a standard SSE data stream. Credit deduction completes automatically once the stream ends.

Response format

Non-streaming responses use a standard JSON response format, plus a Relay request ID in the response header for easy log lookup.

Run into trouble? [email protected]