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.
| Model | API string | Context |
|---|---|---|
| DeepSeek-V3 | deepseek/deepseek-chat | 64K |
| Llama 3.3 70B | meta-llama/llama-3.3-70b-instruct | 128K |
| Qwen2.5 72B | qwen/qwen-2.5-72b-instruct | 128K |
| Mistral Large | mistralai/mistral-large | 128K |
| GPT-4o | openai/gpt-4o | 128K |
| Gemini 1.5 Pro | google/gemini-pro-1.5 | 2M |
| Claude 3.5 Sonnet | anthropic/claude-3.5-sonnet | 200K |