Create Message
POST /messages
Create a message completion using Anthropic’s message format.
Request Body
The model to use for completion (e.g., “claude-3-sonnet-20240229”)
An array of message objects
Maximum number of tokens to generate
Temperature for randomness (0.0 to 1.0)
System message to set context
Response
Returns a message completion object with the generated response.Example
Authorizations
Enter your API key (starts with 'ek-')
Body
application/json
Example:
"claude-3-5-sonnet-20241022"
Maximum tokens to generate
Required range:
0 <= x <= 1System prompt
Available options:
auto, any Available options:
low, medium, high Response
200 - application/json
Success
Available options:
message Available options:
assistant - Option 1
- Option 2
- Option 3
- Option 4
Available options:
end_turn, max_tokens, stop_sequence, tool_use 