Skip to content
Veil

Reasoning

Which model ids reason and how to set the effort.

Reasoning is chosen by the model id first. Only one id has an effort setting.

Model idReasoningEffort
deepseek-v4.1-flash-1017-abliteratedAlways offIgnored, whatever you send
deepseek-v4.1-flash-1017-abliterated:thinkingAlways onlow, high or max. Default high.
All other modelsNo controlIgnored

Setting the effort

On /v1/chat/completions, send reasoning_effort. The nested form "reasoning": {"effort": "..."} is also read.

{
  "model": "deepseek-v4.1-flash-1017-abliterated:thinking",
  "reasoning_effort": "max",
  "max_tokens": 8000,
  "messages": [{"role": "user", "content": "Prove that the square root of 2 is irrational."}]
}

On /v1/messages, send output_config.effort. A top-level reasoning_effort is also read. The thinking parameter is dropped.

{
  "model": "deepseek-v4.1-flash-1017-abliterated:thinking",
  "output_config": { "effort": "low" },
  "max_tokens": 8000,
  "messages": [{"role": "user", "content": "Prove that the square root of 2 is irrational."}]
}

Things to know

  • A value that is not in the model's reasoning_efforts list is not an error. The default is used instead.
  • Reasoning tokens are billed as output tokens and count against max_tokens. Leave room for the answer when you set it.
  • The plain id is the cheaper and faster choice. It cannot be switched to reasoning with a parameter. Change the model id.
  • GET /v1/models reports this per model in capabilities.reasoning, reasoning_efforts and default_reasoning_effort.
Reasoning | Docs | Veil