| 端点 | {resource}.openai.azure.com/openai/deployments/{deployment}/chat/completions |
|---|---|
| 必填 | api-version 查询参数 |
| 鉴权 | api-key 头或 Entra ID Token |
| 优势 | 区域数据驻留、企业网络与配额管理 |
最小调用(curl)
最小调用(curl)
curl -s "https://RESOURCE.openai.azure.com/openai/deployments/DEPLOYMENT/chat/completions?api-version=2024-10-21" -H "api-key: $AZURE_OPENAI_KEY" -H "Content-Type: application/json" -d '{"messages":[{"role":"user","content":"你好"}]}'在 Azure 门户先创建部署:同一底层模型可以有多个部署,用于隔离配额与灰度;模型能力清单以 Azure 官方页为准。