This API is compatible with Anthropic’s format.For more details, please refer to Anthropic’s official documentation.
Authorizations
Headers
Body
application/json
Examples:
Required range:
x >= 1Examples:
Available options:
auto, standard_only Examples:
Required range:
0 <= x <= 1Examples:
- ThinkingConfigEnabled
- ThinkingConfigDisabled
- ToolChoiceAuto
- ToolChoiceAny
- ToolChoiceTool
- ToolChoiceNone
- Tool
- BashTool_20250124
- TextEditor_20250124
- TextEditor_20250429
- TextEditor_20250728
- WebSearchTool_20250305
Examples:
Required range:
x >= 0Examples:
Required range:
0 <= x <= 1Examples:
Response
200 - application/json
Examples:
Available options:
| Title | Const |
|---|---|
| Type | message |
Available options:
| Title | Const |
|---|---|
| Role | assistant |
- ResponseTextBlock
- ResponseThinkingBlock
- ResponseRedactedThinkingBlock
- ResponseToolUseBlock
- ResponseServerToolUseBlock
- ResponseWebSearchToolResultBlock
Examples:
Examples:
Available options:
end_turn, max_tokens, stop_sequence, tool_use, pause_turn, refusal