SilvaMux exposes several standard protocol entries per model (openai / anthropic / responses / gemini). Which protocols a model exposes is shown on its model detail page; when a protocol differs from the upstream line's, the gateway transforms automatically. Projects using the OpenAI SDK should default to the OpenAI Chat Completions entry.
The endpoints below accept the corresponding protocol's request format and preserve the matching response and error structures — ideal for official SDKs, existing code migration, or field-level pass-through.
Compatible with the OpenAI Responses API; passthrough-only for models with a native Responses line (e.g. the codex series)
Gemini
POST /api/v1beta/models/{model_action}
Native Gemini v1beta compatibility; Gemini-series models only
Legacy compatibility entries (/api/v0/chat/completions, /api/router/v1/messages, /api/paas/v4/chat/completions, /api/anthropic/v1/messages, /api/v1/gemini/v1beta/...) have been removed — use the standard endpoints above.
Compatible with the OpenAI Responses API; for supported models (e.g. the codex series):
POST/api/v1/responses
OpenAI Responses
🔑
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://silvamux.io/api/v1/responses
Authorization: Bearer $SILVAMUX_API_KEY
Content-Type: application/json
Required. Model call name (id or alias), e.g. minimax-m2.5, doubao-seed-2.0-pro
messages
array
Required. Message list, same shape as OpenAI (role + content)
stream
boolean
Whether to stream the response; default false
temperature
number
Sampling temperature; default 1.0
max_tokens
integer
Maximum generated tokens
Field structures differ per vendor protocol. First filter the Model Plaza for models supporting your target format, then copy the call name from the detail page into model.
Set stream: true to get a streaming response (SSE). The response is text/event-stream, each event starting with data: . You may eventually receive a usage chunk with an empty choices, after which the server closes the connection; do not rely solely on data: [DONE] to detect completion. Anthropic-format streaming follows the Anthropic SSE specification.