Volcengine Compatible

Compatible with the Volcengine Ark OpenAI-compatible API (v3 protocol), usable for Doubao Seed series models and other models that follow the Volcengine v3 protocol.

POST/api/v3/chat/completions

Volcengine 兼容

Bearer API KeyUse the Authorization: Bearer sk_live_... header; x-api-key is also supported.
Confirm the model call name firstFirst filter models that support this endpoint format on the Models page, then open a model detail page to copy its call name. Your account's final availability also depends on organization permissions.

Request structure

The section below confirms the method, URL and authentication scheme. It is an HTTP structure snippet, not a standalone runnable example.

HTTP
POST https://www.silvamux.com/api/v3/chat/completions
Authorization: Bearer $SILVAMUX_API_KEY
Content-Type: application/json

Request body

application/json · OpenAIChatRequest · Required

FieldTypeRequiredDescription
max_tokensintegerNo
messagesarray<Message>Yes
messages.contentstring | array<FreeFormObject>Yes
messages.rolestring (system | user | assistant | tool)Yes
modelstringYesSilvaMux 模型 id 或 alias。
streambooleanNoDefault: false
temperaturenumberNo
toolsarray<FreeFormObject>No

Response

200OpenAI Chat JSON 或 SSE 响应。

application/json · OpenAIChatResponse

FieldTypeRequiredDescription
choicesarray<FreeFormObject>Yes
idstringYes
modelstringNo
objectstringNo
usageFreeFormObjectNo

defaultVolcengine 兼容错误。

application/json · VolcengineError

FieldTypeRequiredDescription
errorFreeFormObjectNo

Examples

curl https://www.silvamux.com/api/v3/chat/completions \
  -H "Authorization: Bearer $SILVAMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "doubao-seed-2.0-pro",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

https://www.silvamux.com/api/v3 is the /api/v3 path under the access domain, routing to /api/v3/chat/completions. Authentication uses the SilvaMux API key, not Volcengine AK/SK.