XTCER API RELAY
Multi-Provider AI Gateway
Active Keys
-
Running
Providers
-
Connected
Today Requests
-
24h
Total Keys
-
All
Available Providers
Provider Configuration
| Name | Base URL | Models | Free | Status |
|---|
API Keys
| Name | Provider | Key | Weight | Requests | Status | Actions |
|---|
Agent Pools
Use X-Pool header to select pool
Usage Examples
# Tool Calling Pool
curl -X POST /api/v1/chat/completions \
-H "X-Pool: tool_calling" \
-d '{"model":"groq/llama-3.3-70b-versatile","messages":[...],"tools":[...]}'
# Free Pool
curl -X POST /api/v1/chat/completions \
-H "X-Pool: free" \
-d '{"model":"gemini/gemini-1.5-flash","messages":[...]}'
# Long Text Pool
curl -X POST /api/v1/chat/completions \
-H "X-Pool: long_text" \
-d '{"model":"nvidia/meta/llama-3.1-405b-instruct","messages":[...]}'
curl -X POST /api/v1/chat/completions \
-H "X-Pool: tool_calling" \
-d '{"model":"groq/llama-3.3-70b-versatile","messages":[...],"tools":[...]}'
# Free Pool
curl -X POST /api/v1/chat/completions \
-H "X-Pool: free" \
-d '{"model":"gemini/gemini-1.5-flash","messages":[...]}'
# Long Text Pool
curl -X POST /api/v1/chat/completions \
-H "X-Pool: long_text" \
-d '{"model":"nvidia/meta/llama-3.1-405b-instruct","messages":[...]}'
API Documentation
# Base URL
https://your-domain.workers.dev
# Authentication
Authorization: Bearer YOUR_API_KEY
# Chat Completions (OpenAI Compatible)
POST /api/v1/chat/completions
# Headers
X-Provider: groq|nvidia|openrouter|glm|gemini|...
X-Pool: tool_calling|long_text|reasoning|code|fast|free|chinese|general
X-Account-ID: (for Cloudflare Workers AI only)
# Request Body
{
"model": "groq/llama-3.3-70b-versatile",
"messages": [{"role":"user","content":"Hello"}],
"stream": false,
"temperature": 0.7,
"max_tokens": 4096,
"tools": [{"type":"function","function":{...}}]
}
# Supported Providers
openrouter, groq, nvidia, cerebras, glm, modelscope,
cloudflare, github, gemini, sambanova, together,
fireworks, mistral, huggingface, deepseek, openzen, freellm
# Get Models
GET /api/v1/models
# Health Check
GET /api/health
https://your-domain.workers.dev
# Authentication
Authorization: Bearer YOUR_API_KEY
# Chat Completions (OpenAI Compatible)
POST /api/v1/chat/completions
# Headers
X-Provider: groq|nvidia|openrouter|glm|gemini|...
X-Pool: tool_calling|long_text|reasoning|code|fast|free|chinese|general
X-Account-ID: (for Cloudflare Workers AI only)
# Request Body
{
"model": "groq/llama-3.3-70b-versatile",
"messages": [{"role":"user","content":"Hello"}],
"stream": false,
"temperature": 0.7,
"max_tokens": 4096,
"tools": [{"type":"function","function":{...}}]
}
# Supported Providers
openrouter, groq, nvidia, cerebras, glm, modelscope,
cloudflare, github, gemini, sambanova, together,
fireworks, mistral, huggingface, deepseek, openzen, freellm
# Get Models
GET /api/v1/models
# Health Check
GET /api/health