POST
/v1/messages/v1/messages
Anthropic Messages 请求会被 Gateway 接受并正规化。
请求#
anthropic-version header 会被接受并原样转送。
curl https://api.atptoken.ai/v1/messages \
-H "Authorization: Bearer atp-..." \
-H "Content-Type: application/json" \
-d '{
"model": "<model from GET /v1/models>",
"max_tokens": 256,
"messages": [{"role": "user", "content": "hi"}]
}'参数#
最上层的 system 栏位可以是字串,也可以是文字区块阵列(区块上的 cache_control 会被接受)。
这页有帮助吗?