Grok Gateway

OpenAI 兼容反向代理,基于 Vercel Edge Runtime,支持 SSE 流式输出与分片传输。

Base URL

https://your-app.vercel.app/v1

访问口令

public

默认模型

xai/grok-4.1-fast

调用示例

curl -N https://your-app.vercel.app/v1/chat/completions \
  -H "Authorization: Bearer public" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4.1-fast",
    "stream": true,
    "messages": [{"role":"user","content":"你好"}]
  }'