In short.
The Claude API usage primer is a documentation page written to give Claude itself the basics of the Claude API, and developers connecting software to Claude can also learn from its examples, which require attention to model compatibility and assume an existing API setup. Its useful detail includes the client-tool handoff, preserving thinking blocks and interpreting streamed responses. The page recommends claude-opus-5-5 while documenting restrictions on prefilling, forced tool use and legacy thinking settings. Absolute prices, dependency versions and reuse rights are unknown from this page. No code or API requests were executed, so runtime correctness and performance remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete documentation page at [https://platform.claude.com/docs/en/claude_api_primer.md], including its examples, model lists, beta thread notice, deprecation notice and compatibility warnings. Linked pages are excluded. Installation, authentication, absolute pricing and reuse rights are not established by this page. No examples were executed, and runtime behavior, performance and production suitability remain unassessed.
The overview
Identity
API usage primer for Claude is a documentation page that explicitly aims to teach Claude the basics of its API. It also provides concrete examples developers can read and adapt. The source address is [https://platform.claude.com/docs/en/claude_api_primer.md], and its front matter identifies [https://platform.claude.com/docs/en/claude_api_primer] as the page URL.
Assessment
The primer is useful for understanding the structure of Claude integrations, particularly how an application exchanges tool requests and results with the model. Its examples connect basic requests to more advanced features without requiring a large sample project. Its usefulness as a production implementation guide is limited by missing installation, authentication, dependency-version and operational guidance. The model recommendations are source claims, with no comparative benchmarks supplied.
Users
Beginners who can read Python and JSON can use the basic conversation examples to understand requests and responses. Developers building assistants with external functions will find the tool schemas, continuation messages and thinking compatibility rules more relevant. The page's explicitly stated audience is Claude itself: its description says it is designed to give Claude the basics of using the Claude API. Readers unfamiliar with package installation, API authentication or JSON Schema will need additional guidance.
Capabilities
The page demonstrates Python SDK and ant CLI calls for text conversations, image inputs, response prefilling on supported models, thinking and streaming. It explains defining tools with JSON Schema, requesting structured output through tools, controlling tool selection, disabling parallel tool use and returning execution errors. It also describes handling max_tokens and pause_turn stop reasons and introduces beta message threads.
Using it
Requirements
The examples assume working Claude API access and an available model identifier. Python examples use anthropic; CLI examples use ant. The Python vision example additionally imports base64 and httpx2. Client tools require application code to perform the requested operation and a schema describing accepted inputs. Installation commands, credential configuration, supported runtime versions and pinned SDK or CLI versions are not supplied.
Mechanism
A Messages request supplies a model, max_tokens and conversation messages. Responses contain content blocks, a stop reason and token-usage information. Ordinary requests are stateless, so the application resends conversation history. The page describes beta threads as an alternative that retains the conversation; a thread expires five minutes after its last request and is deleted within one hour of its last use.
For client tools, Claude returns tool_use blocks containing a name, identifier and input. The application performs the operation and returns a user message containing tool_result linked to that identifier. During thinking-enabled tool exchanges, the last assistant message's thinking blocks must also be preserved. Streaming delivers incremental events; tool inputs arrive as partial JSON strings, and message_delta usage counts are cumulative.
Setup
The starting Python example creates anthropic.Anthropic() and calls messages.create with claude-opus-5-5, max_tokens set to 1024 and one user message. An equivalent ant messages create example is provided. These show the request shape after access and dependencies are configured. The page does not supply a complete environment setup or starter application.
Example
The weather example defines get_weather with a required location, asks about Paris and shows how to return a tool result before requesting a continuation. It uses a fixed temperature value of 72, formatted as Fahrenheit, rather than retrieving live weather. This illustrates the message exchange and preservation of thinking content; it does not establish a working weather integration.
Assessment & evidence
Limitations
Examples cannot be transferred between models without checking restrictions. Assistant prefilling is unsupported on Claude 4.6 and later models; the prefill example uses Claude Sonnet 4.5, which the same page marks deprecated. Forced tool_choice values any and tool are rejected by several listed models, including the recommended Claude Opus 5.5. Setting strict to true guarantees schema conformity for calls that occur, rather than guaranteeing that a call occurs.
The weather continuation example extracts only the first thinking block and first tool-use block, while the page also permits multiple tool calls. Applications handling parallel calls need broader response handling than this example demonstrates. Rate limits, retry policies, reliability measurements and a complete application implementation are not established.
Thinking controls
For developers building tool-using assistants, the guide's explanation of thinking compatibility is particularly useful. Adaptive thinking lets Claude decide when and how much to think, with effort controlling depth. The example requests summarized thinking and handles thinking and text blocks separately. Adaptive thinking automatically permits thinking between tool calls.
The page says Claude Opus 5.5 always uses thinking. For Claude Sonnet 5.5, disabled produces a 400 error; between_tools turns off up-front thinking. Manual thinking with budget_tokens is a legacy option for compatible Claude 4 through 4.6 models and is rejected on 4.7 and later. Its usual requirement that budget_tokens be below max_tokens has an exception for interleaved thinking. These are documented compatibility rules, not evidence of improved answer quality.
Alternatives
For deeper treatment, the primer links to dedicated adaptive-thinking documentation [https://platform.claude.com/docs/en/build-with-claude/thinking] and strict-tool-use documentation [https://platform.claude.com/docs/en/agents-and-tools/tool-use/strict-tool-use]. Their contents are outside this report's scope. The supplied page provides no evidence for ranking this primer against other tutorials or competing API guides.
Evidence
The supporting material consists of the documentation page's code examples, illustrative JSON responses, streaming events and compatibility notices. Sample responses demonstrate expected formats rather than measured outcomes. No code or API requests were executed. Actual endpoint availability, dependency compatibility, response quality, latency and end-to-end correctness remain unassessed.
Access & freshness
Costs
Absolute API prices and example-request costs are unknown. The page states that Claude Fable 5.2 has twice the pricing of Claude Opus 5.5, but supplies no underlying rates or billing detail. Response examples expose token usage and requests specify max_tokens; neither establishes a monetary budget. The cost and latency effects of thinking are not quantified.
Rights
The page states no licence or reuse grant for its prose or code examples. It also does not establish the contractual terms governing API use or generated outputs. Redistribution permissions and applicable API or output rights are therefore unknown from this source.
Freshness
The available page was captured on 15 November 2026 at 01:28:34.794 UTC. This is a capture timestamp; the page's publication and last-update dates are unknown. Model recommendations, beta thread behavior, thinking defaults and deprecation notices describe that snapshot. Subsequent availability or compatibility changes are not established.
Next steps
Arrange API access and dependency setup, then begin with the basic text request before adapting the single-tool example. Confirm the chosen model's restrictions before adding prefilling, forced tool selection or thinking settings. For an application, handle every returned content block and tool request, preserve required thinking blocks and assemble streamed JSON before using it. Obtain current prices and applicable terms before budgeting or redistributing examples.
