relai docs
Build

Gateway

An OpenAI-compatible proxy. Point any compatible client at it; your balance meters per token.

Base URL

https://api.tryrelai.xyz/api/v1/gateway/v1

Authentication

Create keys in your account. Keys start with relai_sk_, are hashed at rest, and are passed as Bearer tokens. Each key is tied to your wallet and balance.

Billing

Usage is metered per token at your locked rate. When a balance hits zero, requests return 402 Payment Required — top up to continue.

curl https://api.tryrelai.xyz/api/v1/gateway/v1/chat/completions \
  -H "Authorization: Bearer relai_sk_..." \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek/deepseek-chat","messages":[{"role":"user","content":"Hello"}]}'

Routable models

Pass any of these as the model field. Rates and the live catalogue are also returned by GET /v1/models.

ModelAPI stringContext
DeepSeek-V3deepseek/deepseek-chat64K
Llama 3.3 70Bmeta-llama/llama-3.3-70b-instruct128K
Qwen2.5 72Bqwen/qwen-2.5-72b-instruct128K
Mistral Largemistralai/mistral-large128K
GPT-4oopenai/gpt-4o128K
Gemini 1.5 Progoogle/gemini-pro-1.52M
Claude 3.5 Sonnetanthropic/claude-3.5-sonnet200K