建立 Anthropic 訊息

透過 AnyInt Gateway 使用原生 Anthropic 訊息。

傳送 Anthropic 訊息請求格式,無需將其翻譯為 OpenAI 相容的負載。

POST/anthropic/v1/messages

請求內文

欄位類型必要說明
model字串Anthropic 相容的模型識別碼。
messages陣列Anthropic 訊息內容區塊。
max_tokens整數要產生的最大 token 數。
system字串或陣列系統指示。

相關操作

  • POST /anthropic/v1/messages/count_tokens 計算輸入 token 數。
  • GET /anthropic/v1/models 列出可用的 Anthropic 模型。