Plan a relaxed Saturday using these options: a park open 9am-6pm, a museum open 10am-5pm, and a cafe open 8am-8pm. Start at 10am, include a lunch break, and allow 30 minutes between stops. Return a timetable without inventing prices or opening hours.
Claude Opus 5.5 API: Online text generation, tutorials and integration guide
Connect to Claude Opus 5.5 in one click on RequestBeam. One API key connects AI and multiple data services, so you can focus on your business and explore new ideas.
Claude Opus 5.5 API pricing and billing
0-1M input tokens
Official price
- Input
-
$4.0000/M - Output
-
$20.0000/M - Cache input
-
$0.2000/M - Cache write (5m)
-
$5.0000/M - Cache write (1h)
-
$8.0000/M
Our price Save 45%
- Input
- $2.2000 /M
- Output
- $11.0000 /M
- Cache input
- $0.1100 /M
- Cache write (5m)
- $2.7500 /M
- Cache write (1h)
- $4.4000 /M
Claude Opus 5.5 online chat tool
Model settings
It includes completed, reusable turns from this conversation in your next request, so you can ask follow-up questions without repeating the context.
What happens when it is off?Only your new message and any system prompt are sent. Existing messages stay visible; turning memory back on includes eligible earlier turns again.
Is this long-term memory?No. This is conversation context, not memory across separate conversations. Failed, stopped, truncated, or non-reusable replies are excluded. More history can use more input tokens and increase cost.
Advanced parameters
Conversation

How can I help you today?
No response data yet Claude Opus 5.5 prompt examples
Draft a polite customer email for this situation: an order will arrive two days late, the revised delivery date is October 15, and tracking will be sent tomorrow. Apologize without inventing compensation. Include a subject line and keep the email under 120 words.
Turn these meeting notes into an action list: Maya will revise the proposal by Friday; Leo will confirm the venue next Monday; the budget needs approval, with no owner assigned. Use columns for task, owner, deadline, and open questions. Mark missing details as unknown.
What is Claude Opus 5.5
A Claude model for complex coding and knowledge work
We position Claude Opus 5.5 as a general-purpose model for complex coding, document analysis, and multi-step work. Anthropic released this version on September 22, 2026, emphasizing its performance on long-running coding tasks and professional knowledge work.
For practical use, we care more about whether it can understand existing projects and business constraints, continue using new information during the process, and bring results to a point where they can be accepted. Examples include changing multiple modules according to requirements, preparing analysis reports from source materials, or continuing subsequent steps after tools return results.
A multimodal model with a million-token context and image input
The official Claude Opus 5.5 API provides a 1M-token context window and a standard maximum output of 128K tokens. It supports text and image input and produces text output. Official model specifications
We believe this configuration suits analyzing requirements documents, code, logs, and interface screenshots within the same task. To make results easier to verify, we recommend numbering materials or file names and requiring conclusions to refer to specific evidence; even when supplying a large amount of content, the problem to be solved should still be clear.
A model that allocates reasoning effort through adaptive thinking
Claude Opus 5.5 always uses adaptive thinking, with reasoning effort adjustable through effort. It supports five levels: low, medium, high, xhigh, and max, with an official default of medium. This parameter affects how the model handles tasks and its token consumption, but is not an exact thinking-token allowance. Official Effort documentation
We recommend starting at medium to establish business test scenarios, then adjusting based on the model's feedback: evaluate low for simple extraction and formatting; compare against high for code analysis involving multiple constraints; and for difficult problems that genuinely need repeated verification, assess whether the additional effort of xhigh or max is worthwhile.
Claude Opus 5.5 online tools and API on RequestBeam
Through RequestBeam, we hope to help you discover more quickly how Claude Opus 5.5 actually performs on your own tasks. You only need to sign in, create an API Key, and add a small balance to start using the online tool, without first writing API integration code or purchasing a fixed subscription for a short evaluation. This also reduces the hassle of managing accounts on multiple model platforms yourself.
Claude Opus 5.5 core capabilities and domain strengths
Project coding: considering both implementation and architectural quality
We believe Claude Opus 5.5 is worth using for fixes, refactoring, and code reviews in existing projects, particularly work that requires understanding module responsibilities and established conventions. In customer feedback, some customers asked it to review code generated by other models. It identified implementations that could be simplified and issues inconsistent with the project's architectural layers; the author felt these comments matched their own assessment when reading the changes. Another customer, however, said that Opus 5.5 cited nonexistent code line numbers and corrected some conclusions only after checking again.
We therefore recommend requiring actual code, triggering conditions, and the scope of impact with each review comment before deciding whether to make changes, as well as keeping context length under control.
Tool collaboration: continuing long tasks with clear acceptance criteria
We place greater value on the model's ability to keep making progress between reading files, changing code, running tests, and checking results. Cursor's official usage guide lists coordinating subagents during long tasks as an Opus 5.5 strength. This capability needs to be used together with the tools and execution environment provided by the application. Cursor model guide
In customer feedback, a customer shared their experience of using Opus 5.5 to rebuild a table control in an older desktop application: they defined the goal using only existing API behavior and screenshot comparisons, had the model generate the implementation, tests, and image-difference reports, and ultimately completed the requirements.
What we further observe from these cases is that, in an actual integration, we recommend dividing long tasks into stages that can be checked, providing sufficient contextual input, expected deliverables, and pass conditions for each stage so the model can continue working from execution feedback.
Office analysis: handling spreadsheet details and checking relationships between results
We believe the value of Claude Opus 5.5 for office work lies in its ability to organize spreadsheets, trace formula dependencies, create charts, and prepare explanations from source materials. In AutosheetBench, published by GPT for Work on October 6, 2026, Opus 5.5 at medium passed 94.7% of 187 small Excel tasks. This test runs in the GPT for Excel tool environment and covers individual operations. Original AutosheetBench evaluation
The model correctly handled the ending total in a cash-flow waterfall chart and created independently collapsible row groups by category; in formula-dependency tracing, however, it still made a mistake by finding the relevant cells but writing the wrong reference addresses. We therefore recommend checking calculation logic, reference locations, and final presentation together, and particularly avoiding direct extrapolation from small-task results to complete financial models or entire business reports. Specific successes and failures
Visual development: building interfaces and product demonstrations with code
We understand the multimodal capabilities of Claude Opus 5.5 as a combination of image understanding, code generation, and tool orchestration. A customer shared how they made a video for their product: they provided an article in Markdown, had the model generate HTML and JavaScript animations, and used ffmpeg to produce the video. The customer said they were satisfied with the first result, that it saved them a great deal of time, and that they genuinely could not achieve the production quality of Opus 5.5 themselves.
We believe this way of working suits product feature demonstrations, interactive prototypes, and educational animations that can be edited further. For independent developers, for example, it can help them better promote their work.
Writing: explaining problems more clearly and adapting to a specified style
Alongside writing ability, we also consider whether the expression is easy to understand and whether the content suits the intended readers. In customer feedback, some users said that Opus 5.5 improved writing and attention to detail but was sometimes overly picky about the content; others felt that the output was easier to read than Opus 5, though the writing remained somewhat verbose.
We treat this feedback as a reason to try it. For product descriptions, help documentation, and research summaries, we recommend providing the audience, length, tone, and reference examples together, which may produce better results.
Claude Opus 5.5 benchmarks and performance
Below, we retain evaluation versions, reasoning levels, and execution settings, and we also distinguish official tests at release from data updated later.
Terminal tasks: 66.4% officially on Terminal-Bench 4.0, 59.6% independently
- Anthropic · xhigh Standard error: ±2.6 percentage points 66.4%
- Artificial Analysis · max Default Fallback 59.6%
- Artificial Analysis · xhigh Default Fallback 59.6%
AA used mini-swe-agent: 66 tasks, three runs each.
In the Terminal-Bench 4.0 results published by Anthropic, Opus 5.5 scores 66.4% at xhigh, with a standard error of ±2.6 percentage points. Artificial Analysis uses mini-swe-agent for its independent test, repeating each of 66 tasks three times; Opus 5.5 scores 59.6% in both the max and xhigh default-fallback configurations. Anthropic official results · Artificial Analysis independent results
Project coding: CursorBench 4.0 reaches 56.0% at High
- Medium 52.5%
- High 56.0%
- Max 57.8%
High to Max adds 1.8 percentage points; average task cost rises from $3.97 to $13.43.
- Medium $2.91
- High $3.97
- Max $13.43
Costs use the corresponding model’s public token prices and actual usage.
CursorBench 4.0 uses multi-file tasks from real Cursor sessions, including understanding requirements, making changes, and refactoring. The organizer reports the following Opus 5.5 results, with costs calculated from the corresponding model's public token prices and actual usage. Original CursorBench 4.0 leaderboard
| Reasoning level | Score | Average cost per task |
|---|---|---|
| Medium | 52.5% | USD 2.91 |
| High | 56.0% | USD 3.97 |
| Max | 57.8% | USD 13.43 |
We pay more attention to the change from high to max: the score increases by 1.8 percentage points, while the average task cost rises substantially. Based on these results, we recommend comparing medium and high first, and expanding use of max only when the additional completed tasks can cover the added cost. Based on our experience with evaluations of other comparable models, high is generally sufficient for most everyday needs. Of course, we still recommend that customers test a small scenario before integration.
Knowledge work: GDPval-AA v2.1 reaches 1866 Elo
- Relative rating
- 1866 Elo
- Max · Default Fallback
Confidence interval: ±26. Covers 44 occupations and nine industries, with anonymous pairwise comparisons.
On the current Artificial Analysis GDPval-AA v2.1 leaderboard, Opus 5.5 in the max default-fallback configuration scores 1866 Elo, with a displayed confidence interval of ±26. The evaluation covers 44 occupations and 9 industries, requiring models to use tools to submit actual deliverables such as documents, spreadsheets, and presentations, then forming scores through anonymous pairwise comparisons. GDPval-AA v2.1 leaderboard and methodology
We believe this is closer to professional work scenarios than looking only at short questions and answers. When evaluating report preparation or office assistants, we recommend checking whether the output is complete, whether the data is supported, and whether readers can understand and use it directly. If you want fluent and elegant writing, you may need to intervene and refine it yourself.
Cross-application automation: a 42.47% completion rate on AutomationBench
- Completion rate
- 42.47%
- Max · Default Fallback
- Average cost per task
- $1.44/task
Scored by final state in a simulated environment.
Zapier's AutomationBench v1.0.6 reports a score of 42.47% for Opus 5.5 at max with default fallback, at an average cost of USD 1.44 per task. The evaluation runs in a simulated environment containing customer records, email, calendars, and other information, and scores whether the final state satisfies the requirements. Zapier AutomationBench
Our interpretation is that 42.47% shows Opus 5.5 has strong tool-use capabilities, but if a workflow is too complex, its output may not be as good as you expect
Independent index and generation speed: an overall score of 58, output around 97 tokens/second
- Intelligence Index v4.3.2
- 58 points
- Max · Default Fallback
- Anthropic API output speed
- ≈96.8 Token/s
Artificial Analysis Intelligence Index v4.3.2 gives Opus 5.5 in the max default-fallback configuration a score of 58; its measurement of the Anthropic API shows output speed of about 96.8 tokens per second. Artificial Analysis model evaluation
In our experience, if response speed matters to you, Opus 5.5 may not be your best choice; but if you are seeking output quality, we believe you should prioritize Opus 5.5. Alternatively, you could lower the reasoning level, though this depends on whether your business can accept the output produced at that lower level.
Claude Opus 5.5 compared with Opus 5, Fable 5.1, GPT-6 Astra, and Sonnet 5.5
- Claude Opus 5.5 Max · Default Fallback 58
- Claude Opus 5 Max 51
- Claude Fable 5.1 Max · Default Fallback 53
- GPT-6 Astra Max 53
- Claude Sonnet 5.5 Max · Default Fallback 56
- Claude Opus 5.5 Max · Default Fallback $5.98
- Claude Opus 5 Max $5.86
- Claude Fable 5.1 Max · Default Fallback $7.63
- GPT-6 Astra Max $3.26
- Claude Sonnet 5.5 Max · Default Fallback $7.67
Compared with Claude Opus 5: improved capability, with task cost still dependent on reasoning level
In the Artificial Analysis comparison, Opus 5.5 uses Max with default fallback, while Opus 5 uses Max. Their overall index scores are 58 and 51, respectively, and their AA-LCR v1.1 long-context scores, rounded as shown on the page, are 85% and 79%. However, weighted cost per task for the same index is USD 5.98 and USD 5.86, respectively; although the new version has lower token prices, task consumption at Max has not fallen accordingly. Opus 5.5 versus Opus 5
Based on the costs in this test comparison, we recommend that our users upgrade from Opus 5 to Opus 5.5.
Compared with Claude Fable 5.1: a more attractive overall score and task cost
In an independent comparison with both models at Max and default fallback, Opus 5.5 and Fable 5.1 have overall index scores of 58 and 53 and weighted costs per task of USD 5.98 and USD 7.63, respectively; their AA-LCR v1.1 scores are both 85% after rounding on the page. On this basis, we believe Opus 5.5 is more deserving of priority evaluation in this set of overall tests, while long-context performance is close on this measure. Opus 5.5 versus Fable 5.1
For teams already using Fable 5.1, we recommend considering the business scenario before deciding whether to switch: Fable 5.1 is better suited to planning-oriented work, while Opus 5.5 leans more toward execution.
Compared with GPT-6 Astra: a higher overall score, but also higher task cost at Max
In the Artificial Analysis comparison, Opus 5.5 uses Max with default fallback, while GPT-6 Astra uses Max. Their overall index scores are 58 and 53, but their weighted costs per task are USD 5.98 and USD 3.26, respectively. Corresponding output usage per task is about 119,000 and 27,000 tokens, including reasoning. The lower token prices of Opus 5.5 did not translate into lower task costs in this set of high-effort tests. Opus 5.5 versus GPT-6 Astra
We suggest that, if a user's infrastructure supports combining Astra and Opus, they use GPT-6 Astra High for engineering execution and try Opus 5.5 for planning.
Compared with Claude Sonnet 5.5: choose by work type, not product tier alone
In Artificial Analysis Max default-fallback configurations, Opus 5.5 and Sonnet 5.5 have overall index scores of 58 and 56. In the Zapier AutomationBench mentioned earlier, however, Sonnet 5.5 scores 44.75%, above Opus 5.5 at 42.47%, and its corresponding cost per task is also lower, at USD 1.14 versus USD 1.44. Independent overall comparison · Zapier automation comparison
On the other hand, for the AA overall index at Max, Sonnet 5.5 has a weighted cost per task of USD 7.67, above Opus 5.5 at USD 5.98. We believe this shows that reasoning effort also needs to be controlled for models with low unit prices. Task cost comparison
We recommend considering Sonnet 5.5 if users have high requirements for output responsiveness, but testing should be based on the specific business scenario.
Claude Opus 5.5 API frequently asked questions
How do I call the Claude Opus 5.5 API through RequestBeam?
We recommend first signing in to RequestBeam and creating an API Key, then reading our documentation or asking AI to help you configure the connection.
We recommend completing a minimal generation test through the online tool first, then integrating according to RequestBeam's current Claude Opus 5.5 API documentation. This lets you verify whether the model meets your business needs before integration and helps avoid mistakenly carrying over endpoint paths and parameters from other providers into RequestBeam.
Why do disabling thinking or setting sampling parameters cause errors after migrating from an older model?
We recommend first checking thinking, temperature, top_p, and top_k in the old request. According to Anthropic's official migration guide, Opus 5.5 does not accept thinking: {"type":"disabled"} or the older manual thinking configuration using enabled with budget_tokens; non-default sampling parameters can also cause a request to return 400, so these sampling fields should be removed during migration. Anthropic migration guide
To adjust reasoning effort, the official interface uses output_config.effort, with a default of medium. We recommend explicitly setting the required level, then comparing actual quality and usage. When using model-specific fields through a RequestBeam compatibility endpoint, also check support in the corresponding endpoint and selected service; the shared parameter table does not mean that all models accept the same settings. Effort parameter documentation · RequestBeam parameter documentation
Why does a successful request have no answer text while output token usage still increases?
When using Claude Messages, we recommend first checking stop_reason and the output budget. Its max_tokens covers both thinking and the final answer; if set too low, the request may finish before the actual answer because the budget is exhausted. The RequestBeam model catalog specifically warns that a budget such as 128 may produce only thinking content. RequestBeam output budget guidance
Second, we recommend extracting text according to the content-block type, rather than always reading content[0].text. According to Anthropic's official documentation, Opus 5.5 omits thinking text by default but retains signatures, and thinking tokens still count toward output usage. For stop_reason: "max_tokens", increase the budget or lower effort where quality permits; consecutive tool calls also require retaining returned content blocks and signatures in full. Official thinking and usage documentation · Adjusting thinking budgets · RequestBeam content-block documentation
Why can't I force tool calls, and how should structured JSON be configured?
We recommend choosing the configuration according to your goal. In the official Anthropic API, Opus 5.5 supports auto and none for tool_choice; forcing any or a specific tool returns 400. To have the model use tools, provide clear tool definitions and conditions of use, and let the application handle tool calls and returning results. Official tool-calling rules
To constrain the final answer's JSON structure, the official interface uses output_config.format; to constrain tool arguments, use strict: true in the tool definition. Strict argument constraints do not force a tool call, and refusals, output truncation, and similar conditions still need to be handled. Official structured-output documentation
Why use Claude Opus 5.5 through RequestBeam?
Usage-based billing and model cost optimization
Reliable service at prices lower than official rates. Top up on demand and use what you pay for.
Unified AI models and data APIs, with multi-model access in one place
One API key connects multiple AI models and data services, reducing integration costs and letting you switch with one click. Business applications need both AI and data.
Call logs and application access controls, with clarity on every call
Every API call is recorded in your dashboard. Create separate API keys for different applications.
Model capabilities without compromise
We do not water down our models. We cannot offer you the cheapest, but we are committed to offering you the best.
How to use Claude Opus 5.5 on RequestBeam
After creating an API key in the console, follow the documentation to get started with Claude Opus 5.5.
Prepare your account and test online
Sign in, confirm your balance, and create an API key.
Try it in the Playground
Explore the model's capabilities in the Playground to find the best way to use it.
Integrate Claude Opus 5.5 into your business
Follow our developer documentation to integrate Claude Opus 5.5 into your business.
Future model upgrades
When a new model is released, simply replace the model name with the new one to upgrade.
Claude Opus 5.5 online tool and API integration questions
Is Claude Opus 5.5 the same API model as Opus 5?
No. The API model name for Claude Opus 5.5 is claude-opus-5-5; the API model name for Claude Opus 5 is claude-opus-5. They are different models, so do not mix up their model parameters.
Why is thinking empty or the answer incomplete?
Native Opus 5.5 uses adaptive thinking by default and can omit thinking text. Ordinary requests do not need a thinking parameter, and empty thinking alone is not a failure. For an incomplete answer, check the completion state and output allowance, leaving enough room for thinking and final text.
How should I troubleshoot authentication, balance, or access errors?
Follow the API error documentation to diagnose the issue.
Can I use OpenAI Responses for Claude Opus 5.5?
OpenAI Responses is not supported. Claude has its own Claude Messages format; see the documentation for details.
Can I force a tool call or edit a native Messages conversation?
Native Opus 5.5 does not support forced tool_choice types any or tool. Take care when replaying preserved thinking after editing earlier messages. Keep native assistant content blocks and their signatures intact during tool continuations.
Is conversation memory permanent?
No. The API does not automatically retain conversation context for subsequent requests. Manage the history yourself and include the required context in each request. Long-term memory must be implemented by your application.
Related text APIs
Claude Opus 5.5 API specification and requests
Claude Opus 5.5 API quickstart
claude-opus-5-5Chat CompletionsPOST /v1/chat-completions
curl -X POST "https://api.requestbeam.com/v1/chat-completions" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"claude-opus-5-5","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}],"stream":false}'MessagesPOST /anthropic/v1/messages
Messages requires max_tokens. The allowance in this example is editable, not an upstream default or a model limit. Thinking may consume it before any answer text; adjust it for your task and check output costs.
curl -X POST "https://api.requestbeam.com/anthropic/v1/messages" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-H 'anthropic-version: 2023-06-01' \
-d '{"model":"claude-opus-5-5","max_tokens":4096,"messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}],"stream":false}'Family and protocol reference
Claude Messages
Full API documentationNative Claude Messages-compatible API. This endpoint uses Anthropic Messages request and response shapes, including tool calls and Anthropic SSE events.
https://api.requestbeam.com/anthropic/v1/messagesNative Claude Messages-compatible API. This endpoint uses Anthropic Messages request and response shapes, including tool calls and Anthropic SSE events.
POST https://api.requestbeam.com/anthropic/v1/messagesAuthentication
All requests require a RequestBeam API Key. Anthropic SDKs, Claude Code, and compatible clients usually use x-api-key; plain HTTP clients may also use Bearer Token authentication.
x-api-key: YOUR_REQUESTBEAM_API_KEY
anthropic-version: 2023-06-01Authorization: Bearer YOUR_REQUESTBEAM_API_KEY
anthropic-version: 2023-06-01Body
modelstringrequiredDefault: claude-sonnet-4-6Supported Claude model IDs.
claude-fable-5claude-fable-5-1claude-haiku-4-5claude-opus-4-5claude-opus-4-6claude-opus-4-7claude-opus-4-8claude-opus-5claude-opus-5-5claude-sonnet-4-5claude-sonnet-4-6claude-sonnet-5
Use GET https://api.requestbeam.com/v1/models for the models currently available to your API Key.
max_tokensintegerrequiredMaximum number of output tokens, as a positive safe integer. This budget includes both thinking and final text output tokens. Missing, zero, negative, fractional, string, or unsafe-integer values return HTTP 400 with invalid_request_error before generation or billing. The model may impose a lower maximum.
For models that produce thinking, a small budget such as 128 may yield only thinking blocks before ending with stop_reason: "max_tokens", without text output. Set an explicit budget for the task and the selected model, allowing room for thinking and the final answer. The values in the examples are editable allowances, not upstream defaults or model limits; larger allowances may increase output usage and cost.
messagesobject[]requiredConversation messages. Each message contains role and content.
role supports user and assistant. content may be a string or an array of content blocks.
systemstring | object[]System prompt. Anthropic Messages uses a top-level system field instead of a system role in messages.
streambooleanDefault: falseWhether to return Anthropic SSE events.
temperaturenumberSampling temperature. Accepted values and effects vary by the selected model.
top_pnumberNucleus sampling parameter. Acceptance does not guarantee that it changes generation behavior.
top_kintegerTop-k sampling parameter. Support depends on the selected model.
stop_sequencesstring[]Stop sequences.
Requests with nonempty stop sequences avoid model services known not to support them; if no compatible service is available, the request returns 400 before generation or billing.
toolsobject[]Anthropic tool definitions. Function tools usually include name, description, and input_schema.
tool_choiceobjectTool selection policy, such as { "type": "auto" } or { "type": "tool", "name": "..." }.
thinkingobjectNative Anthropic thinking configuration, subject to the selected model and provider's support. Claude 4.5 uses { "type": "enabled", "budget_tokens": 1024 }; Claude Sonnet/Opus 4.6 also support adaptive thinking. Do not apply a manual budget to every model version. In tool continuations, return the complete ordered assistant content, including thinking, signature, redacted_thinking and tool_use, unchanged. Keep the thinking configuration and required anthropic-beta headers consistent through the tool round trip. For SSE, concatenate signature_delta.signature fragments for the same content block; an empty thinking summary does not mean its signature can be discarded. A provider account access rejection is an upstream failure, not evidence of an invalid signature. Recognized Bedrock account access rejections return HTTP 502 with api_error; ordinary client validation errors retain HTTP 400. Acceptance still requires an enabled upstream account.
metadataobjectRequest metadata.
Prompt Caching
Add cache_control: { "type": "ephemeral" } to a system or message content block. Cache usage may include cache_creation_input_tokens, cache_read_input_tokens, and supported 5-minute or 1-hour creation buckets. A 1-hour TTL also requires the corresponding anthropic-beta header.
Request Examples
Non-Streaming
{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello, introduce yourself in one sentence."
}
],
"stream": false
}Streaming
{
"model": "claude-haiku-4-5",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Reply exactly OK."
}
],
"stream": true
}Response
Non-streaming responses keep the Anthropic Message shape.
idstringResponse ID, such as msg_....
typestringObject type, usually message.
rolestringUsually assistant.
modelstringActual Claude model used.
contentobject[]Native output content blocks, including text, tool_use, and thinking when used.
stop_reasonstringStop reason, such as end_turn, max_tokens, stop_sequence, or tool_use.
usageobjectToken usage, including input_tokens and output_tokens. Cache token fields are included when present.
Success Example
{
"id": "msg_01...",
"type": "message",
"role": "assistant",
"model": "claude-sonnet-4-6",
"content": [
{
"type": "text",
"text": "Hello, I am Claude and can help with writing, coding, and analysis tasks."
}
],
"stop_reason": "end_turn",
"stop_sequence": null,
"usage": {
"input_tokens": 18,
"output_tokens": 24
}
}Streaming Response
When stream: true, the endpoint returns Anthropic SSE events. Common events include:
message_startcontent_block_startcontent_block_deltacontent_block_stoppingmessage_deltamessage_stop
Error Response
See Error Codes and Troubleshooting for the full code reference, protocol differences, and diagnostic steps.
Error responses use the Anthropic-style shape:
{
"type": "error",
"error": {
"type": "authentication_error",
"message": "Invalid credentials or API key has expired."
}
}