AI on demand: Apertus

From MediaWiki
Revision as of 11:20, 30 March 2026 by Sst-yde (talk | contribs) (Created page with "== Calling the model == <syntaxhighlight lang="bash"> # Set your personal key STONEY_KEY=sk-... # Set the desired model MODEL_ID=swiss-ai/Apertus-70B-Instruct-2509 curl -s https://llm.stoney-cloud.com/v1/chat/completions \ -H "Authorization: Bearer $STONEY_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "swiss-ai/Apertus-70B-Instruct-2509", "messages": [ {"role": "user", "content": "Say hello"} ], "max_tokens": 10 }' | jq . <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Calling the model

# Set your personal key
STONEY_KEY=sk-...

# Set the desired model
MODEL_ID=swiss-ai/Apertus-70B-Instruct-2509

curl -s https://llm.stoney-cloud.com/v1/chat/completions \
  -H "Authorization: Bearer $STONEY_KEY" \
  -H "Content-Type: application/json"   \
  -d '{
    "model": "swiss-ai/Apertus-70B-Instruct-2509",
    "messages": [
      {"role": "user", "content": "Say hello"}
    ],
    "max_tokens": 10
  }' | jq .