Guard issues its own universal gd-… keys. The gateway validates the key, selects the family from the exact model id, and deducts Claude, Kimi, Composer or Grok usage from the key's one shared balance.
| Parameter | Value |
|---|---|
| Base URL | https://api.guardrelay.ai |
| API Key | gd-… from @subscribe_ai_bot |
| Dashboard | app.guardrelay.ai/ |
gd-…https://api.guardrelay.ai/v1/messages/v1/chat/completions/v1/responsesmodelFor Claude, the gateway supports Anthropic- and OpenAI-compatible formats. Choose the endpoint your client expects.
| Endpoint | Format | Who uses it |
|---|---|---|
/v1/messages | Anthropic Messages | Claude Code, Anthropic SDK, curl |
/v1/chat/completions | OpenAI Chat | OpenAI SDK, most clients |
/v1/responses | OpenAI Responses | Codex (newer versions) |
The key and the address are shared by every family. The gateway picks the family from the exact model id in the model field, so Kimi needs no separate key and no separate address.
| What you configure | Value for Kimi |
|---|---|
| OpenAI SDK Base URL | https://api.guardrelay.ai/v1 |
| Header | Authorization: Bearer gd-… |
| Surfaces | all three: plain POST /v1/chat/completions, the Anthropic Messages protocol and the Responses protocol |
| Models | k3, k3-256k, kimi-for-coding, kimi-for-coding-highspeed |
curl -X POST https://api.guardrelay.ai/v1/chat/completions \
-H "Authorization: Bearer gd-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "k3",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 128
}'- Key check: limit, validity, revocation.
- Route to Claude, Kimi, Composer or Grok from the exact model id.
- Deduct tokens from the shared key credit.
export ANTHROPIC_BASE_URL="https://api.guardrelay.ai"
export ANTHROPIC_AUTH_TOKEN="gd-your-key-from-bot"
claude$env:ANTHROPIC_BASE_URL = "https://api.guardrelay.ai"
$env:ANTHROPIC_AUTH_TOKEN = "gd-your-key-from-bot"
claudeThese models answer on all three surfaces. The endpoint follows your client, the model follows the model field.
| Endpoint | Request fields |
|---|---|
/v1/messages | model, messages, system, max_tokens, stream, tools |
/v1/chat/completions | model, messages, max_tokens or max_completion_tokens, stream, tools |
/v1/responses | model, input, instructions, max_output_tokens, stream, tools |
The key and the address are the same as for Claude: these models need no separate signup and no separate address. The gateway picks the family from the exact id in the model field, and the key keeps one balance for every family.
curl -X POST https://api.guardrelay.ai/v1/chat/completions \
-H "Authorization: Bearer gd-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "cursor-grok-4.6-low",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 128
}'curl -X POST https://api.guardrelay.ai/v1/chat/completions \
-H "Authorization: Bearer gd-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "composer-2.5",
"messages": [{"role": "user", "content": "Hello!"}],
"max_tokens": 128
}'