Build a Claude API integration with the model catalog, charge categories and operational checks in view. This guide connects Anthropic’s developer documentation to the next practical step.

What Anthropic offers through the API

Anthropic exposes Claude through a native Messages API. Its developer surface also includes model discovery, token counting, asynchronous message batches and reusable files. The response is organized into content blocks, so a caller should inspect each block’s type instead of assuming every successful response is a plain string. Official documentation.

For your first integration, write down the work Claude must complete before choosing a model family. A document assistant needs evidence selection and faithful attribution; a coding assistant needs executable changes and useful failure explanations; a support workflow needs predictable escalation. Treat these as separate evaluation tasks. A single appealing demonstration is a poor substitute for checking the awkward cases your application actually receives.

The official catalog distinguishes families such as Fable, Opus, Sonnet and Haiku and publishes their direct API identifiers. It also describes supported inputs and tools. Those descriptions are useful starting points, but our recommendation is to choose with your own representative tasks rather than turn a family name into a universal quality ranking. Official documentation.

Keep the first prototype deliberately narrow. Send a short text request, print only text blocks, and record the returned usage alongside your own success judgment. Next introduce the document, image or tool definition that your real workflow requires. Changing the model, prompt structure and application logic together makes regressions harder to explain. Keep a small saved set of prompts and expected properties so each change has a clear comparison.

Anthropic maintains official client libraries, including Python and TypeScript. The native request shape uses Messages conventions; this site’s starter example therefore uses the Anthropic SDK rather than silently treating Claude as an OpenAI Chat Completions endpoint. Other hosting platforms have their own access and billing arrangements, so record the platform with the model identifier in your application inventory. Official documentation.

A useful adoption decision includes ownership as well as response quality. Decide who controls the workspace, who can revoke a development credential, and who receives a billing alert. Give your application a clear fallback when a response is unavailable or cannot be validated. A production workflow should still make sense when the model asks for a tool, reaches an output boundary, or produces an answer that needs review.

Read this hub as a route map. Use Pricing to understand the charge categories, Models to inspect available identifiers, and Rate limits to plan throughput. The key guide covers the developer-console path; the tutorial connects that credential to a small reproducible script. If you already have a failing request, start with Errors and preserve its diagnostic details before editing the prompt. This sequence keeps account setup, request behavior and evaluation decisions understandable as your integration grows.

Pricing at a glance

Pricing at a glance
SummaryVerified value
Lowest input price modelClaude Haiku 4.5
Input price$1 per 1M tokens
Output price$5 per 1M tokens
Free accessNo universal ongoing free inference allowance was established in the last successful check.

Last verified · Source ↗

The pricing reference separates ordinary input, generated output and cache operations. Select the category that matches the request path you will actually use. Official documentation.

Read Anthropic pricing before setting a workload budget.

Models available

Model catalog
ModelOfficial identifierModalitiesContext tokensInput USD / 1MOutput USD / 1MStatus
Claude Fable 5.1claude-fable-5-1text, image1,000,000$10$50Active
Claude Haiku 4.5claude-haiku-4-5-20251001text, image200,000$1$5Active
Claude Opus 5claude-opus-5text, image1,000,000$5$25Active
Claude Sonnet 5claude-sonnet-5text, image1,000,000$2$10Active

Last verified · Source ↗

Open the Claude models guide for family selection and lifecycle checks.

Free tier and how to get a key

The official billing documentation was checked. No universal ongoing free inference allowance was established by that source. Promotional or account-specific credits require a check in your account. Read the official terms ↗

Last verified · Source ↗

Check the account offer rather than assume a permanent free allowance. Follow the Anthropic key guide and free-tier checks.

Rate limits and tiers

Plan for account capacity before adding parallel workers. The Claude rate-limit guide separates spend controls from request throughput.

Service status

Minor Service Outage

Checked 12 Sep 2026 16:30 UTC · Official status ↗

Start in 5 minutes

Use the Claude Python tutorial to load a key from your environment and inspect content blocks.

client.messages.create(model="claude-opus-5", max_tokens=256, messages=[{"role":"user","content":"Hello"}])

Recent changes

  1. Anthropic · Claude Haiku 4.5 — MetadataRecord updated; consult the linked source for details. → Record updated; consult the linked source for details.Source ↗
  2. Anthropic · Claude Sonnet 5 — MetadataRecord updated; consult the linked source for details. → Record updated; consult the linked source for details.Source ↗
  3. Anthropic · Claude Opus 5 — MetadataRecord updated; consult the linked source for details. → Record updated; consult the linked source for details.Source ↗
  4. Anthropic · Claude Fable 5.1 — MetadataRecord updated; consult the linked source for details. → Record updated; consult the linked source for details.Source ↗
  5. Anthropic · Claude Haiku 4.5 — ValueNot previously recorded → Tier: published default · Metric: RPM · Value: 1000 · Notes: Input and output token limits are separate in the official table; account settings prevail.Source ↗
  6. Anthropic · Claude Haiku 4.5 — MetadataRecord updated; consult the linked source for details. → Record updated; consult the linked source for details.Source ↗
  7. Anthropic · Claude Sonnet 5 — MetadataRecord updated; consult the linked source for details. → Record updated; consult the linked source for details.Source ↗
  8. Anthropic · Claude Opus 5 — MetadataRecord updated; consult the linked source for details. → Record updated; consult the linked source for details.Source ↗

Subscribe to the changelog RSS feed

Use the AI API cost calculator to turn the model and workload you are considering into an estimate.

Last verified · Source ↗

Frequently asked questions

Which endpoint should a new Claude integration use?
Begin with the native Messages API and preserve its content-block response structure. Official documentation.
Where are the current Claude model identifiers?
Use the Models API or the official catalog, then copy the identifier for the direct Claude API. Official documentation.
Can I compare cached and uncached requests?
Yes. Separate initial cache writes, cache reads and ordinary input before comparing the workload. Official documentation.
Does a successful key test prove production capacity?
No. Check the organization and workspace limits as well as your application’s expected traffic pattern. Official documentation.
What should I retain when a request fails?
Keep the request identifier, error type, timestamp and a redacted reproduction. Remove credentials before sharing it. Official documentation.

Sources

Last verified · Source ↗