跳转到主要内容
指南

快速入门

通过 ModelGate 兼容 API 发起第一个请求。

发起第一个请求

从目录中选择模型,发送对话请求;客户端支持服务器发送事件时,可使用流式响应。

curl https://your-gateway.example/v1/chat/completions \
  -H "Authorization: Bearer $MODELGATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-4o-mini","messages":[{"role":"user","content":"Hello"}]}'
查看集成