Messages
Your unique API key for authentication.
sk-lh7cVWdVZx7lFkVmf92yFaz3uwWwiwMXfOESPnbpLtPKB3OiThe model that will complete your prompt.
claude-3-7-sonnet-20250219The maximum number of tokens to generate before stopping.
1024Custom text sequences that will cause the model to stop generating.
Our models will normally stop when they have naturally completed their turn, which will result in a response stop_reason of "end_turn".
If you want the model to stop generating when it encounters custom strings of text, you can use the stop_sequences parameter. If the model encounters one of the custom sequences, the response stop_reason value will be "stop_sequence" and the response stop_sequence value will contain the matched stop sequence.
Whether to incrementally stream the response using server-sent events.
Amount of randomness injected into the response.
1Only sample from the top K options for each subsequent token.
5Use nucleus sampling.
0.7Last updated