For builders · Anthropic

The Claude API,
in plain words.

The same models as the Claude app, called from your own code and paid for by use. The chat on this site runs on it. Which model you pick changes the cost a great deal, which is why we tested three before choosing.

  • Best for: adding Claude to your own site or app

What it is good at

Where The Claude API earns its place

A chat that knows your page

Send the page’s text with the question and the answer comes from what you wrote.

The same job, many times

Sorting, tagging and summarising thousands of items with one instruction.

A choice of sizes

A small fast model for simple work and a larger one for hard work, from the same API.

Try this first

Instructions for a chat on your own page

Copy it, change the parts in brackets, and send it. It follows the five parts of a brief, cut down to what this job needs.

You answer questions about [what the page or product is] for [who the readers are].

Use only the text you are given with each question. If the answer is not in it, say the page does not say.

Keep answers under [length], in plain language.

Never invent a price, a date, a policy or a name.

Jobs to give it

What to use The Claude API for

From our solutions page, where each job has its steps and a brief to start from.

Answer customers on your own website

A chat that answers from what your page says, at any hour. It is how the chat on this site works.

See the steps

On the timeline

How The Claude API got here

The moments from our AI timeline that shaped it.

4 March 2024

Claude 3 comes in three sizes

Opus, Sonnet and Haiku: a large, a middle and a small fast model. Picking the size that fits the job became part of using AI well.

See it on the timeline
22 October 2024

Computer use: AI operates the screen

An experimental ability for Claude to look at a screen, move the pointer, click and type. AI started doing the task, not just describing it.

See it on the timeline
25 November 2024

The Model Context Protocol

An open standard for connecting assistants to the places your data lives: files, business tools, databases. The plumbing that lets an assistant work with your own material.

See it on the timeline
17 November 2026

Claude Opus 5.5 and Sonnet 5.5

Faster and cheaper to run than the models they replace. Sonnet 5.5 answers members’ questions on this site, and Haiku 5.5 answers guests’.

See it on the timeline

Go further

Learn The Claude API properly

Free courses from our course list, and pages here that go deeper.

Anthropic

Building with the Claude API

How to call Claude from your own code: messages, system prompts, tools, and the patterns that real applications use.

Open the course
Anthropic

Anthropic’s courses on GitHub

Anthropic’s own notebooks on the API, prompting, evaluating prompts and tool use. Run them and change them as you go.

Open the course
On this site

Which Claude model should you use?

Our test of three models on cost, speed and answers.

Open the page

Before you rely on it

What to watch

Your API key is a password that spends money. Keep it on the server, never in a page, and set a spending limit.

You pay for every request, including the ones a stranger makes on your site. Put a limit on how many each visitor gets.

The obvious question

The Claude API or the OpenAI API?

This site’s chat runs on Claude, a deliberate choice: Claude communicates better. For a first AI feature either one will do. For something that talks or writes we would start with Claude; if you need images, speech or transcription, the OpenAI API has those in one account.

The full comparisonRead about The OpenAI API

Next

The tool is half of it.
The brief is the other half.

Let the builder write a brief for your own job, or start from one already written.