Create message (Claude)
對話
建立訊息
Claude Messages API for Anthropic-compatible payloads, tool use, and system prompts.
POST
Create message (Claude)
授權
Your DGrid API key. All endpoints use Authorization: Bearer <DGRID_API_KEY>.
標頭
Anthropic API version header.
主體
application/json
Model ID, such as claude-3-5-sonnet-20241022.
範例:
"claude-3-5-sonnet-20241022"
Maximum output token count.
範例:
1024
Conversation message list.
System instructions.
Sampling temperature.
Top-p sampling.
Top-k sampling.
Stop sequences.
Enable streaming responses.
Tool schema definitions.
Tool selection strategy.

