Hy4 preview
tencent/hy4-previewTencent: Hy4 preview is a mixture-of-experts model from Tencent, with 49B active parameters out of 770B total. It is designed for coding agents, complex tool-use workflows, and productivity tasks that...
Endpoints
Each row is one provider serving these weights at one precision. Prices are per million tokens.
| Quantisation | Context | Max out | Input | Output | Cached in |
|---|---|---|---|---|---|
| Undisclosed | 1024K | 128K | $1.10 | $3.30 | $0.055 |
Prefix caching is enabled and the discount is passed through. If your agent replays the same system prompt each iteration, the repeated portion bills at the cached rate.
Agent config
Paste this into your coding agent and it can configure itself. The timeout is derived from this variant's measured throughput, not a guess — a long generation that outlives a client's default ceiling is the most common way a working request looks broken.
# Infersia — tencent/hy4-preview
# Paste this to your agent. Values are measured, not aspirational.
provider:
type: openai-compatible
base_url: https://api.infersia.com/v1
api_key: ${INFERSIA_API_KEY} # from https://infersia.com/dashboard/keys
model: tencent/hy4-preview
limits:
max_input_tokens: 1048576 # hard limit — over this returns HTTP 413
max_output_tokens: 131072
timeout_seconds: 600 # no throughput measured yet; 600 is a safe default
features:
streaming: true
tools: true
vision: false
reasoning: true # OFF by default; send chat_template_kwargs.enable_thinking=true to opt in
prompt_caching: true # automatic; reuse a stable prefix and it bills at the cache rate
pricing_usd_per_million_tokens:
input: 1.1
output: 3.3
cached_input: 0.055What Undisclosed means
This model is served on capacity we buy rather than hardware we operate, so we cannot verify the precision it is served at. We would rather say that than print a figure we are guessing at.
Call it
curl https://api.infersia.com/v1/chat/completions \
-H "Authorization: Bearer $INFERSIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tencent/hy4-preview",
"messages": [{"role": "user", "content": "Hello"}],
"stream": true
}'Pin a provider with tencent/hy4-preview@infersia, or take the cheapest with the bare id. Add :free for the rate-limited free tier where one exists.