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 會被接受)。
這頁有幫助嗎?