Tencent Hy4 Preview API

Call Tencent Hy4 Preview through Wokey and review published catalog pricing, upstream-native API forms, context, and model capabilities.

Model ID
hy4-preview
Vendors
opencode
Supply status
Currently callable

Catalog pricing snapshot

Prices are per 1M tokens; request-time pricing controls settlement.

MeterWokeyOfficial referenceSavings
Input$0.417$0.83450%
Output$1.2505$2.50150%
Cache read$0.021$0.04250%
Cache write———

Official price source: https://www.tencentcloud.com/act/pro/tokenhub

Measured on Wokey

Last 28 days (2026-09-29 to 2026-10-26), updated every Monday · Real requests from 20+ accounts

Time to first token, short prompts
Not enough samples (Median · prompts under 8K tokens)
Time to first token, agent-size prompts
Not enough samples (Median · prompts of 32K–128K tokens)
Prompt cache hit rate
98% (Share of input tokens read from cache)

How this is measured

Time to first token runs from the Wokey gateway receiving the request to the first streamed content (text, reasoning summary or refusal). It includes queueing, retries on another account and the model's thinking time, so it is longer than the upstream's own first-token latency. Only successful streamed requests count, banded by prompt size (input plus cache reads and writes).

Cache hit rate = cache-read tokens ÷ input tokens over successful requests. It depends on the client and how it is used; the cache hit-rate pages break it down by client.

Enterprise accounts and Wokey's own test accounts are excluded. A model is shown once at least 20 users used it in the last 28 days and no single user sent more than 50% of its requests, counting accounts registered through one referral chain as one user; each first-token figure needs at least 500 requests.

Cache hit rate by client

Model capabilities

Context
1,048,576 tokens
Max output
64,000 tokens
Streaming
Supported
Tools
Supported
Vision
Not supported
Supported API forms
/v1/chat/completions

Send a request

/v1/chat/completions

curl https://api.wokey.ai/v1/chat/completions \
  -H "Authorization: Bearer $WOKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"hy4-preview","messages":[{"role":"user","content":"Hello"}]}'

Use Tencent Hy4 Preview in your tools

The gateway is https://api.wokey.ai (OpenAI-compatible clients usually take https://api.wokey.ai/v1), and the model ID is hy4-preview. Open the guide for the client you use.

Frequently asked questions

How much does the Tencent Hy4 Preview API cost, and how much does it save versus the official API?

Wokey lists input at $0.417 per 1M tokens and output at $1.2505 per 1M tokens; the official references are $0.834 and $2.501. That is 50% lower for input and 50% lower for output. Request-time pricing controls settlement, and the vendor pricing source is linked on this page.

What is the Tencent Hy4 Preview API model ID?

The model ID for Tencent Hy4 Preview on Wokey is hy4-preview. Use it exactly as written in the request body's model field or in your client's model setting (for example ANTHROPIC_MODEL in Claude Code, or model in the Codex CLI config.toml); GET https://api.wokey.ai/v1/models also lists it.

Which API forms does Tencent Hy4 Preview support, and how do I call it through Wokey?

Tencent Hy4 Preview supports /v1/chat/completions (Chat Completions requests). Set the API base URL to https://api.wokey.ai, authenticate with a Wokey API key, and use the canonical model ID hy4-preview; you can start with /v1/chat/completions. The Send a request section includes a curl example for every supported API form.

How do I use Tencent Hy4 Preview in opencode, Hermes Agent, and similar clients?

These clients call Tencent Hy4 Preview over OpenAI Chat Completions: point the API address at https://api.wokey.ai (clients that expect an OpenAI SDK-style address take https://api.wokey.ai/v1), add your Wokey API key, and use the model ID hy4-preview. Each client's guide shows its config format.

What are the context window and maximum output for Tencent Hy4 Preview?

The catalog context window is 1,048,576 tokens and the maximum output is 64,000 tokens. These are separate limits, and a request must also satisfy the upstream constraints in effect when it is processed.

How are cache reads and cache writes priced for Tencent Hy4 Preview?

Cache read: Wokey lists $0.021 per 1M tokens and the official reference is $0.042 per 1M tokens. Cache write: the vendor does not publish a separate meter, so Wokey also shows — as the public price.

How does calling Tencent Hy4 Preview through Wokey differ from OpenRouter?

Wokey lists Tencent Hy4 Preview at $0.417 input / $1.2505 output per 1M tokens, against an official reference of $0.834 / $2.501. OpenRouter states it adds no markup on inference and charges its fee when you buy credits (5.5% by card). Wokey carries a curated set of models and has no per-provider routing parameters, so OpenRouter fits better if you need a wider catalog. The OpenRouter alternative page has the full comparison.

Does Tencent Hy4 Preview support streaming, tool calling, and image input?

Streaming is supported; tool calling is supported; image input is not supported. These values come directly from the current runtime model catalog and are not inferred from the model name.

Related models and documentation

Get API key · hy4-preview