AI on demand: deepseek-ai/DeepSeek-V4-Flash-0731
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-Flash-0731
# 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-a0642a07d24aba3c",
"object": "chat.completion",
"created": 1788358946,
"model": "deepseek-ai/DeepSeek-V4-Flash-0731",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?",
"refusal": null,
"annotations": null,
"audio": null,
"function_call": null,
"reasoning": "We need answer hello. Need maybe provide greeting. Simple."
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null,
"token_ids": null,
"routed_experts": null
}
],
"service_tier": null,
"system_fingerprint": "vllm-0.26.1rc0+infernal.invocation.r2.vllm344438d.b12x1584743.fi1ac6942.cu132.20260812-tp4-27dc2d1f",
"usage": {
"prompt_tokens": 85,
"total_tokens": 108,
"completion_tokens": 23,
"prompt_tokens_details": {
"cached_tokens": 0,
"created_cache_tokens": 0,
"multimodal_tokens": null
}
},
"prompt_logprobs": null,
"prompt_token_ids": null,
"prompt_text": null,
"kv_transfer_params": null,
"ec_transfer_params": null,
"metrics": null
}