AI on demand: Apertus: Difference between revisions
Jump to navigation
Jump to search
(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 . <...") |
|||
| Line 15: | Line 15: | ||
{"role": "user", "content": "Say hello"} | {"role": "user", "content": "Say hello"} | ||
], | ], | ||
"max_tokens": | "max_tokens": 100 | ||
}' | jq . | }' | jq . | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:AI on demand]] | [[Category:AI on demand]] | ||
Revision as of 11:27, 30 March 2026
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": 100
}' | jq .