Anthropic
hy4-preview
tencent/hy4-preview
Price per million tokens
- Input
- $0.985
- Output
- $2.955
- Cache write
- not offered
- Cache read
- $0.050
What you pay, and your usage page shows what we paid beside what you paid on every request you send.
Limits
- Context window
- 1,048,576 tokens
- Max output
- 64,000 tokens
- Images
- text only
What it costs to run
| Workload | Input | Output | Cost | Per 1,000 calls |
|---|---|---|---|---|
| Short chat turn | 1,000 | 500 | $0.0025 | $2.46 |
| Long document summary | 50,000 | 2,000 | $0.0552 | $55.18 |
| Agent step with tools | 20,000 | 1,500 | $0.0241 | $24.14 |
| 1M in, 1M out | 1,000,000 | 1,000,000 | $3.9406 | $3940.64 |
Calling it
const res = await client.chat.completions.create({ model: "tencent/hy4-preview", messages: [{ role: "user", content: "Hello" }], });