Claude Opus 4
claude-opus-4-0Run Claude Opus 4 in a hosted Python Task with web search, extended thinking, file inputs and MCP connectors.
Legacy model. Anthropic recommends migrating to Claude 4.5 models for improved performance.
This model is deprecated and not recommended for new projects. It retires on June 15, 2026.
What Claude Opus 4 supports in qbash
- MCP connectorsCalls tools on MCP connectors during a request.
- Web searchSearches the web while it answers.
- Extended thinkingReasons through a problem before it replies.
- 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 Opus 4 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
- 200Ktokens
- Max output
- 32,000tokens
- Temperature
- 0 to 1default 0.7
Use Claude Opus 4 in a Python Task
qbash.ai.raw calls Claude Opus 4 from a Task and returns its reply as a string.
notes = qbash.inputs.get("notes")
summary = qbash.ai.raw(
f"Summarize these meeting notes in five bullets:\n\n{notes}",
model="claude-opus-4-0",
system="You are a concise analyst.",
)
qbash.output({"summary": summary})
Connect Claude Opus 4 to MCP servers
In qbash chat and a Task's inline prompts, you can attach MCP connectors to Claude Opus 4. 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 Opus 4 with web search
Turn on Web Search in an inline prompt's model bar and Claude Opus 4 searches the web while it answers. Searches are billed at $10.00 per 1,000.
Extended thinking with Claude Opus 4
Turn on Thinking in the same Settings popover to have Claude Opus 4 reason through a problem before it replies.
Claude Opus 4 pricing
| Input | $15.00 per 1M tokens |
|---|---|
| Output | $75.00 per 1M tokens |
| Cache read | $1.50 per 1M tokens |
| Cache write, 5 minutes | $18.75 per 1M tokens |
| Cache write, 1 hour | $30.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