Claude Sonnet 4.6
claude-sonnet-4-6Run Claude Sonnet 4.6 in a hosted Python Task with structured output, web search, extended thinking, file inputs and MCP connectors.
Anthropic's flagship balanced model with near-Opus level performance at mid-tier pricing. Features 1M token context window, 128K output capacity, exceptional coding capabilities (79.6% on SWE-bench), and advanced computer use (72.5% on OSWorld). Ideal for complex agents, long-context reasoning, and production workflows.
What Claude Sonnet 4.6 supports in qbash
- Structured outputReplies as JSON that matches a schema you pass.
- MCP connectorsCalls tools on MCP connectors during a request.
- Web searchSearches the web while it answers.
- Extended thinkingReasons through a problem before it replies.
- Reasoning effort4 levels, from low to max.
- Image inputReads WEBP, PNG, JPEG and GIF images.
- Document inputReads PDF, TEXT, DOC, XLS, RTF and 7 more files.
- Prompt cachingRepeated input is billed at the cached rate.
What is qbash?
qbash is where you build Tasks: Python programs that run a business process on managed infrastructure. Your code runs the steps and calls a model like Claude Sonnet 4.6 only at the ones that need judgment, with integrations, memory and files available in the same script.
A developer writes the Task once, and anyone on the team runs it from a form, on a schedule, from a webhook or from chat. Each Task is versioned and every run is logged.
Specifications
- Context window
- 1Mtokens
- Max output
- 128,000tokens
- Temperature
- 0 to 1default 0.7
Structured output with Claude Sonnet 4.6 in a Python Task
qbash.ai.raw calls Claude Sonnet 4.6 from a Task. Pass a JSON Schema as output_schema and the reply comes back as a Python dict that matches it, ready to route to a connector.
ticket = qbash.inputs.get("ticket")
triage = qbash.ai.raw(
f"Summarize this support ticket and rate its urgency:\n\n{ticket}",
model="claude-sonnet-4-6",
output_schema={
"type": "object",
"properties": {
"summary": {"type": "string"},
"urgency": {"type": "string", "enum": ["low", "medium", "high"]},
},
"required": ["summary", "urgency"],
},
)
# triage is a dict, e.g. {"summary": "...", "urgency": "high"}
if triage["urgency"] == "high":
qbash.integrations.slack.create_message(
channel="#support",
text=triage["summary"],
)
qbash.output(triage)
Connect Claude Sonnet 4.6 to MCP servers
In qbash chat and a Task's inline prompts, you can attach MCP connectors to Claude Sonnet 4.6. It calls their tools during the request, for example to read a Postgres table or post to a Slack channel.
This is MCP on the model side. Adding MCP servers to Claude Code or Claude Desktop is a separate setup, and qbash can publish your Tasks as an MCP server for those clients as well.
Use Claude Sonnet 4.6 with web search
Turn on Web Search in an inline prompt's model bar and Claude Sonnet 4.6 searches the web while it answers. Searches are billed at $10.00 per 1,000.
Reasoning effort with Claude Sonnet 4.6
Set Effort to low, medium, high and max in the prompt's Settings. The default is high. Higher effort spends more tokens on reasoning before the reply.
Turn on Thinking in the same Settings popover to have Claude Sonnet 4.6 reason through a problem before it replies.
Claude Sonnet 4.6 pricing
| Input | $3.00 per 1M tokens |
|---|---|
| Output | $15.00 per 1M tokens |
| Cache read | $0.30 per 1M tokens |
| Cache write, 5 minutes | $3.75 per 1M tokens |
| Cache write, 1 hour | $6.00 per 1M tokens |
| Web search | $10.00 per 1K searches |
Standard rates in USD.
Supported file formats
Images
- WEBP up to 5 MB
- PNG up to 5 MB
- JPEG up to 5 MB
- GIF up to 5 MB
Documents
- TEXT
- DOC
- XLS
- RTF
- DOCX
- XLSX
- PPTX
- PPT
- ODT
- ODP
- ODS
Automate Claude Sonnet 4.6 with qbash
Guides that use Claude Sonnet 4.6
Reddit research with qbash Tasks
The AI Ticker section of our newsletter starts with two Tasks. One scans model subreddits every day and stores a summary of each new thread in a memory folder. The other ranks a week of those summaries, writes the ticker, and runs a copy review, one single-purpose prompt at a time.
Claude Sonnet 4.6 + 30 New Workflow Operations
Claude Sonnet 4.6 is live in Aisle. Faster and smarter. Plus 30 new workflow variable operations: math, strings, arrays, objects, dates, and a Switch node. Build automation without extra code. Try it in Aisle.