AI on demand: deepseek-ai/DeepSeek-V4.1-Flash-1017
Jump to navigation
Jump to search
Calling the model
# Set your personal key:
STONEY_KEY=sk-...
# Set the desired model:
MODEL=deepseek-ai/DeepSeek-V4.1-Flash-1017
# 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-95650f88ce026259",
"object": "chat.completion",
"created": 1795784187,
"model": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?",
"refusal": null,
"audio": null,
"function_call": null,
"reasoning": "The user just said \"Hello.\" This is a with no prior context. I should respond warmly and ask how I can help. Keep it brief and friendly."
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null,
"token_ids": null,
"routed_experts": null,
"weight_versions": null
}
],
"service_tier": null,
"system_fingerprint": "vllm-0.34.0rc1.dev1039+gd32e716bc-dp6-ep-9afe8900",
"usage": {
"prompt_tokens": 32,
"total_tokens": 75,
"completion_tokens": 43,
"prompt_tokens_details": {
"cached_tokens": 0,
"created_cache_tokens": 0,
"multimodal_tokens": null
},
"completion_tokens_details": {
"reasoning_tokens": 32
}
},
"prompt_logprobs": null,
"prompt_token_ids": null,
"prompt_text": null,
"kv_transfer_params": null,
"ec_transfer_params": null,
"metrics": null
}