AI on demand: Qwen/Qwen3-Coder-Next: 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=Qwen/Qwen3-Coder-Next # Set your prompt: PROMPT='Hello.' # Set maximum amount of tokens: MAX_TOKENS=100 curl https://llm.stoney-cloud.com/v1/chat/completions \ --silent --fail --show-error \ --header "Authorization: Bearer $STONEY_KEY" \ --header 'Content-Type: application/json' \ --data '{ "...") |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 67: | Line 67: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:AI on | [[Category: AI on Demand]] | ||
[[Category: General purpose models]] | |||
Latest revision as of 11:37, 18 October 2026
Calling the model
# Set your personal key:
STONEY_KEY=sk-...
# Set the desired model:
MODEL=Qwen/Qwen3-Coder-Next
# Set your prompt:
PROMPT='Hello.'
# Set maximum amount of tokens:
MAX_TOKENS=100
curl https://llm.stoney-cloud.com/v1/chat/completions \
--silent --fail --show-error \
--header "Authorization: Bearer $STONEY_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "'"$MODEL"'",
"messages": [
{"role": "user", "content": "'"$PROMPT"'"}
],
"max_tokens": '"$MAX_TOKENS"'
}' \
| jq
Example output:
{
"id": "chatcmpl-bb307cafee7eb3bd",
"object": "chat.completion",
"created": 1778156615,
"model": "Qwen/Qwen3-Coder-Next",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hi there! How can I help you today? 😊",
"refusal": null,
"annotations": null,
"audio": null,
"function_call": null,
"tool_calls": [],
"reasoning": null
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null,
"token_ids": null
}
],
"service_tier": null,
"system_fingerprint": null,
"usage": {
"prompt_tokens": 10,
"total_tokens": 23,
"completion_tokens": 13,
"prompt_tokens_details": null
},
"prompt_logprobs": null,
"prompt_token_ids": null,
"kv_transfer_params": null
}