Reasoning

How much the model thinks before it answers, and where its reasoning comes back.

On this page

Both models can reason before they answer. One request field, reasoning_effort, sets how much.

Set reasoning_effort

ValueAlso acceptedWhat it does
left outThe default level.
nonedisabledNo reasoning: the model answers straight away.
lowminimalA little reasoning. Faster and uses fewer output tokens; good for lookups, rewrites and high-volume jobs.
mediumThe standard level.
highmaxThe most reasoning, for hard analysis and multi-step plans.

Values are read in any letter case. Any other value is treated as left out.

curl

curl https://api.dipoleml.com/v1/chat/completions \  -H "Authorization: Bearer $RAVEN_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "Raven Flash",    "reasoning_effort": "low",    "messages": [{"role": "user", "content": "Reply with exactly: DOCS-OK"}],    "max_tokens": 200  }'

python

import osfrom openai import OpenAIclient = OpenAI(    base_url="https://api.dipoleml.com/v1",    api_key=os.environ["RAVEN_API_KEY"],)resp = client.chat.completions.create(    model="Raven Flash",    reasoning_effort="low",    messages=[{"role": "user", "content": "Reply with exactly: DOCS-OK"}],    max_tokens=200,)print(resp.choices[0].message.content)

Read the reasoning

The reasoning comes back beside the answer, never inside content. It is in one of three fields of the message (or of each delta in a stream): reasoning_content, reasoning, or reasoning_details, a list of parts that each hold text or summary. Read whichever is present and treat them as one channel.

response (trimmed, shape)
{  "choices": [{    "message": {      "role": "assistant",      "content": "DOCS-OK",      "reasoning_content": "The user wants an exact reply..."    },    "finish_reason": "stop"  }],  "usage": {    "prompt_tokens": 412,    "completion_tokens": 38,    "total_tokens": 450  }}

In a stream, reasoning deltas usually arrive before the first content delta. The reasoning is plain text: show it as written, not as Markdown. It is part of the answer and is handled like the rest of your content, under the Privacy Policy.

Budget for it

Reasoning tokens are output tokens. They count toward max_tokens and are billed at the output price. With a small max_tokens, the model can spend it all reasoning and stop with finish_reason: "length" and a short or empty answer. When you keep max_tokens small, set reasoning_effort to "low" or "none".