OpenAI 兼容路由 / 流式转发 / Key 亲和切换
Grok API 中转服务器
总请求数
6
该服务对外暴露 /v1/* OpenAI 风格路由,内部请求转发到 xAI/Grok,并在某个 Key 被判定为额度耗尽后自动切到下一个槽位,同时持续盯住新的 Key 以提高缓存亲和性。
当前活动槽位:槽位 #4 (refresh-2-slot-4)
示例中的 YOUR_PROXY_API_KEY 请替换为你的代理访问令牌。
当前模型
grok-3grok-3-minigrok-4-0709grok-4-1-fast-non-reasoninggrok-4-1-fast-reasoninggrok-4-fast-non-reasoninggrok-4-fast-reasoninggrok-4.20-0309-non-reasoninggrok-4.20-0309-reasoninggrok-4.20-multi-agent-0309grok-code-fast-1grok-imagine-imagegrok-imagine-image-progrok-imagine-video
轮换状态
被判定为额度耗尽的 Key 会被冻结到下一个刷新窗口。
- 当前没有已标记为耗尽的 Key。
curl: 模型列表
curl https://api.wenshublog.cn/v1/models \ -H "Authorization: Bearer YOUR_PROXY_API_KEY" \ -H "Content-Type: application/json"
curl: Responses API
curl https://api.wenshublog.cn/v1/responses \
-H "Authorization: Bearer YOUR_PROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.20-0309-reasoning",
"input": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "你好呀……"}
],
"store": false,
"stream": true
}'
curl: 生图
curl https://api.wenshublog.cn/v1/images/generations \
-H "Authorization: Bearer YOUR_PROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-image",
"prompt": "A cinematic robot reading a book in a bamboo forest at sunrise",
"resolution": "1k"
}'
curl: 生视频
curl https://api.wenshublog.cn/v1/videos/generations \
-H "Authorization: Bearer YOUR_PROXY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-imagine-video",
"prompt": "A paper airplane gliding over a calm lake at golden hour, cinematic motion"
}'
curl https://api.wenshublog.cn/v1/videos/VIDEO_REQUEST_ID \
-H "Authorization: Bearer YOUR_PROXY_API_KEY" \
-H "Content-Type: application/json"