Skip to main content
All models

Claude 3.5 Sonnet

OpenRouterOpenRouter docs

anthropic/claude-3.5-sonnet

Run Claude 3.5 Sonnet in a hosted Python Task with file inputs.

Anthropic model that raises the industry bar for intelligence, available via OpenRouter. Outperforms competitor models with the speed and cost of mid-tier models.

Deprecated model

This model is deprecated and not recommended for new projects.

What Claude 3.5 Sonnet supports in qbash

  • 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 3.5 Sonnet 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
8,192tokens
Temperature
0 to 2default 1

Use Claude 3.5 Sonnet in a Python Task

qbash.ai.raw calls Claude 3.5 Sonnet from a Task and returns its reply as a string.

main.py
notes = qbash.inputs.get("notes")

summary = qbash.ai.raw(
f"Summarize these meeting notes in five bullets:\n\n{notes}",
model="anthropic/claude-3.5-sonnet",
system="You are a concise analyst.",
)

qbash.output({"summary": summary})
Model calls in Tasks

Claude 3.5 Sonnet pricing

Input$6.00 per 1M tokens
Output$30.00 per 1M tokens
Cached input$0.60 per 1M tokens
Cache write$7.50 per 1M tokens

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

  • PDF
  • TEXT
  • DOC
  • XLS
  • RTF
  • DOCX
  • XLSX
  • PPTX
  • PPT
  • ODT
  • ODP
  • ODS

Automate Claude 3.5 Sonnet with qbash