Route Matrix
model = "grok-4" -> x.ai
ai-gateway 将多个上游能力收敛为一个统一入口。客户端只要发起标准 OpenAI 请求,网关就会按 model 自动路由、替换上游授权,并稳定透传流式与非流式响应。
[00:01.19] receive POST /v1/chat/completions
[00:01.19] extract model "gpt-5"
[00:01.20] resolve provider openai
[00:01.22] stream passthrough started
cp config.yaml.example config.yaml go mod tidy go run ./cmd/server curl http://127.0.0.1:8080/v1/models -H "Authorization: Bearer sk-gateway"