Creates a message using the Anthropic Messages API format. Set stream: true for server-sent events.
Use a JWT or API key as a Bearer token.
Set to true to use the single anonymous free request.
true Model id (e.g. abliterated-model).
Non-empty array of message objects. Each has role (user or assistant) and content (string or content-block array).
1Maximum number of tokens to generate.
x >= 1Sampling temperature.
0 <= x <= 2Enable Server-Sent Events streaming.
System prompt. Can be a string or an array of content blocks.
Optional moderation categories to block. Supported: harassment, hate, illicit, sexual. Self-harm and sexual/minors are always blocked.
Message response
Unique message id (e.g. msg_01XFDUDYJgAACzvnptvVoYEL).
message assistant Reason the model stopped generating (e.g. end_turn, max_tokens).
User's remaining credit balance after this call.
Credits consumed by this call.
Estimated cost in USD.