建立 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 模型。