地域 | region id | Base URL |
|---|---|---|
华北 2 (北京) | cn-beijing | https://operator.las.cn-beijing.volces.com/api/v1 |
华东 2 (上海) | cn-shanghai | https://operator.las.cn-shanghai.volces.com/api/v1 |
支持API Key 鉴权方式。
已创建 API Key,详情请参见API Key 管理。
API Key 签名鉴权方式要求在 HTTP 请求 header 中按如下方式添加 Authorization header:
Authorization: Bearer <ARK_API_KEY>
curl https://operator.las.cn-beijing.volces.com/api/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $ARK_API_KEY" \ -d $'{ "messages": [ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "hello", "role": "user" } ], "model": "doubao-1-5-pro-32k-250115", "stream": true }'