Claude Platform Docs

Start building with Claude

Claude Platform gives you programmatic access to the same Claude models used in claude.ai and Claude Code.

Explore Claude models

If you’re unsure which model to use, start with Claude Opus 5.5 for most workloads. Use Claude Fable 5.2 for demanding reasoning and long-horizon agentic work, or when your evals on Claude Opus 5.5 at higher effort still fall short. All current models support text and image input, text output, multilingual capabilities, vision, and tool use.

Fable 5.2

Most capable
claude-fable-5-2

For demanding reasoning and long-horizon agentic work

Input / MTok
$8
Output / MTok
$40

Opus 5.5

Complex projects
claude-opus-5-5

For long-running agentic coding and knowledge work

Input / MTok
$4
Output / MTok
$20

Sonnet 5.5

Everyday tasks
claude-sonnet-5-5

The best combination of speed and intelligence

Input / MTok
$2
Output / MTok
$10

Haiku 5.5

Fastest
claude-haiku-5-5

For high-volume, latency-sensitive tasks

Input / MTok
From $0.10
Output / MTok
From $0.50

Choose how you build

Run your own agent loop on the Messages API, or let Claude Managed Agents run the loop, tools, and sandbox for you.

Messages API

What it is
Direct access to Claude models
Best for
Single-turn responses and low-level control
Agent loop
You write the tool loop
State
You manage the conversation history
Sandbox
Bring your own

Claude Managed Agents

What it is
A prebuilt agent harness that runs on managed infrastructure
Best for
Complex, long-running agents
Agent loop
Anthropic runs the tool loop and multiagent orchestration
State
Sessions keep history and files for you
Sandbox
Linux container hosted by Anthropic, or a self-hosted sandbox

Install an SDK

Anthropic offers client SDKs in many popular languages, with built-in streaming, retries, and error handling.

pip install anthropic
hello.py
import anthropic

client = anthropic.Anthropic()
message = client.messages.create(
    model="claude-opus-5-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(message.content)

Explore features

Connect Claude to your tools and data, and control how it responds. See the features overview for the full list.

Custom tools

Claude asks to call them; your code runs them and returns the result.

Structured outputs

Constrains Claude’s response to a JSON schema that you give, so the output is valid and parseable.

Effort

Controls how many tokens Claude spends on a response, trading thoroughness for token efficiency.

Vision

Claude can read and analyze images that you send to it.

MCP connector

Connect Claude to remote MCP servers so it can call their tools, without running your own MCP client.

Streaming

Fast mode

Use Claude on your cloud

Use Claude through the cloud account and billing you already have.

Amazon Bedrock

Operated by AWS, inside the AWS security boundary.

Claude Platform on AWS

Operated by Anthropic and billed through AWS Marketplace.

Claude Models on Google Cloud

Operated by Anthropic or Google and billed through Google Cloud.

Microsoft Foundry

Azure-native endpoints, billed through the Azure Marketplace.

Get started

  1. Make your first API call

    Set up your environment, install an SDK, and send your first message to Claude.
  2. Choose how to authenticate

    Pick a credential by where your code runs. On your own machine, sign in with the CLI. In CI or on a server with an identity provider, use Workload Identity Federation. Use a Developer API key where neither works, such as with a tool that needs a key.
  3. Understand the Messages API

    Learn the core request and response structure, including multi-turn conversations, system prompts, and stop reasons.
  4. Choose the right model

    Compare Claude models by capability and cost to pick the best fit for your use case.
  5. Explore features and tools

    Discover what Claude can do: thinking, web search, file handling, structured outputs, and more.

What’s new

Additional resources

Next steps

Quickstart

Make your first API call to Claude.

Features overview

Explore Claude’s advanced features and capabilities.

API reference

Look up endpoints, headers, and rate limits.

Pricing

See prices for models and features.