{
"id": "msg_013Zva2CMHLNnXjNJJKqJ2EF",
"container": {
"id": "container_011CpZohnwH4vuy7gazohgSP",
"expires_at": "2019-12-27T18:11:19.117Z",
"skills": [
{
"skill_id": "pdf",
"type": "anthropic",
"version": "latest"
}
]
},
"content": [
{
"citations": [
{
"cited_text": "The grass is green. The sky is blue.",
"document_index": 0,
"document_title": "My Document",
"end_char_index": 0,
"file_id": "file_011CNha8iCJcU1wXNR6q4V8w",
"start_char_index": 0,
"type": "char_location"
}
],
"text": "Hi! My name is Claude.",
"type": "text"
}
],
"context_management": {
"applied_edits": [
{
"cleared_input_tokens": 0,
"cleared_tool_uses": 0,
"type": "clear_tool_uses_20250919"
}
]
},
"diagnostics": {
"cache_miss_reason": {
"cache_missed_input_tokens": 0,
"type": "model_changed"
}
},
"model": "claude-opus-5",
"role": "assistant",
"stop_details": {
"category": "cyber",
"explanation": "This request was declined because it conflicts with Anthropic's Usage Policy.",
"fallback_credit_token": "QW50aHJvcGljL0NsYXVkZQ==",
"fallback_has_prefill_claim": true,
"recommended_model": "claude-opus-4-8",
"type": "refusal"
},
"stop_reason": "end_turn",
"stop_sequence": null,
"type": "message",
"usage": {
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 0
},
"cache_creation_input_tokens": 2051,
"cache_read_input_tokens": 2051,
"fallback_credit": {
"status": {
"type": "redeemed"
}
},
"inference_geo": "global",
"input_tokens": 2095,
"iterations": [
{
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 0
},
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"input_tokens": 0,
"model": "claude-fable-5-1",
"output_tokens": 0,
"type": "message"
}
],
"output_tokens": 503,
"output_tokens_details": {
"thinking_tokens": 0
},
"server_tool_use": {
"web_fetch_requests": 2,
"web_search_requests": 0
},
"service_tier": "standard",
"speed": "standard"
},
"input_transformations": [
{
"path": "path",
"reason": "model_binding_mismatch",
"type": "thinking_dropped"
}
]
}Messages
{
"id": "msg_013Zva2CMHLNnXjNJJKqJ2EF",
"container": {
"id": "container_011CpZohnwH4vuy7gazohgSP",
"expires_at": "2019-12-27T18:11:19.117Z",
"skills": [
{
"skill_id": "pdf",
"type": "anthropic",
"version": "latest"
}
]
},
"content": [
{
"citations": [
{
"cited_text": "The grass is green. The sky is blue.",
"document_index": 0,
"document_title": "My Document",
"end_char_index": 0,
"file_id": "file_011CNha8iCJcU1wXNR6q4V8w",
"start_char_index": 0,
"type": "char_location"
}
],
"text": "Hi! My name is Claude.",
"type": "text"
}
],
"context_management": {
"applied_edits": [
{
"cleared_input_tokens": 0,
"cleared_tool_uses": 0,
"type": "clear_tool_uses_20250919"
}
]
},
"diagnostics": {
"cache_miss_reason": {
"cache_missed_input_tokens": 0,
"type": "model_changed"
}
},
"model": "claude-opus-5",
"role": "assistant",
"stop_details": {
"category": "cyber",
"explanation": "This request was declined because it conflicts with Anthropic's Usage Policy.",
"fallback_credit_token": "QW50aHJvcGljL0NsYXVkZQ==",
"fallback_has_prefill_claim": true,
"recommended_model": "claude-opus-4-8",
"type": "refusal"
},
"stop_reason": "end_turn",
"stop_sequence": null,
"type": "message",
"usage": {
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 0
},
"cache_creation_input_tokens": 2051,
"cache_read_input_tokens": 2051,
"fallback_credit": {
"status": {
"type": "redeemed"
}
},
"inference_geo": "global",
"input_tokens": 2095,
"iterations": [
{
"cache_creation": {
"ephemeral_1h_input_tokens": 0,
"ephemeral_5m_input_tokens": 0
},
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"input_tokens": 0,
"model": "claude-fable-5-1",
"output_tokens": 0,
"type": "message"
}
],
"output_tokens": 503,
"output_tokens_details": {
"thinking_tokens": 0
},
"server_tool_use": {
"web_fetch_requests": 2,
"web_search_requests": 0
},
"service_tier": "standard",
"speed": "standard"
},
"input_transformations": [
{
"path": "path",
"reason": "model_binding_mismatch",
"type": "thinking_dropped"
}
]
}Authorizations
Tikway API Key. Passed through the x-api-key request header according to the Anthropic native protocol.
Body
The Claude model ID used to generate the message, for example claude-opus-5.
The maximum number of tokens to generate content. The model can be stopped before reaching the upper limit; set to 0 to only warm up the prompt cache without generating a reply.
x >= 0Enter the conversation message. The model works in user and assistant turns; consecutive messages with the same role will be merged. If there is no system role, please use the top-level system for system prompt words.
100000Hide child attributes
Hide child attributes
System prompt word. The Messages API does not support system role messages, this field should be used.
Whether to stream message events as Server-Sent Events.
Customize stop sequence; model generation stops when it reaches any sequence.
Sampling temperature. Higher values make the output more random; usually adjusted with top_p, top_k.
0 <= x <= 1Kernel sampling threshold.
0 <= x <= 1The number of candidate tokens with the highest probability retained during each sampling step.
x >= 0Extended thinking configuration. Optional enabled, adaptive, disabled, or passed in null. When think is enabled, think tokens count toward max_tokens.
- Enabled thinking
- Adaptive thinking
- Disabled thinking
Hide child attributes
Hide child attributes
enabled Think about the token budget, which must be less than max_tokens.
x >= 1024How to handle when the returned thought block does not pass the dialog prefix check; omitted, null or empty objects use the default behavior.
Hide child attributes
Hide child attributes
error will return 400; drop_block will remove unmatched think blocks.
error, drop_block, null Think about how the content is presented; omitted will hide the content but retain the signature for multiple rounds of conversation.
summarized, omitted, updates, null A tool definition that can be called by Claude.
Hide child attributes
Hide child attributes
Tool name.
Description of tool usage.
JSON Schema of tool input parameters.
Tool type; custom tools are usually custom or omitted.
Controls whether and how Claude selects tools.
Output configuration.
Hide child attributes
Hide child attributes
Output reasoning/quality input level.
low, medium, high Service level selection.
auto, standard_only Inference speed mode.
standard, fast Code execution container configuration or container ID.
Context management configuration.
Diagnostic information configuration.
Fallback service deduction token.
Model fallback configuration.
Reasoning about geographic preferences.
Response
Message unique ID.
Object type, fixed to message.
message Message role, fixed to assistant.
assistant The actual Claude model ID used.
List of content blocks generated by Claude.
Hide child attributes
Hide child attributes
Output content block type.
text, thinking, redacted_thinking, tool_use, server_tool_use, web_search_tool_result, web_fetch_tool_result, code_execution_tool_result text Generated text for the content block.
List of textual references.
Hide child attributes
Hide child attributes
Reference type.
Quoted text.
Source document index.
Source document title.
Extended reflection text.
Think about the content signature; it must remain the same the next time you pass it around.
Encrypted data for redacted_thinking.
Tool call ID.
The name of the called tool.
Tool call input parameters.
Server tool call result content.
The associated tool call ID.
Whether the server tool results are in error.
Generate a stop reason.
end_turn, max_tokens, stop_sequence, tool_use, pause_turn, refusal, model_context_window_exceeded Billing and current limiting word usage statistics.
Hide child attributes
Hide child attributes
Enter the number of tokens.
x >= 0Output the number of tokens.
x >= 0The number of input tokens used to create the cache.
x >= 0The number of input tokens read from the cache.
x >= 0Actual service level.
standard, priority, batch Actual reasoning speed.
standard, fast If the sequence ends due to a custom stop, it is a hit sequence.
Context management results of server-side applications.
Diagnostic information, such as cache miss reasons.
Transformations applied by the API to the input, such as chunks of thought that are discarded.

