Hy4 Preview API pricing
Use Hy4 Preview by Tencent through Vikey from Rp5.400 per 1M input tokens, about 70% below the official price. Pay in Rupiah with QRIS.
Hy4 Preview pricing
-70%- Input
Rp18.720Rp5.400- Output
Rp56.340Rp18.000- Cache read
- Rp1.080
Per 1M tokens. Official price struck through.
About Hy4 Preview
- Model id
- tencent/hy4-preview
- Context window
- 1M tokens
- Capabilities
- coding, OpenClaw, Hermes, vision
Use Hy4 Preview with your coding agent
Point the base URL and API key to Vikey, then select Hy4 Preview. Works with Claude Code, Codex, opencode and other tools that support an OpenAI or Anthropic base URL.
export ANTHROPIC_BASE_URL=https://api.vikey.ai
export ANTHROPIC_AUTH_TOKEN=YOUR_VIKEY_API_KEY
export ANTHROPIC_MODEL=tencent/hy4-preview
export ANTHROPIC_DEFAULT_HAIKU_MODEL=openai/gpt-6-luna
claude# First run: export VIKEY_API_KEY=YOUR_VIKEY_API_KEY
model = "tencent/hy4-preview"
model_provider = "vikey"
[model_providers.vikey]
name = "Vikey"
base_url = "https://api.vikey.ai/v1"
env_key = "VIKEY_API_KEY"
wire_api = "responses"// First run: export VIKEY_API_KEY=YOUR_VIKEY_API_KEY
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"vikey": {
"npm": "@ai-sdk/openai-compatible",
"name": "Vikey",
"options": {
"baseURL": "https://api.vikey.ai/v1",
"apiKey": "{env:VIKEY_API_KEY}"
},
"models": {
"tencent/hy4-preview": {},
"openai/gpt-6-luna": {}
}
}
},
"model": "vikey/tencent/hy4-preview",
"small_model": "vikey/openai/gpt-6-luna"
}curl https://api.vikey.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_VIKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "tencent/hy4-preview", "messages": [{"role": "user", "content": "Halo"}]}'Frequently asked questions
How much does the Hy4 Preview API cost on Vikey?
Rp5.400 per 1M input tokens and Rp18.000 per 1M output tokens. You pay as you go, with no monthly fee.
How do I use Hy4 Preview with Claude Code or Codex?
Create an API key on Vikey, then change the base URL and API key in your agent. After that, select Hy4 Preview as the model. The docs have the full steps.
Can I use Hy4 Preview together with other models?
Yes. One Vikey API key works for every model. Just change the model name in your request or in your agent settings.
Can I pay for Hy4 Preview with QRIS?
Yes. Top up with QRIS from Rp10.000, no credit card needed. The same balance works for every model on Vikey.
Start using Hy4 Preview today
Sign up, top up from Rp10.000 with QRIS, and use your API key in your favorite agent.