Extended thinking gives you visibility into the model's step-by-step reasoning process for complex problems that require careful analysis.
When extended thinking is enabled, the model takes time to reason through the problem before providing a final answer. You can see the full chain of thought.
from mythicdot import MythicDot
client = MythicDot()
response = client.messages.create(
model="mythic-4-thinking",
max_tokens=16000,
thinking={
"type": "enabled",
"budget_tokens": 10000 # Max tokens for thinking
},
messages=[
{
"role": "user",
"content": "Solve this step by step: If x² + 5x + 6 = 0, what is x?"
}
]
)
# Access thinking blocks
for block in response.content:
if block.type == "thinking":
print("Thinking:", block.thinking)
elif block.type == "text":
print("Answer:", block.text)
Complex calculations, research questions, data interpretation
Step through logic, identify bugs, trace execution
Multi-step decisions, trade-off analysis, optimization
Puzzles, logic problems, mathematical proofs
Give your model time to think through complex problems.