Guides
Reasoning effort
Discover supported effort levels and choose a budget for the task.
Read optional reasoning output
JavaScript
const message = reply.choices[0].message;
const answer = message.content ?? '';
const reasoning = message.reasoning_content ?? '';When the model supplies reasoning text, Chat Completions returns it separately. In a stream the optional field is choices[].delta.reasoning_content. Render the final answer from content even if no reasoning text arrives. On routes supporting off, none is also accepted by the provider.
Check the model
cURL
curl "https://kavren.dev/v1/models/deepseek-v4.1-flash-fast" \
-H "Authorization: Bearer $KAVREN_API_KEY"Read reasoning_efforts from the model record. Send one of those strings. Omitting the field leaves the decision to the model. The list can differ even between models in the same family.
Set the effort
cURL
curl "https://kavren.dev/v1/chat/completions" \
-H "Authorization: Bearer $KAVREN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash-fast",
"messages": [
{
"role": "user",
"content": "Reply with the name of one planet."
}
],
"max_tokens": 512,
"reasoning_effort": "low"
}'For short classifications, start with low effort. For multi-step tasks, allow more output tokens and compare latency and answer quality. The effort setting alone does not specify a token count.