How the lines differ
| Line | Strong at | Speed / cost | Reach for it when |
|---|---|---|---|
| Claude Opus | The hardest reasoning and large code | Slower, pricier | Agents, multi-step tasks, heavy refactors |
| Claude Sonnet | All-rounder: code, analysis, long context | Mid | Everyday work — the best balance |
| Claude Haiku | Simple tasks at high volume | Faster, cheaper | Classification, short replies, bulk processing |
What Claude can do
- Long context — a large window that fits whole codebases and documents.
- Vision — you can pass images as input: screenshots, diagrams, scans. See image input for the request format.
- Function calling (tool use) — the model can return structured tool calls; agents are built on this. See function calling for a full example.
- Thinking mode — Sonnet and Opus have an extended “reasoning before answering” mode, useful in math, logic and hard code.
The
model field takes an ID, e.g. claude-opus-4-8 for the top model. Exact IDs, versions and per-token prices are on the Pricing page at www.ruapi.ai. Names match Anthropic’s official ones, and new versions appear in the catalog automatically.Picking by task
- Writing and refactoring code → Sonnet by default, Opus for the gnarliest tasks.
- Building an agent or tool pipeline → Opus or Sonnet (you want reliable tool use).
- Analyzing long documents → Sonnet with long context.
- Classification, tagging, short replies at scale → Haiku, for speed and cost.
- Images as input → Sonnet and Opus with vision.
How to connect
Claude works over two protocols — Anthropic (Claude Code, Anthropic SDK) and OpenAI-compatible (Cursor, Cline, OpenAI SDK). Step-by-stepbase_url setup and a first request are in the Quickstart; full Claude Code config is in its guide.
FAQ
Opus or Sonnet?
Opus or Sonnet?
Sonnet is the everyday pick and noticeably cheaper. Use Opus selectively, when Sonnet can’t carry the complexity: long reasoning chains, large refactors, demanding agents.
What context length does Claude have?
What context length does Claude have?
Large — Sonnet and Opus fit whole projects and long documents. The exact limit depends on the version and matches Anthropic’s official one.
Does Claude understand images?
Does Claude understand images?
Yes, the vision models (Sonnet, Opus) take images as input — screenshots, diagrams, scans.
Is there a reasoning mode?
Is there a reasoning mode?
Yes, Sonnet and Opus have an extended thinking mode — the model “thinks through” the task before answering, which helps with math, logic and hard code.
Can it call functions (tool use)?
Can it call functions (tool use)?
Yes. Claude can return structured tool calls — the basis for agents and integrations with external APIs.
Where do I find exact model names?
Where do I find exact model names?
On the main site’s Pricing page. Names match Anthropic’s official ones, so you use the same IDs in code.
Next
Connect and first request
base_url, key, Python and curl code.
Claude Code: full setup
Environment variables and common errors.