Claude 3.5 Haiku

vtrix-claude-3.5-haiku

快速且强大的模型,在大多数基准测试中超越 Claude 3 Opus。SWE-bench Verified 得分 40.6%。编程辅助和快速任务的最佳性价比选择。

认证

authorization string 必填

所有 API 都需要通过 Bearer Token 进行认证

获取 API Key:

访问 API Key 管理页面 获取您的 API Key

使用方法:

添加到请求头:

Authorization: Bearer YOUR_API_KEY

参数

model string 必填

请求使用的模型 ID

值:vtrix-claude-3.5-haiku


messages array 必填

表示对话历史的消息对象数组

role string 必填

消息角色

可选值userassistantsystemdeveloper

content string | array 必填

文本字符串或多模态数组


max_tokens integer

生成的最大 token 数量

范围1 - 8192


temperature number

采样温度

默认值1.0

范围0.0 - 2.0


top_p number

核采样参数

默认值1.0

范围0.0 - 1.0


stream boolean

是否增量流式返回响应

默认值false

错误码

状态码名称描述
401UnauthorizedAPI key 缺失或无效
403Forbidden余额不足或权限被拒绝
429Too Many Requests超出速率限制
500Internal Server Error服务器内部错误