模型 API
Claude Haiku 4.5 API
Claude Haiku 4.5 API on Aiduct. Input tokens: $1.00 / 1M input tokens. 200,000 token context. View model parameters, pricing and integration examples.
模型 ID
claude-haiku-4-5
服务商
zenmux
功能
chat, vision, tools, structured-output
状态
可用
价格与限制
输入 token
$1.00 / 1M input tokens
输出 token
$5.00 / 1M output tokens
缓存读取
$0.10 / 1M cached input tokens
缓存写入
$1.25 / 1M cache write tokens
1 小时缓存写入
$2.00 / 1M one-hour cache write tokens
网页搜索
$0.01 / web search
所列费率以美元计,按标明的单位计费。模型选项和额外用量可能影响最终费用,集成前请查看实时模型目录。
- 上下文长度
- 200,000
- 最大输出
- 64,000
- 发布日期
- 2025-10
- 知识截止日期
- 2025-01
使用此模型
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.AIDUCT_API_KEY,
baseURL: "https://api.aiduct.ai/v1",
});
const response = await client.chat.completions.create({
model: "claude-haiku-4-5",
messages: [{ role: "user", content: "Say hello in one sentence." }],
});支持的参数
messagestemperaturetop_pmax_tokensstreamstoptoolstool_choiceresponse_formatuser