GateArb provides an OpenAI-compatible API. Change your base URL and API key — everything else stays the same.
Sign in to your dashboard, go to the API Keys section, and create a key. Copy it immediately and store it securely.
curl https://api.gatearb.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "deepseek-chat",
"messages": [{"role": "user", "content": "Hello!"}]
}'
from openai import OpenAI
client = OpenAI(
base_url="https://api.gatearb.com/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="deepseek-chat",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.gatearb.com/v1",
apiKey: "YOUR_API_KEY"
});
const response = await client.chat.completions.create({
model: "deepseek-chat",
messages: [{ role: "user", content: "Hello!" }]
});
console.log(response.choices[0].message.content);
OpenAI-compatible chat completions. Auto-routes to the cheapest healthy model.
| Parameter | Type | Description |
|---|---|---|
model | string | deepseek-chat, gpt-4o, claude-3-haiku, etc. |
messages | array | Array of {role, content} objects |
max_tokens | int | Max tokens to generate (optional) |
temperature | float | 0-2 (optional) |
stream | bool | Enable SSE streaming (optional) |
Available models and pricing.
Profile, balance, and token quota.
List your API keys.
Create key. Body: {"name": "my-key"}
Revoke key. Body: {"key_id": 123}
Tokens are deducted from your balance. See Pricing for current rates.