Anthropic Messages
Create a message using the Anthropic Claude API format. Text input only; supports both streaming (SSE) and non-streaming responses.
Authorizations
Body
modelstringrequired
Model identifier. Currently supports LongCat-2.0.
messagesarrayrequired
Array of message objects. Text input only.
rolestringrequired
Author role, one of user · assistant. System messages are passed separately via the system parameter.
contentstringrequired
Message content as a plain-text string.
max_tokensintegeroptional
Maximum number of tokens to generate.
streambooleanoptional
Whether to stream the response as SSE.
default: false
temperaturenumberoptional
Sampling temperature, range 0 ~ 1.
top_pnumberoptional
Nucleus sampling parameter.
systemstringoptional
System message used to set context.
thinkingobjectoptional
Whether to enable thinking. {"type":"enabled"} turns thinking on, {"type":"disabled"} turns it off.