First Request

About the model field: use the call name shown on the Model Plaza detail page, preferring the stable alias. Do not assemble it from display names yourself.

Call Examples

curl https://www.silvamux.com/api/v1/chat/completions \
  -H "Authorization: Bearer $SILVAMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m2.5",
    "messages": [
      {"role": "user", "content": "Introduce yourself in one sentence"}
    ]
  }'

Streaming

Set stream: true to get a streaming response (SSE):

curl https://www.silvamux.com/api/v1/chat/completions \
  -H "Authorization: Bearer $SILVAMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m2.5",
    "messages": [{"role": "user", "content": "Write a short poem"}],
    "stream": true
  }'

The streaming response is Server-Sent Events: each event's data field carries one JSON chunk. You may eventually receive a usage chunk with an empty choices, after which the server closes the connection. Treat the stream end as completion — do not rely solely on data: [DONE].

Using the Anthropic Format

If you are more familiar with the Anthropic Messages API, SilvaMux supports it as well:

curl https://www.silvamux.com/api/v1/messages \
  -H "Authorization: Bearer $SILVAMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-m2.5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

See Text Generation Models for more API formats.